[all-commits] [llvm/llvm-project] f30a8a: Change the contract with the type/attribute parsin...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Tue Nov 9 16:49:20 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f30a8a6f6740c1348928090f7749b638bf0f646a
https://github.com/llvm/llvm-project/commit/f30a8a6f6740c1348928090f7749b638bf0f646a
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2021-11-10 (Wed, 10 Nov 2021)
Changed paths:
M mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td
M mlir/lib/Dialect/Async/IR/Async.cpp
M mlir/lib/Dialect/EmitC/IR/EmitC.cpp
M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
M mlir/lib/Dialect/PDL/IR/PDLTypes.cpp
M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
M mlir/test/lib/Dialect/Test/TestAttributes.cpp
M mlir/test/lib/Dialect/Test/TestTypeDefs.td
M mlir/test/lib/Dialect/Test/TestTypes.cpp
M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
Log Message:
-----------
Change the contract with the type/attribute parsing to let the dispatch handle the mnemonic
This breaking change requires to remove printing the mnemonic in the print()
method on Type/Attribute classes.
This makes it consistent with the parsing code which alread handles the
mnemonic outside of the parsing method.
This likely won't break the build for anyone, but tests will start
failing for dialects downstream. The fix is trivial and look like
going from:
void emitc::OpaqueType::print(DialectAsmPrinter &printer) const {
printer << "opaque<\"";
to:
void emitc::OpaqueAttr::print(DialectAsmPrinter &printer) const {
printer << "<\"";
Reviewed By: rriddle, aartbik
Differential Revision: https://reviews.llvm.org/D113334
More information about the All-commits
mailing list