diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-04-30 00:13:13 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-04-30 00:13:13 +0000 |
commit | 86cdb704174828b8e91e94132a19634e3c11d87d (patch) | |
tree | 294bfeeb7960dc1041b5bc693143ca6d351c21d5 | |
parent | 725dae57916800c7371c5008bd451fb3edb273b2 (diff) | |
download | external_llvm-86cdb704174828b8e91e94132a19634e3c11d87d.zip external_llvm-86cdb704174828b8e91e94132a19634e3c11d87d.tar.gz external_llvm-86cdb704174828b8e91e94132a19634e3c11d87d.tar.bz2 |
R600: config section now reports use of killgt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180751 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/R600/AMDGPUAsmPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUAsmPrinter.cpp b/lib/Target/R600/AMDGPUAsmPrinter.cpp index 7dabbfa..c915f50 100644 --- a/lib/Target/R600/AMDGPUAsmPrinter.cpp +++ b/lib/Target/R600/AMDGPUAsmPrinter.cpp @@ -74,6 +74,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) { void AMDGPUAsmPrinter::EmitProgramInfoR600(MachineFunction &MF) { unsigned MaxGPR = 0; + bool killPixel = false; const R600RegisterInfo * RI = static_cast<const R600RegisterInfo*>(TM.getRegisterInfo()); R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); @@ -84,6 +85,8 @@ void AMDGPUAsmPrinter::EmitProgramInfoR600(MachineFunction &MF) { for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E; ++I) { MachineInstr &MI = *I; + if (MI.getOpcode() == AMDGPU::KILLGT) + killPixel = true; unsigned numOperands = MI.getNumOperands(); for (unsigned op_idx = 0; op_idx < numOperands; op_idx++) { MachineOperand & MO = MI.getOperand(op_idx); @@ -100,6 +103,7 @@ void AMDGPUAsmPrinter::EmitProgramInfoR600(MachineFunction &MF) { } OutStreamer.EmitIntValue(MaxGPR + 1, 4); OutStreamer.EmitIntValue(MFI->StackSize, 4); + OutStreamer.EmitIntValue(killPixel, 4); } void AMDGPUAsmPrinter::EmitProgramInfoSI(MachineFunction &MF) { |