Lines Matching refs:GlobalVariable
119 DenseMap<GlobalVariable *, GlobalVariable *> LDSToPointer;
120 DenseMap<GlobalVariable *, SmallPtrSet<Function *, 8>> LDSToNonKernels;
122 DenseMap<Function *, SmallPtrSet<GlobalVariable *, 8>> KernelToLDSPointers;
124 DenseMap<Function *, DenseMap<GlobalVariable *, Value *>>
128 std::vector<GlobalVariable *> collectLDSRequiringPointerReplace() { in collectLDSRequiringPointerReplace()
130 std::vector<GlobalVariable *> LDSGlobals = AMDGPU::findVariablesToLower(M); in collectLDSRequiringPointerReplace()
134 [&](GlobalVariable *GV) { in collectLDSRequiringPointerReplace()
144 bool shouldIgnorePointerReplacement(GlobalVariable *GV) { in shouldIgnorePointerReplacement()
160 GlobalVariable *createLDSPointer(GlobalVariable *GV) { in createLDSPointer()
171 GlobalVariable *LDSPointer = new GlobalVariable( in createLDSPointer()
173 GV->getName() + Twine(".ptr"), nullptr, GlobalVariable::NotThreadLocal, in createLDSPointer()
214 void initializeLDSPointer(Function *K, GlobalVariable *GV, in initializeLDSPointer()
215 GlobalVariable *LDSPointer) { in initializeLDSPointer()
218 std::make_pair(K, SmallPtrSet<GlobalVariable *, 8>())); in initializeLDSPointer()
240 void replaceLDSUseByPointer(GlobalVariable *GV, GlobalVariable *LDSPointer) { in replaceLDSUseByPointer()
284 Value *getReplacementInst(Function *F, GlobalVariable *GV, in getReplacementInst()
285 GlobalVariable *LDSPointer) { in getReplacementInst()
289 std::make_pair(F, DenseMap<GlobalVariable *, Value *>())); in getReplacementInst()
332 bool replaceLDSUse(GlobalVariable *GV);
337 bool ReplaceLDSUseImpl::replaceLDSUse(GlobalVariable *GV) { in replaceLDSUse()
342 GlobalVariable *LDSPointer = nullptr; in replaceLDSUse()
387 std::vector<GlobalVariable *> LDSGlobals = in replaceLDSUse()