[Mlir-commits] [mlir] [mlir][c] Expose AsmState. (PR #66693)
Maksim Levental
llvmlistbot at llvm.org
Mon Sep 18 13:36:43 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
----------------
makslevental wrote:
Nit: should this say maybe "as with OperationState"? Not sure.
https://github.com/llvm/llvm-project/pull/66693
More information about the Mlir-commits
mailing list