Skip to content

Commit

Permalink
[AMDGPU] Copy SOP properties from pseudo to real. NFCI. (#85997)
Browse files Browse the repository at this point in the history
This is to help llvm-obdump to analyze instructions in a future patch.
  • Loading branch information
rampitec committed Mar 20, 2024
1 parent 1f1f569 commit c2fd0e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions llvm/lib/Target/AMDGPU/SOPInstructions.td
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class SOP1_Real<bits<8> op, SOP1_Pseudo ps, string real_name = ps.Mnemonic> :
let SchedRW = ps.SchedRW;
let mayLoad = ps.mayLoad;
let mayStore = ps.mayStore;
let isTerminator = ps.isTerminator;
let isReturn = ps.isReturn;
let isCall = ps.isCall;
let isBranch = ps.isBranch;
let isBarrier = ps.isBarrier;

// encoding
bits<7> sdst;
Expand Down Expand Up @@ -977,6 +982,9 @@ class SOPK_Real<SOPK_Pseudo ps, string name = ps.Mnemonic> :
let mayStore = ps.mayStore;
let isBranch = ps.isBranch;
let isCall = ps.isCall;
let isTerminator = ps.isTerminator;
let isReturn = ps.isReturn;
let isBarrier = ps.isBarrier;

// encoding
bits<7> sdst;
Expand Down Expand Up @@ -1426,6 +1434,11 @@ class SOPP_Real<SOPP_Pseudo ps, string name = ps.Mnemonic> :
let SchedRW = ps.SchedRW;
let mayLoad = ps.mayLoad;
let mayStore = ps.mayStore;
let isTerminator = ps.isTerminator;
let isReturn = ps.isReturn;
let isCall = ps.isCall;
let isBranch = ps.isBranch;
let isBarrier = ps.isBarrier;
bits <16> simm16;
}

Expand Down

0 comments on commit c2fd0e4

Please sign in to comment.