Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I thought TFE was already handled?
llvm/lib/Target/AMDGPU/BUFInstructions.td | ||
---|---|---|
1304–1305 | 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 | All int and FP combinations not here? | |
149 | 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 | Can you also add i16 and f16 cases? | |
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.format.ll | ||
123–124 | Tests should use opaque pointers | |
157 | Ditto, i16 and f16 cases |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
4554 | If this isn't supposed to work, should return false for the fallback |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
4554 | 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 | 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 | ||
157 | Answered above. |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
4554 | 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