[Mlir-commits] [mlir] [mlir][c] Expose AsmState. (PR #66693)
Jacques Pienaar
llvmlistbot at llvm.org
Mon Sep 18 15:00:38 PDT 2023
================
@@ -819,6 +837,11 @@ MLIR_CAPI_EXPORTED void mlirValuePrintAsOperand(MlirValue value,
MlirStringCallback callback,
void *userData);
+/// Prints a value as an operand (i.e., the ValueID) using prepopulated state.
+MLIR_CAPI_EXPORTED void
----------------
jpienaar wrote:
Yeah I wish overloading was a thing. Problem is as AsmState is initialized with OpPrintingFlags, if you pass in both is confusing ... that being said AsmState is the better one to pass in, currently its being created in opaque way. Tagged union seems the best I could do here if I wanted to unify.
https://github.com/llvm/llvm-project/pull/66693
More information about the Mlir-commits
mailing list