Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit c87be4a

Browse files
committed
[AMDGPU] Enable changing instprinter's behavior based on the per-function
subtarget This is a prerequisite for coming waitcnt changes Differential Revision: https://reviews.llvm.org/D24939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282489 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent fbff6d5 commit c87be4a

File tree

3 files changed

+214
-132
lines changed

3 files changed

+214
-132
lines changed

lib/Target/AMDGPU/AMDGPU.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ def AMDGPUAsmParser : AsmParser {
349349
let ShouldEmitMatchRegisterName = 0;
350350
}
351351

352+
def AMDGPUAsmWriter : AsmWriter {
353+
int PassSubtarget = 1;
354+
}
355+
352356
def AMDGPUAsmVariants {
353357
string Default = "Default";
354358
int Default_ID = 0;
@@ -390,6 +394,7 @@ def AMDGPU : Target {
390394
VOP3AsmParserVariant,
391395
SDWAAsmParserVariant,
392396
DPPAsmParserVariant];
397+
let AssemblyWriters = [AMDGPUAsmWriter];
393398
}
394399

395400
// Dummy Instruction itineraries for pseudo instructions

0 commit comments

Comments
 (0)