[llvm] r180751 - R600: config section now reports use of killgt
Vincent Lejeune
vljn at ovi.com
Mon Apr 29 17:13:13 PDT 2013
Author: vljn
Date: Mon Apr 29 19:13:13 2013
New Revision: 180751
URL: http://llvm.org/viewvc/llvm-project?rev=180751&view=rev
Log:
R600: config section now reports use of killgt
Modified:
llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp?rev=180751&r1=180750&r2=180751&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp Mon Apr 29 19:13:13 2013
@@ -74,6 +74,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunct
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::EmitProgramInfoR6
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::EmitProgramInfoR6
}
OutStreamer.EmitIntValue(MaxGPR + 1, 4);
OutStreamer.EmitIntValue(MFI->StackSize, 4);
+ OutStreamer.EmitIntValue(killPixel, 4);
}
void AMDGPUAsmPrinter::EmitProgramInfoSI(MachineFunction &MF) {
More information about the llvm-commits
mailing list