Lines Matching refs:Ind
723 if (auto *Ind = dyn_cast<InstrProfValueProfileInst>(I)) in lower() local
724 computeNumValueSiteCounts(Ind); in lower()
795 void InstrLowerer::computeNumValueSiteCounts(InstrProfValueProfileInst *Ind) { in computeNumValueSiteCounts() argument
796 GlobalVariable *Name = Ind->getName(); in computeNumValueSiteCounts()
797 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in computeNumValueSiteCounts()
798 uint64_t Index = Ind->getIndex()->getZExtValue(); in computeNumValueSiteCounts()
804 void InstrLowerer::lowerValueProfileInst(InstrProfValueProfileInst *Ind) { in lowerValueProfileInst() argument
811 GlobalVariable *Name = Ind->getName(); in lowerValueProfileInst()
817 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in lowerValueProfileInst()
818 uint64_t Index = Ind->getIndex()->getZExtValue(); in lowerValueProfileInst()
822 IRBuilder<> Builder(Ind); in lowerValueProfileInst()
823 bool IsMemOpSize = (Ind->getValueKind()->getZExtValue() == in lowerValueProfileInst()
826 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
833 Ind->getOperandBundlesAsDefs(OpBundles); in lowerValueProfileInst()
835 Value *Args[3] = {Ind->getTargetValue(), DataVar, Builder.getInt32(Index)}; in lowerValueProfileInst()
839 Value *Args[3] = {Ind->getTargetValue(), DataVar, Builder.getInt32(Index)}; in lowerValueProfileInst()
846 Ind->replaceAllUsesWith(Call); in lowerValueProfileInst()
847 Ind->eraseFromParent(); in lowerValueProfileInst()