[Mlir-commits] [mlir] [mlir][emitc] Restrict integer and float types (PR #85788)
Marius Brehler
llvmlistbot at llvm.org
Tue Mar 19 09:34:05 PDT 2024
================
@@ -22,6 +22,12 @@ include "mlir/IR/BuiltinTypeInterfaces.td"
// EmitC type definitions
//===----------------------------------------------------------------------===//
+def Valid_EmitC_Integer_Type : Type<CPred<"emitc::isValidEmitCIntegerType($_self)">,
+ "EmitC integer type">;
+
+def Valid_EmitC_Float_Type : Type<CPred<"emitc::isValidEmitCFloatType($_self)">,
----------------
marbre wrote:
```suggestion
def EmitCFloatType : Type<CPred<"emitc::isSupportedFloatType($_self)">,
```
https://github.com/llvm/llvm-project/pull/85788
More information about the Mlir-commits
mailing list