[llvm] r254741 - [WebAssembly] Add several more calling conventions to the supported list.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 10:27:03 PST 2015


Author: djg
Date: Fri Dec  4 12:27:03 2015
New Revision: 254741

URL: http://llvm.org/viewvc/llvm-project?rev=254741&view=rev
Log:
[WebAssembly] Add several more calling conventions to the supported list.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=254741&r1=254740&r2=254741&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Fri Dec  4 12:27:03 2015
@@ -260,9 +260,14 @@ static void fail(SDLoc DL, SelectionDAG
 // Test whether the given calling convention is supported.
 static bool CallingConvSupported(CallingConv::ID CallConv) {
   // We currently support the language-independent target-independent
-  // conventions.
+  // conventions. We don't yet have a way to annotate calls with properties like
+  // "cold", and we don't have any call-clobbered registers, so these are mostly
+  // all handled the same.
   return CallConv == CallingConv::C || CallConv == CallingConv::Fast ||
-         CallConv == CallingConv::Cold;
+         CallConv == CallingConv::Cold ||
+         CallConv == CallingConv::PreserveMost ||
+         CallConv == CallingConv::PreserveAll ||
+         CallConv == CallingConv::CXX_FAST_TLS;
 }
 
 SDValue




More information about the llvm-commits mailing list