[Mlir-commits] [mlir] [mlir][emitc] Add 'emitc.switch' op to the dialect (PR #102331)

Matthias Gehre llvmlistbot at llvm.org
Wed Aug 7 23:48:18 PDT 2024


================
@@ -449,6 +449,49 @@ static LogicalResult printOperation(CppEmitter &emitter, emitc::SubOp subOp) {
   return printBinaryOperation(emitter, operation, "-");
 }
 
+static LogicalResult emitAllExceptLast(CppEmitter &emitter,
----------------
mgehre-amd wrote:

```suggestion
static LogicalResult emitSwitchCase(CppEmitter &emitter,
```
due to writing the `break;` at the end of the function, the name can be more specific.

https://github.com/llvm/llvm-project/pull/102331


More information about the Mlir-commits mailing list