[Mlir-commits] [mlir] [mlir][c] Expose AsmState. (PR #66693)
Jacques Pienaar
llvmlistbot at llvm.org
Mon Sep 18 17:45:48 PDT 2023
================
@@ -383,6 +384,23 @@ mlirOperationStateAddAttributes(MlirOperationState *state, intptr_t n,
MLIR_CAPI_EXPORTED void
mlirOperationStateEnableResultTypeInference(MlirOperationState *state);
+//===----------------------------------------------------------------------===//
+// AsmState API.
+// While many of these are simple settings that could be represented in a
+// struct, they are wrapped in a heap allocated object and accessed via
+// functions to maximize the possibility of compatibility over time.
+//===----------------------------------------------------------------------===//
+
+/// Creates new AsmState, as with AsmState the IR should not be mutated
----------------
jpienaar wrote:
Not sure I follow, OperationState is created while mutating the IR.
https://github.com/llvm/llvm-project/pull/66693
More information about the Mlir-commits
mailing list