[llvm-commits] [PATCH] Add exit instruction to PTX backend

Chris Lattner clattner at apple.com
Wed Sep 15 15:54:05 PDT 2010


On Sep 14, 2010, at 1:59 AM, Che-Liang Chiou wrote:

> Hi,
> 
> I have created a patch that adds "exit" instruction to PTX backend.
> 
> SVN revision:
> 113836
> 
> TEST:
> $ cd llvm/test/
> $ llvm-lit CodeGen/PTX/exit.ll
> -- Testing: 1 tests, 8 threads --
> PASS: LLVM :: CodeGen/PTX/exit.ll (1 of 1)
> Testing Time: 0.01s
>  Expected Passes    : 1

Looks good to me.  Please make sure to update the cmake file.  Also, please put your {'s on the "previous line" instead of on a new line.

-Chris

> 
> Note:
> Compiling auto generated cpp file produces warning.  I suspect the it
> is because of too few instructions in .td file for now.  The warning
> message should look like this:
> 
> In file included from PTXAsmPrinter.cpp:50:
> /usr/local/google/clchiou/llvm/llvm/lib/Target/PTX/AsmPrinter/../PTXGenAsmWriter.inc:
> In member function
> ‘void<unnamed>::PTXAsmPrinter::printInstruction(const
> llvm::MachineInstr*, llvm::raw_ostream&)’:
> /usr/local/google/clchiou/llvm/llvm/lib/Target/PTX/AsmPrinter/../PTXGenAsmWriter.inc:43:
> warning: right shift count >= width of type
> 
> This warning should disappear after more instructions are added.
> 
> Regards,
> Che-Liang
> <r113836-add-exit.patch>_______________________________________________
> 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