[Mlir-commits] [mlir] [mlir][emitc] Add 'emitc.switch' op to the dialect (PR #102331)
Matthias Gehre
llvmlistbot at llvm.org
Wed Aug 7 23:46:01 PDT 2024
================
@@ -449,6 +449,49 @@ static LogicalResult printOperation(CppEmitter &emitter, emitc::SubOp subOp) {
return printBinaryOperation(emitter, operation, "-");
}
+static LogicalResult emitAllExceptLast(CppEmitter &emitter,
+ raw_indented_ostream &os,
+ Region ®ion) {
+ for (Region::OpIterator iteratorOp = region.op_begin(), end = region.op_end();
----------------
mgehre-amd wrote:
Would `drop_end` https://github.com/Xilinx/llvm-project/blob/729aef473d0efc175db1fa56e2215c634c991bd6/llvm/include/llvm/ADT/STLExtras.h#L336 work here?
https://github.com/llvm/llvm-project/pull/102331
More information about the Mlir-commits
mailing list