[Mlir-commits] [mlir] [mlir][emitc] Add 'emitc.switch' op to the dialect (PR #102331)
Marius Brehler
llvmlistbot at llvm.org
Sun Aug 11 23:14:10 PDT 2024
================
@@ -54,6 +54,8 @@ def CExpression : NativeOpTrait<"emitc::CExpression">;
def IntegerIndexOrOpaqueType : Type<CPred<"emitc::isIntegerIndexOrOpaqueType($_self)">,
"integer, index or opaque type supported by EmitC">;
def FloatIntegerIndexOrOpaqueType : AnyTypeOf<[EmitCFloatType, IntegerIndexOrOpaqueType]>;
+def SwitchOperandType : Type<CPred<"emitc::isSwitchOperandType($_self)">,
+"integer type for switch operation">;
----------------
marbre wrote:
If there is no good reason why pointer wide types should not be used, this should be dropped in favor of using the existing `IntegerIndexOrOpaqueType` which is referring to `isIntegerIndexOrOpaqueType`.
https://github.com/llvm/llvm-project/pull/102331
More information about the Mlir-commits
mailing list