Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I thought TFE was already handled?
llvm/lib/Target/AMDGPU/BUFInstructions.td | ||
---|---|---|
1304–1305 ↗ | (On Diff #476133) | Why do these need fp and integer patterns? Given you've got the integer high element, I'd expect this to always be int vector |
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.format.ll | ||
125 ↗ | (On Diff #476133) | All int and FP combinations not here? |
149 ↗ | (On Diff #476133) | 2 x case missing? |
I thought TFE was already handled?
Image TFE intrinsics were added in https://reviews.llvm.org/D48826, but TFE loads remained unsupported.
LGTM, except I'd like to see tests trying to break the d16 interactions
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.format.ll | ||
---|---|---|
337 ↗ | (On Diff #477719) | Can you also add i16 and f16 cases? |
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.format.ll | ||
124–125 ↗ | (On Diff #477719) | Tests should use opaque pointers |
232 ↗ | (On Diff #477719) | Ditto, i16 and f16 cases |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
4557 | If this isn't supposed to work, should return false for the fallback |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
4557 | What's the fallback? From what I see if we do not stop here, it will just crash later on a less specific check not being able to legalise the call. | |
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.format.ll | ||
337 ↗ | (On Diff #477719) | The title says it that this is not supposed to support d16 cases. We would just crash on these. |
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.format.ll | ||
232 ↗ | (On Diff #477719) | Answered above. |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
4557 | The legalization error is a better user facing error than hitting the assert |
If this isn't supposed to work, should return false for the fallback