[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:20 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();
----------------
arsenm wrote:

TypeSize

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


More information about the llvm-commits mailing list