1 //===-- llvm/lib/Target/ARM/ARMCallLowering.h - Call lowering -------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 /// 10 /// \file 11 /// This file describes how to lower LLVM calls to machine code calls. 12 /// 13 //===----------------------------------------------------------------------===// 14 15 #ifndef LLVM_LIB_TARGET_ARM_ARMCALLLOWERING 16 #define LLVM_LIB_TARGET_ARM_ARMCALLLOWERING 17 18 #include "llvm/CodeGen/CallingConvLower.h" 19 #include "llvm/CodeGen/GlobalISel/CallLowering.h" 20 #include "llvm/CodeGen/ValueTypes.h" 21 22 namespace llvm { 23 24 class ARMTargetLowering; 25 26 class ARMCallLowering : public CallLowering { 27 public: 28 ARMCallLowering(const ARMTargetLowering &TLI); 29 30 bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, 31 unsigned VReg) const override; 32 33 bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, 34 ArrayRef<unsigned> VRegs) const override; 35 }; 36 } // End of namespace llvm 37 #endif 38