Lines Matching refs:GlobalVariable
122 SmallPtrSet<Function *, 8> collectNonKernelAccessorsOfLDS(GlobalVariable *GV);
132 DenseMap<GlobalVariable *, GlobalVariable *> LDSToPointer;
133 DenseMap<GlobalVariable *, SmallPtrSet<Function *, 8>> LDSToNonKernels;
135 DenseMap<Function *, SmallPtrSet<GlobalVariable *, 8>> KernelToLDSPointers;
137 DenseMap<Function *, DenseMap<GlobalVariable *, Value *>>
141 std::vector<GlobalVariable *> collectLDSRequiringPointerReplace() { in collectLDSRequiringPointerReplace()
143 std::vector<GlobalVariable *> LDSGlobals = in collectLDSRequiringPointerReplace()
147 llvm::erase_if(LDSGlobals, [&](GlobalVariable *GV) { in collectLDSRequiringPointerReplace()
156 bool shouldIgnorePointerReplacement(GlobalVariable *GV) { in shouldIgnorePointerReplacement()
172 GlobalVariable *createLDSPointer(GlobalVariable *GV) { in createLDSPointer()
183 GlobalVariable *LDSPointer = new GlobalVariable( in createLDSPointer()
185 GV->getName() + Twine(".ptr"), nullptr, GlobalVariable::NotThreadLocal, in createLDSPointer()
226 void initializeLDSPointer(Function *K, GlobalVariable *GV, in initializeLDSPointer()
227 GlobalVariable *LDSPointer) { in initializeLDSPointer()
230 std::make_pair(K, SmallPtrSet<GlobalVariable *, 8>())); in initializeLDSPointer()
252 void replaceLDSUseByPointer(GlobalVariable *GV, GlobalVariable *LDSPointer) { in replaceLDSUseByPointer()
295 Value *getReplacementInst(Function *F, GlobalVariable *GV, in getReplacementInst()
296 GlobalVariable *LDSPointer) { in getReplacementInst()
300 std::make_pair(F, DenseMap<GlobalVariable *, Value *>())); in getReplacementInst()
343 bool replaceLDSUse(GlobalVariable *GV);
348 bool ReplaceLDSUseImpl::replaceLDSUse(GlobalVariable *GV) { in replaceLDSUse()
353 GlobalVariable *LDSPointer = nullptr; in replaceLDSUse()
496 SmallPtrSet<Function *, 8> collectNonKernelAccessorsOfLDS(GlobalVariable *GV) { in collectNonKernelAccessorsOfLDS()
575 std::vector<GlobalVariable *> LDSGlobals = in replaceLDSUse()