Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: lib/Target/CBackend/CBackend.cpp

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp ('k') | lib/Transforms/InstCombine/InstCombineCalls.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Target/CBackend/CBackend.cpp
===================================================================
--- lib/Target/CBackend/CBackend.cpp (revision 138929)
+++ lib/Target/CBackend/CBackend.cpp (working copy)
@@ -2842,11 +2842,15 @@
case Intrinsic::longjmp:
case Intrinsic::prefetch:
case Intrinsic::powi:
+#if defined(TARGET_ENABLED_X86)
case Intrinsic::x86_sse_cmp_ss:
case Intrinsic::x86_sse_cmp_ps:
case Intrinsic::x86_sse2_cmp_sd:
case Intrinsic::x86_sse2_cmp_pd:
+#endif // TARGET_ENABLED_X86
+#if defined(TARGET_ENABLED_POWERPC)
case Intrinsic::ppc_altivec_lvsl:
+#endif // TARGET_ENABLED_POWERPC
case Intrinsic::uadd_with_overflow:
case Intrinsic::sadd_with_overflow:
// We directly implement these intrinsics
@@ -3100,6 +3104,7 @@
Out << "0; *((void**)&" << GetValueName(&I)
<< ") = __builtin_stack_save()";
return true;
+#if defined(TARGET_ENABLED_X86)
case Intrinsic::x86_sse_cmp_ss:
case Intrinsic::x86_sse_cmp_ps:
case Intrinsic::x86_sse2_cmp_sd:
@@ -3134,6 +3139,8 @@
writeOperand(I.getArgOperand(1));
Out << ")";
return true;
+#endif // TARGET_ENABLED_X86
+#if defined(TARGET_ENABLED_POWERPC)
case Intrinsic::ppc_altivec_lvsl:
Out << '(';
printType(Out, I.getType());
@@ -3142,6 +3149,7 @@
writeOperand(I.getArgOperand(0));
Out << ")";
return true;
+#endif // TARGET_ENABLED_POWERPC
case Intrinsic::uadd_with_overflow:
case Intrinsic::sadd_with_overflow:
Out << GetValueName(I.getCalledFunction()) << "(";
« no previous file with comments | « lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp ('k') | lib/Transforms/InstCombine/InstCombineCalls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698