summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorMicah Villmow <villmow@gmail.com>2012-10-01 17:01:31 +0000
committerMicah Villmow <villmow@gmail.com>2012-10-01 17:01:31 +0000
commit48c8ddc0395453fdf2eae200ec6d7cf6e2f0c292 (patch)
tree0c7d46a654bfda209e0b72fbadb8d4ca92e8151f /llvm/lib/AsmParser/LLParser.cpp
parentd63f04d8a7fd522cf6cbab9cb7f2c1876ba98ff5 (diff)
downloadbcm5719-llvm-48c8ddc0395453fdf2eae200ec6d7cf6e2f0c292.tar.gz
bcm5719-llvm-48c8ddc0395453fdf2eae200ec6d7cf6e2f0c292.zip
Add in support for SPIR to LLVM core. This adds a new target and two new calling conventions.
llvm-svn: 164948
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 66a8e17e119..39d5660b7f5 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1101,6 +1101,8 @@ bool LLParser::ParseOptionalVisibility(unsigned &Res) {
/// ::= 'msp430_intrcc'
/// ::= 'ptx_kernel'
/// ::= 'ptx_device'
+/// ::= 'spir_func'
+/// ::= 'spir_kernel'
/// ::= 'cc' UINT
///
bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) {
@@ -1118,6 +1120,8 @@ bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) {
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_spir_kernel: CC = CallingConv::SPIR_KERNEL; break;
+ case lltok::kw_spir_func: CC = CallingConv::SPIR_FUNC; break;
case lltok::kw_cc: {
unsigned ArbitraryCC;
Lex.Lex();
OpenPOWER on IntegriCloud