aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorJeremy Furtek <jfurtek@nvidia.com>2022-04-25 18:51:09 +0000
committerMogball <jeffniu22@gmail.com>2022-04-25 19:00:00 +0000
commita266a21000123b66718df2a09fd7ceeea67843c5 (patch)
tree6f28843066a2333f36e9e2bb309ec840a841ae2d /lldb/source/Commands/CommandObjectThread.cpp
parent4e5dee2f30dd5b3548a268271e844b54a35947c2 (diff)
downloadllvm-a266a21000123b66718df2a09fd7ceeea67843c5.zip
llvm-a266a21000123b66718df2a09fd7ceeea67843c5.tar.gz
llvm-a266a21000123b66718df2a09fd7ceeea67843c5.tar.bz2
[mlir][ods] Extend the EnumAttr tablegen class to support BitEnum attributes
This diff allows the EnumAttr class to be used for bit enum attributes (in addition to previously supported integer enum attributes). While integer and bit enum attributes share many common implementation aspects, parsing bit enum values requires a separate implementation. This is accomplished by creating empty parser and printer strings in the EnumAttrInfo record, and having derived classes (specific to bit and integer enums) override with an appropriate parser/printer string. To support existing bit enums that may use a vertical bar separator, the parser is modified to support the | token. Tests were added for bit enums alongside integer enums. Future diffs for fastmath attributes in the arithmetic dialect will use these changes. (resubmission of earlier abaondoned diff, updated to reflect subsequent changes in the repository) Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D123880
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions