[all-commits] [llvm/llvm-project] e0928a: [mlir][c] Add mlirOperationPrintWithState
Jacques Pienaar via All-commits
all-commits at lists.llvm.org
Fri Nov 3 16:29:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0928abb48e465b82fcd58f92c75bc9d1d9f64da
https://github.com/llvm/llvm-project/commit/e0928abb48e465b82fcd58f92c75bc9d1d9f64da
Author: Jacques Pienaar <jpienaar at google.com>
Date: 2023-11-03 (Fri, 03 Nov 2023)
Changed paths:
M mlir/include/mlir-c/IR.h
M mlir/lib/CAPI/IR/IR.cpp
M mlir/test/CAPI/ir.c
Log Message:
-----------
[mlir][c] Add mlirOperationPrintWithState
Enable passing in MlirAsmState optionally (allow for passing in null) to
allow using the more efficient print calling API. The existing print
behavior results in a new AsmState is implicitly created by walking the
parent op and renumbering values. This makes the cost more explicit and
avoidable (by reusing an AsmState).
More information about the All-commits
mailing list