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

Simon Camphausen llvmlistbot at llvm.org
Fri Aug 9 03:30:24 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);
----------------
simon-camp wrote:

Would it be hard to switch to a plain ArrayAttr and parse or verify Integer, Index or Opaque attributes for the cases?

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


More information about the Mlir-commits mailing list