14#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H
15#define LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H
41 for (
unsigned i = 0, e = ImageHandleList.
size(); i != e; ++i)
42 if (ImageHandleList[i] == std::string(Symbol))
46 return ImageHandleList.
size()-1;
52 return ImageHandleList[
Idx].c_str();
Returns the sub type a function will return at a given Idx Should correspond to the result type of an ExtractValue instruction executed with just that one unsigned Idx
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Allocate memory in an ever growing pool, as if by bump-pointer.
Ty * cloneInfo(const Ty &Old)
NVPTXMachineFunctionInfo(const Function &F, const TargetSubtargetInfo *STI)
unsigned getImageHandleSymbolIndex(const char *Symbol)
Returns the index for the symbol Symbol.
const char * getImageHandleSymbol(unsigned Idx) const
Returns the symbol name at the given index.
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
TargetSubtargetInfo - Generic base class for all target subtargets.
This is an optimization pass for GlobalISel generic memory operations.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...