This allows us to consolidate several of the TableGen patterns.
Details
Diff Detail
Event Timeline
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1164–1167 | I don't think this is accurate for VI. On VI, these instructions are called SMEM format instead of SMRD, so the function name isn't quite right. More importantly, I thought the 20-bit offset on VI was in bytes and dwords on SI/CI. |
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1164–1167 | The value passed to the function is the encoded value, so it is already in the correct units for the target. SMRD was renamed to SMEM, but the load instructions are still identical, and we call them SMRD in a few other places. |
LGTM
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1165–1166 | I would add another sentence "Note that the offset has different units on VI" or something like that |
I would add another sentence "Note that the offset has different units on VI" or something like that