[all-commits] [llvm/llvm-project] 3840e9: [mlir] Add `OpAsmPrinter::printOptionalLocationSpe...
Jeff Niu via All-commits
all-commits at lists.llvm.org
Thu Sep 29 15:58:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3840e960bafc175c830963f8250d90339fac0d16
https://github.com/llvm/llvm-project/commit/3840e960bafc175c830963f8250d90339fac0d16
Author: Jeff Niu <jeff at modular.com>
Date: 2022-09-29 (Thu, 29 Sep 2022)
Changed paths:
M mlir/include/mlir/IR/OpImplementation.h
M mlir/lib/IR/AsmPrinter.cpp
M mlir/test/IR/locations.mlir
M mlir/test/lib/Dialect/Test/TestDialect.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
Log Message:
-----------
[mlir] Add `OpAsmPrinter::printOptionalLocationSpecifier`
This is the corresponding method to
`OpAsmParser::parseOptionalLocationSpecifier` that prints a location
`loc(...)` based on the op printing flags. Together, these two functions
allow propagating user-level location info outside of their usual spots.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D134910
More information about the All-commits
mailing list