[llvm] r180751 - R600: config section now reports use of killgt
Rafael EspĂndola
rafael.espindola at gmail.com
Mon Apr 29 18:48:59 PDT 2013
test?
On 29 April 2013 20:13, Vincent Lejeune <vljn at ovi.com> wrote:
> 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) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list