Lines Matching refs:GV
52 const GlobalVariable &GV) { in allocateLDSGlobal() argument
53 auto Entry = LocalMemoryObjects.insert(std::make_pair(&GV, 0)); in allocateLDSGlobal()
58 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in allocateLDSGlobal()
61 if (GV.getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) { in allocateLDSGlobal()
67 StaticLDSSize += DL.getTypeAllocSize(GV.getValueType()); in allocateLDSGlobal()
73 assert(GV.getAddressSpace() == AMDGPUAS::REGION_ADDRESS && in allocateLDSGlobal()
77 StaticGDSSize += DL.getTypeAllocSize(GV.getValueType()); in allocateLDSGlobal()
95 const GlobalVariable *GV = M->getNamedGlobal("llvm.amdgcn.module.lds"); in allocateModuleLDSGlobal() local
96 if (GV && !canElideModuleLDS(F)) { in allocateModuleLDSGlobal()
97 unsigned Offset = allocateLDSGlobal(M->getDataLayout(), *GV); in allocateModuleLDSGlobal()
121 const GlobalVariable &GV) { in setDynLDSAlign() argument
122 assert(DL.getTypeAllocSize(GV.getValueType()).isZero()); in setDynLDSAlign()
125 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in setDynLDSAlign()