[llvm] r197335 - Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
Michael Kuperstein
michael.m.kuperstein at intel.com
Sun Dec 15 02:01:21 PST 2013
Author: mkuper
Date: Sun Dec 15 04:01:20 2013
New Revision: 197335
URL: http://llvm.org/viewvc/llvm-project?rev=197335&view=rev
Log:
Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
Modified:
llvm/trunk/lib/IR/AsmWriter.cpp
Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=197335&r1=197334&r2=197335&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Sun Dec 15 04:01:20 2013
@@ -88,6 +88,8 @@ static void PrintCallingConv(unsigned cc
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;
}
}
More information about the llvm-commits
mailing list