Lines Matching defs:Inc
325 void lowerCover(InstrProfCoverInst *Inc);
332 void lowerIncrement(InstrProfIncrementInst *Inc);
356 GlobalVariable *getOrCreateRegionCounters(InstrProfCntrInstBase *Inc);
359 GlobalVariable *createRegionCounters(InstrProfCntrInstBase *Inc,
371 GlobalVariable *getOrCreateRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc);
378 GlobalVariable *createRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc,
386 GlobalVariable *setupProfileSection(InstrProfInstBase *Inc,
390 void createDataVariable(InstrProfCntrInstBase *Inc);
1198 void InstrLowerer::lowerIncrement(InstrProfIncrementInst *Inc) {
1199 auto *Addr = getCounterAddress(Inc);
1201 IRBuilder<> Builder(Inc);
1203 (Inc->getIndex()->isZeroValue() && AtomicFirstCounter)) {
1204 Builder.CreateAtomicRMW(AtomicRMWInst::Add, Addr, Inc->getStep(),
1207 Value *IncStep = Inc->getStep();
1209 auto *Count = Builder.CreateAdd(Load, Inc->getStep());
1214 Inc->eraseFromParent();
1301 static std::string getVarName(InstrProfInstBase *Inc, StringRef Prefix,
1304 StringRef Name = Inc->getName()->getName().substr(NamePrefix.size());
1305 Function *F = Inc->getParent()->getParent();
1313 uint64_t FuncHash = Inc->getHash()->getZExtValue();
1576 GlobalVariable *InstrLowerer::setupProfileSection(InstrProfInstBase *Inc,
1578 GlobalVariable *NamePtr = Inc->getName();
1581 Function *Fn = Inc->getParent()->getParent();
1608 VarName = getVarName(Inc, VarPrefix, Renamed);
1609 InstrProfCntrInstBase *CntrIncrement = dyn_cast<InstrProfCntrInstBase>(Inc);
1613 VarName = getVarName(Inc, VarPrefix, Renamed);
1615 dyn_cast<InstrProfMCDCBitmapInstBase>(Inc);
1631 InstrLowerer::createRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc,
1634 uint64_t NumBytes = Inc->getNumBitmapBytes();
1643 InstrLowerer::getOrCreateRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc) {
1644 GlobalVariable *NamePtr = Inc->getName();
1651 auto *BitmapPtr = setupProfileSection(Inc, IPSK_bitmap);
1653 PD.NumBitmapBytes = Inc->getNumBitmapBytes();
1658 InstrLowerer::createRegionCounters(InstrProfCntrInstBase *Inc, StringRef Name,
1660 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue();
1663 if (isa<InstrProfCoverInst>(Inc)) {
1683 InstrLowerer::getOrCreateRegionCounters(InstrProfCntrInstBase *Inc) {
1684 GlobalVariable *NamePtr = Inc->getName();
1691 auto *CounterPtr = setupProfileSection(Inc, IPSK_cnts);
1697 Function *Fn = Inc->getParent()->getParent();
1706 ConstantAsMetadata::get(Inc->getHash()),
1710 ConstantAsMetadata::get(Inc->getNumCounters()),
1732 createDataVariable(Inc);
1737 void InstrLowerer::createDataVariable(InstrProfCntrInstBase *Inc) {
1743 GlobalVariable *NamePtr = Inc->getName();
1752 Function *Fn = Inc->getParent()->getParent();
1771 getVarName(Inc, getInstrProfCountersVarPrefix(), Renamed);
1773 getVarName(Inc, getInstrProfDataVarPrefix(), Renamed);
1787 getVarName(Inc, getInstrProfValuesVarPrefix(), Renamed));
1798 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue();