implement CallingConv::Fast as CallingConv::C
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 18 Oct 2006 12:03:07 +0000 (12:03 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 18 Oct 2006 12:03:07 +0000 (12:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelDAGToDAG.cpp
test/CodeGen/ARM/call.ll

index 72d25c8dcf68345b86ddc2dfa5d345641c673559..283d0f18c796fea04341ba4189eff44cf21066fb 100644 (file)
@@ -294,7 +294,9 @@ public:
 static SDOperand LowerCALL(SDOperand Op, SelectionDAG &DAG) {
   SDOperand Chain    = Op.getOperand(0);
   unsigned CallConv  = cast<ConstantSDNode>(Op.getOperand(1))->getValue();
-  assert(CallConv == CallingConv::C && "unknown calling convention");
+  assert((CallConv == CallingConv::C ||
+          CallConv == CallingConv::Fast)
+         && "unknown calling convention");
   bool isVarArg      = cast<ConstantSDNode>(Op.getOperand(2))->getValue() != 0;
   bool isTailCall    = cast<ConstantSDNode>(Op.getOperand(3))->getValue() != 0;
   SDOperand Callee   = Op.getOperand(4);
index 890018396e85404ffb712981084fd5f8596502a2..316cb548bbf9d6bb68dece0680afa13ee8a42aab 100644 (file)
@@ -2,9 +2,9 @@
 void %f() {
 entry:
        call void %g( int 1, int 2, int 3, int 4 )
-       call void %h()
+       call fastcc void %h()
        ret void
 }
 
 declare void %g(int, int, int, int)
-declare void %h()
+declare fastcc void %h()