aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RDFGraph.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2020-03-17 08:23:45 -0700
committerErich Keane <erich.keane@intel.com>2020-03-17 12:20:23 -0700
commit661c950630fbc30c49c6a0d3f78eebeb87a2f019 (patch)
treed7dd5eca1c6aa2c4dfdbc4dd012850701f51401c /llvm/lib/CodeGen/RDFGraph.cpp
parentbe9e3d9416571499adb15f3f943b8f5cb3089f1a (diff)
downloadllvm-661c950630fbc30c49c6a0d3f78eebeb87a2f019.zip
llvm-661c950630fbc30c49c6a0d3f78eebeb87a2f019.tar.gz
llvm-661c950630fbc30c49c6a0d3f78eebeb87a2f019.tar.bz2
[NFC][Attr TableGen] Emit Spelling Enum for Attr types if there >1
Discovered in a downstream, it is often useful to have slightly different semantics for an attribute based on its namespace, however our spelling infrastructure doesn't consider namespace when deciding to elide the enum list. The result is that the solution for a case where an attribute has slightly different semantics based on a namespace requires checking against the integer value, which is fragile. This patch makes us always emit the spelling enum if there is more than 1 and we're generating the header. Differential Revision: https://reviews.llvm.org/D76289
Diffstat (limited to 'llvm/lib/CodeGen/RDFGraph.cpp')
0 files changed, 0 insertions, 0 deletions