[llvm] [llvm][TableGen] Add a !initialized predicate to allow testing for ? (PR #117964)

Krzysztof Drewniak via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 30 11:01:35 PST 2024


================
@@ -917,6 +917,13 @@ const Init *UnOpInit::Fold(const Record *CurRec, bool IsFinal) const {
       return NewInit;
     break;
 
+  case INITIALIZED:
+    if (isa_and_nonnull<UnsetInit>(LHS))
----------------
krzysz00 wrote:

I recall  some of the surrounding code being careful about NULLs, so ... seemed worth doing

https://github.com/llvm/llvm-project/pull/117964


More information about the llvm-commits mailing list