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

Akshat Oke via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 06:37:02 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))
----------------
optimisan wrote:

This choice seems interesting - `LHS` shouldn't ever be null here, right?

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


More information about the llvm-commits mailing list