Lines Matching refs:Ind
126 if (auto *Ind = dyn_cast<InstrProfValueProfileInst>(I)) in run() local
127 computeNumValueSiteCounts(Ind); in run()
144 } else if (auto *Ind = dyn_cast<InstrProfValueProfileInst>(Instr)) { in run() local
145 lowerValueProfileInst(Ind); in run()
181 void InstrProfiling::computeNumValueSiteCounts(InstrProfValueProfileInst *Ind) { in computeNumValueSiteCounts() argument
183 GlobalVariable *Name = Ind->getName(); in computeNumValueSiteCounts()
184 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in computeNumValueSiteCounts()
185 uint64_t Index = Ind->getIndex()->getZExtValue(); in computeNumValueSiteCounts()
195 void InstrProfiling::lowerValueProfileInst(InstrProfValueProfileInst *Ind) { in lowerValueProfileInst() argument
197 GlobalVariable *Name = Ind->getName(); in lowerValueProfileInst()
203 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in lowerValueProfileInst()
204 uint64_t Index = Ind->getIndex()->getZExtValue(); in lowerValueProfileInst()
208 IRBuilder<> Builder(Ind); in lowerValueProfileInst()
209 Value *Args[3] = {Ind->getTargetValue(), in lowerValueProfileInst()
212 Ind->replaceAllUsesWith( in lowerValueProfileInst()
214 Ind->eraseFromParent(); in lowerValueProfileInst()