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