[llvm] [RISCV] Move ActiveElementsAffectResult to TSFlags. NFC (PR #101123)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 22:00:25 PDT 2024


================
@@ -123,6 +123,9 @@ enum {
   // 3 -> widening case
   TargetOverlapConstraintTypeShift = UsesVXRMShift + 1,
   TargetOverlapConstraintTypeMask = 3ULL << TargetOverlapConstraintTypeShift,
+
+  ActiveElementsAffectResultShift = TargetOverlapConstraintTypeShift + 2,
+  ActiveElementsAffectResultMask = 1 << ActiveElementsAffectResultShift,
----------------
topperc wrote:

Use 1ULL. Just to be consistent with above. I know we're not past 32 bits yet, but it will protect us in case someone adds new bits earlier in the future.

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


More information about the llvm-commits mailing list