[all-commits] [llvm/llvm-project] b24caf: [llvm][TableGen] Add a !initialized predicate to a...
Krzysztof Drewniak via All-commits
all-commits at lists.llvm.org
Tue Dec 17 18:34:57 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b24caf3d2b91ad8b2b29d70fb69fce3c5347b9f4
https://github.com/llvm/llvm-project/commit/b24caf3d2b91ad8b2b29d70fb69fce3c5347b9f4
Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
Date: 2024-12-17 (Tue, 17 Dec 2024)
Changed paths:
M llvm/docs/TableGen/ProgRef.rst
M llvm/include/llvm/TableGen/Record.h
M llvm/lib/TableGen/Record.cpp
M llvm/lib/TableGen/TGLexer.cpp
M llvm/lib/TableGen/TGLexer.h
M llvm/lib/TableGen/TGParser.cpp
A llvm/test/TableGen/initialized.td
Log Message:
-----------
[llvm][TableGen] Add a !initialized predicate to allow testing for ? (#117964)
There are cases (like in an upcoming patch to MLIR's `Property` class)
where the ? value is a useful null value. However, existing predicates
make ti difficult to test if the value in a record one is operating is ?
or not.
This commit adds the !initialized predicate, which is 1 on concrete,
non-? values and 0 on ?.
---------
Co-authored-by: Akshat Oke <Akshat.Oke at amd.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list