15 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H
16 #define LLVM_LIB_TARGET_NVPTX_NVPTXMACHINEFUNCTIONINFO_H
35 for (
unsigned i = 0, e = ImageHandleList.
size();
i != e; ++
i)
36 if (ImageHandleList[
i] == std::string(Symbol))
40 return ImageHandleList.
size()-1;
45 assert(ImageHandleList.
size() > Idx &&
"Bad index");
46 return ImageHandleList[Idx].c_str();
void push_back(const T &Elt)
unsigned getImageHandleSymbolIndex(const char *Symbol)
Returns the index for the symbol Symbol.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
const char * getImageHandleSymbol(unsigned Idx) const
Returns the symbol name at the given index.
NVPTXMachineFunctionInfo(MachineFunction &MF)
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())