[all-commits] [llvm/llvm-project] c234b6: [mlir][OpFormat] Add support for emitting newlines...
River Riddle via All-commits
all-commits at lists.llvm.org
Mon Dec 14 12:01:11 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c234b65cef07b38c91b9ab7dec6a35f8b390e658
https://github.com/llvm/llvm-project/commit/c234b65cef07b38c91b9ab7dec6a35f8b390e658
Author: River Riddle <riddleriver at gmail.com>
Date: 2020-12-14 (Mon, 14 Dec 2020)
Changed paths:
M mlir/docs/OpDefinitions.md
M mlir/include/mlir/IR/OpImplementation.h
M mlir/lib/IR/AsmPrinter.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
M mlir/test/mlir-tblgen/op-format-spec.td
M mlir/test/mlir-tblgen/op-format.mlir
M mlir/tools/mlir-tblgen/OpFormatGen.cpp
Log Message:
-----------
[mlir][OpFormat] Add support for emitting newlines from the custom format of an operation
This revision adds a new `printNewline` hook to OpAsmPrinter that allows for printing a newline within the custom format of an operation, that is then indented to the start of the operation. Support for the declarative assembly format is also added, in the form of a `\n` literal.
Differential Revision: https://reviews.llvm.org/D93151
Commit: 6bc9439f59acbcc5e46a108c2f74a4d5ffe55a3b
https://github.com/llvm/llvm-project/commit/6bc9439f59acbcc5e46a108c2f74a4d5ffe55a3b
Author: River Riddle <riddleriver at gmail.com>
Date: 2020-12-14 (Mon, 14 Dec 2020)
Changed paths:
M mlir/include/mlir/IR/OpImplementation.h
M mlir/lib/Parser/DialectSymbolParser.cpp
M mlir/lib/Parser/Parser.cpp
M mlir/lib/Parser/Parser.h
M mlir/test/IR/parser.mlir
M mlir/test/lib/Dialect/Test/TestDialect.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
Log Message:
-----------
[mlir][OpAsmParser] Add support for parsing integer literals without going through IntegerAttr
Some operations use integer literals as part of their custom format that don't necessarily map to an internal IntegerAttr. This revision exposes the same `parseInteger` functions as the DialectAsmParser to allow for these operations to parse integer literals without incurring the otherwise unnecessary roundtrip through IntegerAttr.
Differential Revision: https://reviews.llvm.org/D93152
Compare: https://github.com/llvm/llvm-project/compare/0936655bac78...6bc9439f59ac
More information about the All-commits
mailing list