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

Che-Liang Chiou clchiou at gmail.com
Tue Sep 14 01:59:41 PDT 2010


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

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r113836-add-exit.patch
Type: text/x-patch
Size: 31004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100914/0fcb873e/attachment.bin>


More information about the llvm-commits mailing list