Lines Matching defs:Inc
297 void lowerCover(InstrProfCoverInst *Inc);
304 void lowerIncrement(InstrProfIncrementInst *Inc);
328 GlobalVariable *getOrCreateRegionCounters(InstrProfCntrInstBase *Inc);
331 GlobalVariable *createRegionCounters(InstrProfCntrInstBase *Inc,
351 GlobalVariable *getOrCreateRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc);
358 GlobalVariable *createRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc,
366 GlobalVariable *setupProfileSection(InstrProfInstBase *Inc,
370 void createDataVariable(InstrProfCntrInstBase *Inc);
1232 void InstrLowerer::lowerIncrement(InstrProfIncrementInst *Inc) {
1233 auto *Addr = getCounterAddress(Inc);
1235 IRBuilder<> Builder(Inc);
1237 (Inc->getIndex()->isZeroValue() && AtomicFirstCounter)) {
1238 Builder.CreateAtomicRMW(AtomicRMWInst::Add, Addr, Inc->getStep(),
1241 Value *IncStep = Inc->getStep();
1243 auto *Count = Builder.CreateAdd(Load, Inc->getStep());
1248 Inc->eraseFromParent();
1305 static std::string getVarName(InstrProfInstBase *Inc, StringRef Prefix,
1308 StringRef Name = Inc->getName()->getName().substr(NamePrefix.size());
1309 Function *F = Inc->getParent()->getParent();
1317 uint64_t FuncHash = Inc->getHash()->getZExtValue();
1579 GlobalVariable *InstrLowerer::setupProfileSection(InstrProfInstBase *Inc,
1581 GlobalVariable *NamePtr = Inc->getName();
1584 Function *Fn = Inc->getParent()->getParent();
1611 VarName = getVarName(Inc, VarPrefix, Renamed);
1612 InstrProfCntrInstBase *CntrIncrement = dyn_cast<InstrProfCntrInstBase>(Inc);
1616 VarName = getVarName(Inc, VarPrefix, Renamed);
1618 dyn_cast<InstrProfMCDCBitmapInstBase>(Inc);
1634 InstrLowerer::createRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc,
1637 uint64_t NumBytes = Inc->getNumBitmapBytes();
1646 InstrLowerer::getOrCreateRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc) {
1647 GlobalVariable *NamePtr = Inc->getName();
1654 auto *BitmapPtr = setupProfileSection(Inc, IPSK_bitmap);
1656 PD.NumBitmapBytes = Inc->getNumBitmapBytes();
1661 InstrLowerer::createRegionCounters(InstrProfCntrInstBase *Inc, StringRef Name,
1663 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue();
1666 if (isa<InstrProfCoverInst>(Inc)) {
1686 InstrLowerer::getOrCreateRegionCounters(InstrProfCntrInstBase *Inc) {
1687 GlobalVariable *NamePtr = Inc->getName();
1694 auto *CounterPtr = setupProfileSection(Inc, IPSK_cnts);
1700 Function *Fn = Inc->getParent()->getParent();
1709 ConstantAsMetadata::get(Inc->getHash()),
1713 ConstantAsMetadata::get(Inc->getNumCounters()),
1735 createDataVariable(Inc);
1740 void InstrLowerer::createDataVariable(InstrProfCntrInstBase *Inc) {
1746 GlobalVariable *NamePtr = Inc->getName();
1755 Function *Fn = Inc->getParent()->getParent();
1774 getVarName(Inc, getInstrProfCountersVarPrefix(), Renamed);
1776 getVarName(Inc, getInstrProfDataVarPrefix(), Renamed);
1790 getVarName(Inc, getInstrProfValuesVarPrefix(), Renamed));
1800 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue();