14#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H
15#define LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H
42 for (
unsigned i = 0, e = ImageHandleList.
size(); i != e; ++i)
43 if (ImageHandleList[i] == Symbol)
47 return ImageHandleList.
size()-1;
53 return ImageHandleList[
Idx];
59 return ImageHandleList.
end() !=
60 std::find(ImageHandleList.
begin(), ImageHandleList.
end(), Symbol);
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)
bool checkImageHandleSymbol(StringRef Symbol) const
Check if the symbol has a mapping.
unsigned getImageHandleSymbolIndex(StringRef Symbol)
Returns the index for the symbol Symbol.
NVPTXMachineFunctionInfo(const Function &F, const TargetSubtargetInfo *STI)
StringRef 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.
StringRef - Represent a constant reference to a string, i.e.
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...