summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2013-12-15 10:01:20 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2013-12-15 10:01:20 +0000
commite31b486cddf7fa069f56882319400c5003425095 (patch)
treede33ee389fc1fdc7b92c34b34b7fa65b47aeb431 /llvm/lib
parent7466979f2044909959843904883514bbe2e039ca (diff)
downloadbcm5719-llvm-e31b486cddf7fa069f56882319400c5003425095.tar.gz
bcm5719-llvm-e31b486cddf7fa069f56882319400c5003425095.zip
Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
llvm-svn: 197335
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index bd0f3c69b7a..7215fc2a4c1 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -88,6 +88,8 @@ static void PrintCallingConv(unsigned cc, raw_ostream &Out) {
case CallingConv::PTX_Device: Out << "ptx_device"; break;
case CallingConv::X86_64_SysV: Out << "x86_64_sysvcc"; break;
case CallingConv::X86_64_Win64: Out << "x86_64_win64cc"; break;
+ case CallingConv::SPIR_FUNC: Out << "spir_func"; break;
+ case CallingConv::SPIR_KERNEL: Out << "spir_kernel"; break;
}
}
OpenPOWER on IntegriCloud