[llvm] r180751 - R600: config section now reports use of killgt

Vincent Lejeune vljn at ovi.com
Thu May 2 09:49:40 PDT 2013


Hi,

Here is a patch that add a test for this commit.
The 2 other patches  change the asm output of r600 target,
and as a side effect they make already existing tests check that Alu are correctly packetized and that literals immediatly follow instructions that use them.
I'm working on tests for TEX/VTX too, they'll come later.

Vincent



----- Mail original -----
> De : Rafael Espíndola <rafael.espindola at gmail.com>
> À : Vincent Lejeune <vljn at ovi.com>
> Cc : llvm-commits <llvm-commits at cs.uiuc.edu>
> Envoyé le : Mardi 30 avril 2013 3h48
> Objet : Re: [llvm] r180751 - R600: config section now reports use of killgt
> 
>t est?
> 
> 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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-R600-Add-a-test-to-check-that-use_kill-is-emitted.patch
Type: application/octet-stream
Size: 746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130502/18854527/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-R600-Improve-asmPrint-of-ALU-clause.patch
Type: application/octet-stream
Size: 2916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130502/18854527/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-R600-Prettier-asmPrint-of-Alu.patch
Type: application/octet-stream
Size: 41617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130502/18854527/attachment-0002.obj>


More information about the llvm-commits mailing list