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)
46 ImageHandleList.push_back(Symbol.str());
47 return ImageHandleList.size()-1;
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)
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
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.
BumpPtrAllocatorImpl BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
bool is_contained(R &&Range, const E &Element)
Returns true if Element is found in Range.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...