1000c5af3STom Stellard //===-- llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp - Call lowering ---===// 2000c5af3STom Stellard // 3000c5af3STom Stellard // The LLVM Compiler Infrastructure 4000c5af3STom Stellard // 5000c5af3STom Stellard // This file is distributed under the University of Illinois Open Source 6000c5af3STom Stellard // License. See LICENSE.TXT for details. 7000c5af3STom Stellard // 8000c5af3STom Stellard //===----------------------------------------------------------------------===// 9000c5af3STom Stellard /// 10000c5af3STom Stellard /// \file 11000c5af3STom Stellard /// This file implements the lowering of LLVM calls to machine code calls for 12000c5af3STom Stellard /// GlobalISel. 13000c5af3STom Stellard /// 14000c5af3STom Stellard //===----------------------------------------------------------------------===// 15000c5af3STom Stellard 16000c5af3STom Stellard #include "AMDGPUCallLowering.h" 17000c5af3STom Stellard #include "AMDGPUISelLowering.h" 18000c5af3STom Stellard 19000c5af3STom Stellard #include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h" 20000c5af3STom Stellard #include "llvm/CodeGen/MachineInstrBuilder.h" 21000c5af3STom Stellard 22000c5af3STom Stellard using namespace llvm; 23000c5af3STom Stellard 24000c5af3STom Stellard #ifndef LLVM_BUILD_GLOBAL_ISEL 25000c5af3STom Stellard #error "This shouldn't be built without GISel" 26000c5af3STom Stellard #endif 27000c5af3STom Stellard 28000c5af3STom Stellard AMDGPUCallLowering::AMDGPUCallLowering(const AMDGPUTargetLowering &TLI) 29000c5af3STom Stellard : CallLowering(&TLI) { 30000c5af3STom Stellard } 31000c5af3STom Stellard 32000c5af3STom Stellard bool AMDGPUCallLowering::lowerReturn(MachineIRBuilder &MIRBuilder, 33000c5af3STom Stellard const Value *Val, unsigned VReg) const { 34000c5af3STom Stellard return true; 35000c5af3STom Stellard } 36000c5af3STom Stellard 37*862758ecSTim Northover bool AMDGPUCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder, 38*862758ecSTim Northover const Function &F, 39406024a1STim Northover ArrayRef<unsigned> VRegs) const { 40000c5af3STom Stellard // TODO: Implement once there are generic loads/stores. 41000c5af3STom Stellard return true; 42000c5af3STom Stellard } 43