diff options
author | Jeff Niu <jeff@modular.com> | 2022-10-11 10:40:23 -0700 |
---|---|---|
committer | Jeff Niu <jeff@modular.com> | 2022-10-12 17:56:14 -0700 |
commit | bea0b1a896f55684eff0d5dbbbb73327448f698a (patch) | |
tree | 0642d2301120dd90fc5b9409d1515ca36192f55d /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | e936c3bb48c758ff4f490367d80db5a04170a9e8 (diff) | |
download | llvm-bea0b1a896f55684eff0d5dbbbb73327448f698a.zip llvm-bea0b1a896f55684eff0d5dbbbb73327448f698a.tar.gz llvm-bea0b1a896f55684eff0d5dbbbb73327448f698a.tar.bz2 |
[mlir][ods] Assert on static getAttrName methods
This patch makes ODS insert an assert when calling static `get*AttrName`
methods with a `OperationName` that the name is the same as the op's.
This prevents accidentally passing the wrong kind of name and getting an
erroneous attribute name.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D135698
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions