diff --git a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td index e202a4013a19..c51bf6f3c7b9 100644 --- a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td +++ b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td @@ -142,10 +142,10 @@ def ForOp : Loop_Op<"for", OpBuilder getBodyBuilder() { return OpBuilder(getBody(), std::prev(getBody()->end())); } - iterator_range getRegionIterArgs() { + Block::BlockArgListType getRegionIterArgs() { return getBody()->getArguments().drop_front(); } - iterator_range getIterOperands() { + Operation::operand_range getIterOperands() { return getOperands().drop_front(getNumControlOperands()); } @@ -313,7 +313,7 @@ def ParallelOp : Loop_Op<"parallel", unsigned getNumInductionVars() { return getBody()->getNumArguments(); } - iterator_range getInductionVars() { + Block::BlockArgListType getInductionVars() { return getBody()->getArguments(); } unsigned getNumLoops() { return step().size(); }