[Mlir-commits] [mlir] [mlir][emitc] Expose emitc dialect types (PR #119645)
Matthias Gehre
llvmlistbot at llvm.org
Thu Jan 2 01:31:25 PST 2025
================
@@ -19,6 +19,117 @@ extern "C" {
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(EmitC, emitc);
+enum MlirEmitCCmpPredicate : uint64_t {
+ MLIR_EMITC_CMP_PREDICATE_EQ = 0,
+ MLIR_EMITC_CMP_PREDICATE_NE = 1,
+ MLIR_EMITC_CMP_PREDICATE_LT = 2,
+ MLIR_EMITC_CMP_PREDICATE_LE = 3,
+ MLIR_EMITC_CMP_PREDICATE_GT = 4,
+ MLIR_EMITC_CMP_PREDICATE_GE = 5,
+ MLIR_EMITC_CMP_PREDICATE_THREE_WAY = 6,
+};
+
+//===---------------------------------------------------------------------===//
+// ArrayType
+//===---------------------------------------------------------------------===//
+
+MLIR_CAPI_EXPORTED bool mlirTypeIsAEmitCArrayType(MlirType type);
----------------
mgehre-amd wrote:
I though this was trying to express `isa<>` in C.
https://github.com/llvm/llvm-project/pull/119645
More information about the Mlir-commits
mailing list