diff options
author | Mogball <jeffniu22@gmail.com> | 2021-10-15 00:00:54 +0000 |
---|---|---|
committer | Mogball <jeffniu22@gmail.com> | 2021-10-15 03:00:41 +0000 |
commit | 44610c01aeed8402da982ab59c47f45e7b3bc93b (patch) | |
tree | 2c3c672a7a2c564264fdf474e8a2262a91d4b4e2 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 7dd7078760e7219f0915610c3aa57fa6dd74be59 (diff) | |
download | llvm-44610c01aeed8402da982ab59c47f45e7b3bc93b.zip llvm-44610c01aeed8402da982ab59c47f45e7b3bc93b.tar.gz llvm-44610c01aeed8402da982ab59c47f45e7b3bc93b.tar.bz2 |
[MLIR][ODS] default-valued strings should be in quotes
`DefaultValuedAttr<StrAttr, "">` and `ConstantAttr<StrAttr, "">`
result in bugs in which TableGen will not recognize that the attribute
has a default value, because `""` is an empty TableGen string.
Strings no longer have special treatment. Instead, string values must be
wrapped in quotes: "\"foo\"". Two helpers, `DefaultValuedStrAttr` and
`ConstantStrAttr` have been added to keep code clean.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D111855
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions