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

Andrey Timonin llvmlistbot at llvm.org
Thu Aug 8 05:49:13 PDT 2024


================
@@ -131,6 +131,12 @@ bool mlir::emitc::isPointerWideType(Type type) {
       type);
 }
 
+bool mlir::emitc::isSwitchOperandType(Type type) {
+  auto intType = llvm::dyn_cast<IntegerType>(type);
----------------
EtoAndruwa wrote:

Just found that `i1` `true` converts to `-1` in `printOperation(CppEmitter &emitter, emitc::SwitchOp switchOp)`. I will fix it with a separate patch.

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


More information about the Mlir-commits mailing list