diff options
author | Changpeng Fang <changpeng.fang@amd.com> | 2024-03-05 09:16:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 09:16:42 -0800 |
commit | 1b1aea79194117d8f1729ef9c8f80454aea381fe (patch) | |
tree | f72c304b1017a1c3d5361cd91efacc414f6b815f | |
parent | f836048a2b452f5f2a8440c9f5945ee1a7bcdac2 (diff) | |
download | llvm-1b1aea79194117d8f1729ef9c8f80454aea381fe.zip llvm-1b1aea79194117d8f1729ef9c8f80454aea381fe.tar.gz llvm-1b1aea79194117d8f1729ef9c8f80454aea381fe.tar.bz2 |
AMDGPU: Make s_wait_samplecnt(_bvhcnt) dependent on hasImageInsts, NFC (#83932)
-rw-r--r-- | llvm/lib/Target/AMDGPU/SOPInstructions.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SOPInstructions.td b/llvm/lib/Target/AMDGPU/SOPInstructions.td index b5de311..ff79538 100644 --- a/llvm/lib/Target/AMDGPU/SOPInstructions.td +++ b/llvm/lib/Target/AMDGPU/SOPInstructions.td @@ -1598,8 +1598,10 @@ def S_WAITCNT_VSCNT_soft : SOPK_WAITCNT<"s_soft_waitcnt_vscnt">; let SubtargetPredicate = isGFX12Plus in { def S_WAIT_LOADCNT_soft : SOPP_Pseudo <"s_soft_wait_loadcnt", (ins s16imm:$simm16), "$simm16">; def S_WAIT_STORECNT_soft : SOPP_Pseudo <"s_soft_wait_storecnt", (ins s16imm:$simm16), "$simm16">; +let OtherPredicates = [HasImageInsts] in { def S_WAIT_SAMPLECNT_soft : SOPP_Pseudo <"s_soft_wait_samplecnt", (ins s16imm:$simm16), "$simm16">; def S_WAIT_BVHCNT_soft : SOPP_Pseudo <"s_soft_wait_bvhcnt", (ins s16imm:$simm16), "$simm16">; +} // End OtherPredicates = [HasImageInsts]. def S_WAIT_DSCNT_soft : SOPP_Pseudo <"s_soft_wait_dscnt", (ins s16imm:$simm16), "$simm16">; def S_WAIT_KMCNT_soft : SOPP_Pseudo <"s_soft_wait_kmcnt", (ins s16imm:$simm16), "$simm16">; } @@ -1727,12 +1729,14 @@ let SubtargetPredicate = isGFX12Plus, hasSideEffects = 1 in { [(int_amdgcn_s_wait_storecnt timm:$simm16)]>; def S_WAIT_STORECNT_DSCNT : SOPP_Pseudo<"s_wait_storecnt_dscnt", (ins s16imm:$simm16), "$simm16">; +let OtherPredicates = [HasImageInsts] in { def S_WAIT_SAMPLECNT : SOPP_Pseudo<"s_wait_samplecnt", (ins s16imm:$simm16), "$simm16", [(int_amdgcn_s_wait_samplecnt timm:$simm16)]>; def S_WAIT_BVHCNT : SOPP_Pseudo<"s_wait_bvhcnt", (ins s16imm:$simm16), "$simm16", [(int_amdgcn_s_wait_bvhcnt timm:$simm16)]>; +} // End OtherPredicates = [HasImageInsts]. def S_WAIT_EXPCNT : SOPP_Pseudo<"s_wait_expcnt", (ins s16imm:$simm16), "$simm16", [(int_amdgcn_s_wait_expcnt timm:$simm16)]>; |