aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2024-01-30 15:39:31 -0500
committerGitHub <noreply@github.com>2024-01-30 15:39:31 -0500
commit6a21e00e397648141ed36aae4bd958efa09908f3 (patch)
tree028446ebbcc74f31f28ceccbf5aa7b423532724b /clang/lib/Basic/FileManager.cpp
parent30b9140c148923e31a6dbcb2202ef3908481bb29 (diff)
downloadllvm-6a21e00e397648141ed36aae4bd958efa09908f3.zip
llvm-6a21e00e397648141ed36aae4bd958efa09908f3.tar.gz
llvm-6a21e00e397648141ed36aae4bd958efa09908f3.tar.bz2
[AMDGPU][AsmParser] Allow `v_writelane_b32` to use SGPR and M0 as source operands at the same time (#78827)
Currently the asm parser takes `v_writelane_b32 v1, s13, m0` as illegal instruction for pre-gfx11 because it uses two constant buses while the hardware can only allow one. However, based on the comment of `AMDGPUInstructionSelector::selectWritelane`, it is allowed to have M0 as lane selector and a SGPR used as SRC0 because the lane selector doesn't count as a use of constant bus. In fact, codegen can already generate this form, but this inconsistency is not exposed because the validation of constant bus limitation only happens when paring an assembly but we don't have a test case when both SGPR and M0 used as source operands for the instruction.
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions