[llvm] [SDAG] Simplify `SDNodeFlags` with bitwise logic (PR #114061)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 07:34:59 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; }
----------------
goldsteinn wrote:
Now that craig mentions it, I think the `setFlags` is still unclear given that the rest of the `set*` API does use `|=`. Maybe `setFlags` -> `initFlags`?
https://github.com/llvm/llvm-project/pull/114061
More information about the llvm-commits
mailing list