Outlining for parallel region codegen