summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@gmail.com>2010-09-25 07:46:17 +0000
committerChe-Liang Chiou <clchiou@gmail.com>2010-09-25 07:46:17 +0000
commit299479020a4a44eb9b0da1e740cbe6a6f88f947c (patch)
treedd081b6b8d98ebdbfb865a7711d391a648a24b80 /llvm/lib/AsmParser/LLParser.cpp
parentb38a05572abf0df4381030a6e7554014dfa03064 (diff)
downloadbcm5719-llvm-299479020a4a44eb9b0da1e740cbe6a6f88f947c.tar.gz
bcm5719-llvm-299479020a4a44eb9b0da1e740cbe6a6f88f947c.zip
Add ret instruction to PTX backend
llvm-svn: 114788
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index f21a065473b..3a9c47c8f51 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1084,6 +1084,8 @@ bool LLParser::ParseOptionalVisibility(unsigned &Res) {
/// ::= 'arm_aapcscc'
/// ::= 'arm_aapcs_vfpcc'
/// ::= 'msp430_intrcc'
+/// ::= 'ptx_kernel'
+/// ::= 'ptx_device'
/// ::= 'cc' UINT
///
bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) {
@@ -1099,6 +1101,8 @@ bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) {
case lltok::kw_arm_aapcscc: CC = CallingConv::ARM_AAPCS; break;
case lltok::kw_arm_aapcs_vfpcc:CC = CallingConv::ARM_AAPCS_VFP; break;
case lltok::kw_msp430_intrcc: CC = CallingConv::MSP430_INTR; break;
+ case lltok::kw_ptx_kernel: CC = CallingConv::PTX_Kernel; break;
+ case lltok::kw_ptx_device: CC = CallingConv::PTX_Device; break;
case lltok::kw_cc: {
unsigned ArbitraryCC;
Lex.Lex();
OpenPOWER on IntegriCloud