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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 08:14:06 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:

Emm... It is likely to break some downstream implementations.

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


More information about the llvm-commits mailing list