[PATCH] D91036: [TableGen] Enhance the six comparison bang operators.
Paul C. Anagnostopoulos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 8 11:41:15 PST 2020
Paul-C-Anagnostopoulos created this revision.
Paul-C-Anagnostopoulos added reviewers: lattner, nhaehnle, madhur13490.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Paul-C-Anagnostopoulos requested review of this revision.
All six comparison operators now work with strings.
In addition, the !eq and !ne operators work with records. This eliminates lots of !cast<string> operations that were necessary to compare record names as strings.
The Programmer's Reference is updated.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91036
Files:
llvm/docs/TableGen/ProgRef.rst
llvm/lib/TableGen/Record.cpp
llvm/lib/TableGen/TGParser.cpp
llvm/test/TableGen/compare.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91036.303731.patch
Type: text/x-patch
Size: 12161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201108/14071bb8/attachment.bin>
More information about the llvm-commits
mailing list