|
LLVM
4.0.0
|
#include <AMDGPUMachineFunction.h>
Public Member Functions | |
| AMDGPUMachineFunction (const MachineFunction &MF) | |
| uint64_t | allocateKernArg (uint64_t Size, unsigned Align) |
| uint64_t | getKernArgSize () const |
| unsigned | getMaxKernArgAlign () const |
| void | setABIArgOffset (unsigned NewOffset) |
| unsigned | getABIArgOffset () const |
| unsigned | getLDSSize () const |
| bool | isKernel () const |
| unsigned | allocateLDSGlobal (const DataLayout &DL, const GlobalValue &GV) |
Public Member Functions inherited from llvm::MachineFunctionInfo | |
| virtual | ~MachineFunctionInfo () |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::MachineFunctionInfo | |
| template<typename Ty > | |
| static Ty * | create (BumpPtrAllocator &Allocator, MachineFunction &MF) |
| Factory function: default behavior is to call new using the supplied allocator. More... | |
Definition at line 18 of file AMDGPUMachineFunction.h.
| AMDGPUMachineFunction::AMDGPUMachineFunction | ( | const MachineFunction & | MF | ) |
Definition at line 15 of file AMDGPUMachineFunction.cpp.
|
inline |
Definition at line 38 of file AMDGPUMachineFunction.h.
References llvm::alignTo(), assert(), and llvm::isPowerOf2_32().
Referenced by allocateKernArg().
| unsigned AMDGPUMachineFunction::allocateLDSGlobal | ( | const DataLayout & | DL, |
| const GlobalValue & | GV | ||
| ) |
TODO: We should sort these to minimize wasted space due to alignment padding. Currently the padding is decided by the first encountered use during lowering.
Definition at line 28 of file AMDGPUMachineFunction.cpp.
References llvm::alignTo(), llvm::DataLayout::getABITypeAlignment(), llvm::GlobalValue::getAlignment(), llvm::DataLayout::getTypeAllocSize(), llvm::GlobalValue::getValueType(), and Offset.
Referenced by llvm::AMDGPUTargetLowering::LowerGlobalAddress().
|
inline |
Definition at line 61 of file AMDGPUMachineFunction.h.
Referenced by llvm::AMDGPUTargetLowering::getImplicitParameterOffset().
|
inline |
Definition at line 49 of file AMDGPUMachineFunction.h.
|
inline |
Definition at line 65 of file AMDGPUMachineFunction.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress(), and llvm::SITargetLowering::EmitInstrWithCustomInserter().
|
inline |
Definition at line 53 of file AMDGPUMachineFunction.h.
|
inline |
Definition at line 69 of file AMDGPUMachineFunction.h.
Referenced by llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel().
|
inline |
Definition at line 57 of file AMDGPUMachineFunction.h.
Referenced by llvm::R600TargetLowering::LowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
1.8.6