1 //===-- llvm/lib/Target/AArch64/AArch64CallLowering.h - Call lowering -----===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file describes how to lower LLVM calls to machine code calls.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64CALLLOWERING
16 #define LLVM_LIB_TARGET_AARCH64_AARCH64CALLLOWERING
18 #include "llvm/CodeGen/GlobalISel/CallLowering.h"
22 class AArch64TargetLowering;
24 class AArch64CallLowering: public CallLowering {
26 AArch64CallLowering(const AArch64TargetLowering &TLI);
28 bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val,
29 unsigned VReg) const override;
31 lowerFormalArguments(MachineIRBuilder &MIRBuilder,
32 const Function::ArgumentListType &Args,
33 const SmallVectorImpl<unsigned> &VRegs) const override;
35 } // End of namespace llvm;