[llvm] [AMDGPU] Accept arbitrary sized sources in CalculateByteProvider (PR #70240)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 9 23:49:21 PST 2023
================
@@ -11233,15 +11259,68 @@ static bool hasNon16BitAccesses(uint64_t PermMask, SDValue &Op,
return !addresses16Bits(Low16) || !addresses16Bits(Hi16);
}
+static SDValue getDWordFromOffset(SelectionDAG &DAG, SDLoc SL, SDValue Src,
+ unsigned DWordOffset) {
+ SDValue Ret;
+
+ auto ValueSize = Src.getValueSizeInBits().getFixedValue();
+ // ByteProvider must be at least 8 bits
+ assert(!(ValueSize % 8));
----------------
arsenm wrote:
.isKnownMultipleOf(8)
https://github.com/llvm/llvm-project/pull/70240
More information about the llvm-commits
mailing list