[PATCH] D90635: [TableGen] Add true and false literals to represent booleans
Paul C. Anagnostopoulos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 12:58:00 PST 2020
Paul-C-Anagnostopoulos added a comment.
Sorry, I'm not sure what you mean by "these." If you mean 'true' and 'false', they are simply named literals for 1 and 0. So they can be used in any context where an integer is allowed.
A field type of 'bit' is used for boolean fields. It is also used for single-bit fields where the individual bits feature of bits<n> is not required.
I contemplated inventing a 'boolean' type, but quickly gave up on that idea.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90635/new/
https://reviews.llvm.org/D90635
More information about the llvm-commits
mailing list