LLVM  4.0.0
X86CallLowering.h
Go to the documentation of this file.
1 //===-- llvm/lib/Target/X86/X86CallLowering.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_X86_X86CALLLOWERING
16 #define LLVM_LIB_TARGET_X86_X86CALLLOWERING
17 
18 #include "llvm/ADT/ArrayRef.h"
20 
21 namespace llvm {
22 
23 class Function;
24 class MachineIRBuilder;
25 class X86TargetLowering;
26 class Value;
27 
28 class X86CallLowering : public CallLowering {
29 public:
31 
32  bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val,
33  unsigned VReg) const override;
34 
35  bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
36  ArrayRef<unsigned> VRegs) const override;
37 };
38 } // End of namespace llvm;
39 #endif
bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef< unsigned > VRegs) const override
This hook must be implemented to lower the incoming (formal) arguments, described by Args...
static const MCPhysReg VRegs[32]
#define F(x, y, z)
Definition: MD5.cpp:51
bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, unsigned VReg) const override
This hook must be implemented to lower outgoing return values, described by Val, into the specified v...
Helper class to build MachineInstr.
LLVM Value Representation.
Definition: Value.h:71
This file describes how to lower LLVM calls to machine code calls.
X86CallLowering(const X86TargetLowering &TLI)