Lines Matching defs:GV
116 auto *GV = dyn_cast<GlobalVariable>(Inst->getOperand(Idx));
117 if (!GV || !GV->isThreadLocal())
120 // Add Candidate to TLSCandMap (GV --> Candidate).
121 TLSCandMap[GV].addUser(Inst, Idx);
130 M->globals(), [](GlobalVariable &GV) { return GV.isThreadLocal(); });
193 GlobalVariable *GV,
195 tlshoist::TLSCandidate &Cand = TLSCandMap[GV];
219 GlobalVariable *GV) {
221 BasicBlock::iterator Iter = findInsertPos(Fn, GV, PosBB);
222 Type *Ty = GV->getType();
223 auto *CastInst = new BitCastInst(GV, Ty, "tls_bitcast");
229 GlobalVariable *GV) {
231 tlshoist::TLSCandidate &Cand = TLSCandMap[GV];
238 auto *CastInst = genBitCastInst(Fn, GV);
253 GlobalVariable *GV = GV2Cand.first;
254 Replaced |= tryReplaceTLSCandidate(Fn, GV);