Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ struct ExecuteRegionOpInterface
TypeRange newResultTypes(yieldOp.getResults());

// Create new op and move over region.
auto newOp =
scf::ExecuteRegionOp::create(rewriter, op->getLoc(), newResultTypes);
auto newOp = scf::ExecuteRegionOp::create(
rewriter, op->getLoc(), newResultTypes, executeRegionOp.getNoInline());
newOp.getRegion().takeBody(executeRegionOp.getRegion());

// Bufferize every block.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,20 @@ func.func @execute_region_test(%t1 : tensor<?xf32>)

// -----

// CHECK-LABEL: func @no_inline_execute_region_not_canonicalized
func.func @no_inline_execute_region_not_canonicalized() {
%c = arith.constant 42 : i32
// CHECK: scf.execute_region
// CHECK-SAME: no_inline
%v = scf.execute_region -> i32 no_inline {
scf.yield %c : i32
}
// CHECK: return
return
}

// -----

// CHECK: func private @some_external_func(memref<?xf32, strided<[?], offset: ?>>)
func.func private @some_external_func(tensor<?xf32>)

Expand Down