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();
This class represents lattice values for constants.
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...
NVPTXMachineFunctionInfo(MachineFunction &MF)
const char * getImageHandleSymbol(unsigned Idx) const
Returns the symbol name at the given index.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())