This allows us to consolidate several of the TableGen patterns.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1164–1167 ↗ | (On Diff #30930) | 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 ↗ | (On Diff #30930) | 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. |
Comment Actions
LGTM
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1165–1166 ↗ | (On Diff #31097) | I would add another sentence "Note that the offset has different units on VI" or something like that |