[llvm] [SDAG] Simplifies `SDNodeFlags` with bitwise logic (PR #114061)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 23:35:39 PDT 2024


================
@@ -1006,6 +1016,7 @@ END_TWO_BYTE_PACK()
 
   SDNodeFlags getFlags() const { return Flags; }
   void setFlags(SDNodeFlags NewFlags) { Flags = NewFlags; }
+  void clearFlags(unsigned Mask) { Flags &= ~Mask; }
----------------
dtcxzyw wrote:

Done.

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


More information about the llvm-commits mailing list