[Mlir-commits] [mlir] [mlir][emitc] Add 'emitc.switch' op to the dialect (PR #102331)
Andrey Timonin
llvmlistbot at llvm.org
Fri Aug 9 04:19:57 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:
Right now we are supporting index, opaque and integral types as arguments for the switch operator. Tests for all types we added
https://github.com/llvm/llvm-project/pull/102331
More information about the Mlir-commits
mailing list