Skip to content

Commit 8872da7

Browse files
committed
Give _fake16 record a vOPDName so that it now has a suffix in VOPDName.
The record now looks like: def V_CNDMASK_B16_e32 { ... Instruction BaseVOP = V_CNDMASK_B16_e32; string VOPDName = "v_dual_"; bits<5> VOPDOp = { 1, 1, 1, 1, 1 }; bit CanBeVOPDX = 0; --> Instruction BaseVOP = V_CNDMASK_B16_e32; string VOPDName = "v_dual_cndmask_b16"; bits<5> VOPDOp = { 1, 1, 1, 1, 1 }; bit CanBeVOPDX = 0; } Whereas before, these fields were omitted entirely.
1 parent 24da282 commit 8872da7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/VOP2Instructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ multiclass
319319
multiclass
320320
VOP2eInst<string opName, VOPProfile P, SDPatternOperator node = null_frag,
321321
string revOp = opName, bit useSGPRInput = !eq(P.NumSrcArgs, 3)>
322-
: VOP2eInst_Base<opName, P, 0, "", node, revOp, useSGPRInput>;
322+
: VOP2eInst_Base<opName, P, -1, "v_cndmask_b16", node, revOp, useSGPRInput>;
323323

324324
multiclass
325325
VOP2eInst_VOPD<string opName, VOPProfile P, bits<5> VOPDOp, string VOPDName,

llvm/lib/Target/AMDGPU/VOPInstructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defvar VOPDX_Max_Index = 12;
3737

3838
class VOPD_Component<bits<5> OpIn, string vOPDName> {
3939
Instruction BaseVOP = !cast<Instruction>(NAME);
40-
string VOPDName = "v_dual_" # !if(!le(!size(vOPDName), 2), "", !substr(vOPDName, 2));
40+
string VOPDName = "v_dual_" # !substr(vOPDName, 2);
4141
bits<5> VOPDOp = OpIn;
4242
bit CanBeVOPDX = !le(VOPDOp, VOPDX_Max_Index);
4343
}

0 commit comments

Comments
 (0)