[Mlir-commits] [mlir] [mlir][emitc] Restrict integer and float types (PR #85788)
Marius Brehler
llvmlistbot at llvm.org
Tue Mar 19 09:34:06 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)">,
+ "EmitC floating-point type">;
----------------
marbre wrote:
Maybe
```suggestion
"floating-point type supported by EmitC">;
```
?
https://github.com/llvm/llvm-project/pull/85788
More information about the Mlir-commits
mailing list