diff options
author | Alex Zinenko <zinenko@google.com> | 2022-02-07 10:27:07 +0100 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2022-02-08 09:31:09 +0100 |
commit | 3df6cadec45ec3db8e31706bd7f5015fd2543695 (patch) | |
tree | 34b54284d9f4ca44b4836012c4d905d037a8d2f2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | ec642ceebc1aacc8b16249df7734b8cf90ae2963 (diff) | |
download | llvm-3df6cadec45ec3db8e31706bd7f5015fd2543695.zip llvm-3df6cadec45ec3db8e31706bd7f5015fd2543695.tar.gz llvm-3df6cadec45ec3db8e31706bd7f5015fd2543695.tar.bz2 |
[mlir] ODS: require DefaultValuedAttr to be const-buildable
ODS provides a mechanism for defalut-valued attributes based on a wrapper
TableGen class that is recognized by mlir-tblgen. Such attributes, if not set
on the operaiton, can be construted on-the-fly in their getter given a constant
value. In order for this construction to work, the attribute specificaiton in
ODS must set the constBuilderCall field correctly. This has not been verified,
which could lead to invalid C++ code being generated by mlir-tblgen.
Closes #53588.
Reviewed By: rriddle, mehdi_amini
Differential Revision: https://reviews.llvm.org/D119113
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions