LLVM  4.0.0
AMDGPUCallLowering.cpp
Go to the documentation of this file.
1 //===-- llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp - 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 implements the lowering of LLVM calls to machine code calls for
12 /// GlobalISel.
13 ///
14 //===----------------------------------------------------------------------===//
15 
16 #include "AMDGPUCallLowering.h"
17 #include "AMDGPUISelLowering.h"
18 
21 
22 using namespace llvm;
23 
24 #ifndef LLVM_BUILD_GLOBAL_ISEL
25 #error "This shouldn't be built without GISel"
26 #endif
27 
29  : CallLowering(&TLI) {
30 }
31 
33  const Value *Val, unsigned VReg) const {
34  return true;
35 }
36 
38  const Function &F,
39  ArrayRef<unsigned> VRegs) const {
40  // TODO: Implement once there are generic loads/stores.
41  return true;
42 }
This file describes how to lower LLVM calls to machine code calls.
static const MCPhysReg VRegs[32]
#define F(x, y, z)
Definition: MD5.cpp:51
Helper class to build MachineInstr.
Interface definition of the TargetLowering class that is common to all AMD GPUs.
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...
This file declares the MachineIRBuilder class.
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...
LLVM Value Representation.
Definition: Value.h:71
AMDGPUCallLowering(const AMDGPUTargetLowering &TLI)