| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/ |
| H A D | CGFunctionInfo.h | 132 return AI; 137 return AI; 147 return AI; 157 return AI; 172 return AI; 186 return AI; 192 return AI; 197 return AI; in getInAlloca() 202 return AI; in getExpand() 209 return AI; in getExpandWithPadding() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 161 for (const User *U : AI->users()) { in HasAddressTaken() 163 if (AI == SI->getValueOperand()) in HasAddressTaken() 166 if (AI == SI->getOperand(0)) in HasAddressTaken() 251 if (AI->isArrayAllocation()) { in RequiresStackProtector() 264 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 277 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 301 if (Strong && HasAddressTaken(AI)) { in RequiresStackProtector() 364 {GuardSlot, AI}); in CreatePrologue() 403 if (!AI) { in InsertStackProtectors() 477 LoadInst *LI2 = B.CreateLoad(AI, true); in InsertStackProtectors() [all …]
|
| H A D | SafeStack.cpp | 222 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize() 392 if (AI->isStaticAlloca()) { in findInsts() 531 SSL.addObject(AI, Size, Align, SSC.getLiveRange(AI)); in moveStaticAllocasToUnsafeStack() 587 IRB.SetInsertPoint(AI); in moveStaticAllocasToUnsafeStack() 601 while (!AI->use_empty()) { in moveStaticAllocasToUnsafeStack() 602 Use &U = *AI->use_begin(); in moveStaticAllocasToUnsafeStack() 628 AI->eraseFromParent(); in moveStaticAllocasToUnsafeStack() 652 IRBuilder<> IRB(AI); in moveDynamicAllocasToUnsafeStack() 683 NewAI->takeName(AI); in moveDynamicAllocasToUnsafeStack() 687 AI->replaceAllUsesWith(NewAI); in moveDynamicAllocasToUnsafeStack() [all …]
|
| H A D | AtomicExpandPass.cpp | 486 AtomicRMWInst *AI = in expandAtomicStore() local 558 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 726 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandPartwordAtomicRMW() 746 AI->eraseFromParent(); in expandPartwordAtomicRMW() 759 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in widenPartwordAtomicRMW() 780 AI->eraseFromParent(); in widenPartwordAtomicRMW() 925 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandAtomicRMWToMaskedIntrinsic() 941 AI->getOrdering()); in expandAtomicRMWToMaskedIntrinsic() 945 AI->eraseFromParent(); in expandAtomicRMWToMaskedIntrinsic() 1409 Builder, AI->getType(), AI->getPointerOperand(), AI->getOrdering(), in expandAtomicRMWToCmpXchg() [all …]
|
| H A D | AggressiveAntiDepBreaker.cpp | 165 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 166 unsigned Reg = *AI; in StartBlock() 183 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 184 unsigned AliasReg = *AI; in StartBlock() 315 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local 316 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse() 398 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 429 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local 436 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction() 689 for (MCRegAliasIterator AI(NewReg, TRI, false); AI.isValid(); ++AI) { in FindSuitableFreeRegisters() local [all …]
|
| H A D | CriticalAntiDepBreaker.cpp | 75 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 76 unsigned Reg = *AI; in StartBlock() 93 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 94 unsigned Reg = *AI; in StartBlock() 206 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 210 unsigned AliasReg = *AI; in PrescanInstruction() 326 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ScanInstruction() local 327 unsigned AliasReg = *AI; in ScanInstruction()
|
| H A D | CallingConvLower.cpp | 64 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkAllocated() local 65 UsedRegs[*AI/32] |= 1 << (*AI&31); in MarkAllocated() 74 for (MCRegAliasIterator AI(ValAssign.getLocReg(), &TRI, true); in IsShadowAllocatedReg() local 75 AI.isValid(); ++AI) { in IsShadowAllocatedReg() 76 if (*AI == Reg) in IsShadowAllocatedReg()
|
| H A D | MachineRegisterInfo.cpp | 522 for (MCRegAliasIterator AI(PhysReg, TRI, true); in isConstantPhysReg() local 523 AI.isValid(); ++AI) in isConstantPhysReg() 524 if (!def_empty(*AI) || isAllocatable(*AI)) in isConstantPhysReg() 585 for (MCRegAliasIterator AI(PhysReg, TRI, true); AI.isValid(); ++AI) { in isPhysRegModified() local 586 for (const MachineOperand &MO : make_range(def_begin(*AI), def_end())) { in isPhysRegModified() 626 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in disableCalleeSavedRegister() local 627 UpdatedCSRs.erase(std::remove(UpdatedCSRs.begin(), UpdatedCSRs.end(), *AI), in disableCalleeSavedRegister()
|
| H A D | RegUsageInfoCollector.cpp | 121 for (MCRegAliasIterator AI(PReg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 122 if (!SavedRegs.test(*AI)) in runOnMachineFunction() 123 SetRegAsDefined(*AI); in runOnMachineFunction()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | PromoteMemoryToRegister.cpp | 138 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { in AnalyzeAlloca() 329 for (auto UI = AI->user_begin(), UE = AI->user_end(); UI != UE;) { in removeLifetimeIntrinsicUsers() 368 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { in rewriteSingleStoreAlloca() 438 AI->eraseFromParent(); in rewriteSingleStoreAlloca() 439 LBI.deleteValue(AI); in rewriteSingleStoreAlloca() 483 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { in promoteSingleBlockAlloca() 526 while (!AI->use_empty()) { in promoteSingleBlockAlloca() 537 AI->eraseFromParent(); in promoteSingleBlockAlloca() 538 LBI.deleteValue(AI); in promoteSingleBlockAlloca() 568 if (AI->use_empty()) { in run() [all …]
|
| H A D | MetaRenamer.cpp | 96 for (auto AI = M.alias_begin(), AE = M.alias_end(); AI != AE; ++AI) { in runOnModule() local 97 StringRef Name = AI->getName(); in runOnModule() 101 AI->setName("alias"); in runOnModule() 147 for (auto AI = F.arg_begin(), AE = F.arg_end(); AI != AE; ++AI) in runOnFunction() local 148 if (!AI->getType()->isVoidTy()) in runOnFunction() 149 AI->setName("arg"); in runOnFunction()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 192 AI.setOperand(0, V); in simplifyAllocaArraySize() 193 return &AI; in simplifyAllocaArraySize() 227 return IC.replaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in simplifyAllocaArraySize() 234 AI.setOperand(0, V); in simplifyAllocaArraySize() 235 return &AI; in simplifyAllocaArraySize() 349 AI.setAlignment(DL.getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst() 359 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst() 360 return &AI; in visitAllocaInst() 374 return &AI; in visitAllocaInst() 395 if (AI.getAlignment()) { in visitAllocaInst() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | HWAddressSanitizer.cpp | 636 if (AI.isArrayAllocation()) { in getAllocaSizeInBytes() 659 memToShadow(IRB.CreatePointerCast(AI, IntptrTy), AI->getType(), IRB), in tagAlloca() 783 for (auto AI : Allocas) in createFrameString() local 784 Descr << getAllocaSizeInBytes(*AI) << " " << AI->getName().str() << "; "; in createFrameString() 899 auto *AI = Allocas[N]; in instrumentStack() local 907 AI->hasName() ? AI->getName().str() : "alloca." + itostr(N); in instrumentStack() 910 for (auto UI = AI->use_begin(), UE = AI->use_end(); UI != UE;) { in instrumentStack() 916 tagAlloca(IRB, AI, Tag); in instrumentStack() 923 tagAlloca(IRB, AI, Tag); in instrumentStack() 933 AI.isStaticAlloca() && in isInterestingAlloca() [all …]
|
| H A D | AddressSanitizer.cpp | 858 AllocaInst *AI; member 1022 if (!AI || !ASan.isInterestingAlloca(*AI)) in visitIntrinsicInst() 1200 ((!AI.isStaticAlloca()) || getAllocaSizeInBytes(AI) > 0) && in isInterestingAlloca() 1303 return isInterestingAlloca(*AI) ? AI : nullptr; in isInterestingMemoryAccess() 2486 assert(AI && AI->isStaticAlloca() && in markEscapedLocalAllocas() 2852 assert(APC.AI); in processDynamicAllocas() 2925 assert(APC.AI); in processStaticAllocas() 3015 AllocaInst *AI = Desc.AI; in processStaticAllocas() local 3127 for (auto AI : AllocaVec) AI->eraseFromParent(); in processStaticAllocas() local 3152 return ASan.isInterestingAlloca(*AI) ? AI : nullptr; in findAllocaForValue() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/IPO/ |
| H A D | IPConstantPropagation.cpp | 76 CallSite::arg_iterator AI = CS.arg_begin(); in PropagateConstantsIntoArguments() local 79 ++i, ++AI, ++Arg) { in PropagateConstantsIntoArguments() 85 Constant *C = dyn_cast<Constant>(*AI); in PropagateConstantsIntoArguments() 90 } else if (*AI == &*Arg) { in PropagateConstantsIntoArguments() 105 Function::arg_iterator AI = F.arg_begin(); in PropagateConstantsIntoArguments() local 106 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { in PropagateConstantsIntoArguments() 108 if (ArgumentConstants[i].second || AI->use_empty() || in PropagateConstantsIntoArguments() 109 AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory())) in PropagateConstantsIntoArguments() 113 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments() 114 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
|
| /freebsd-12.1/contrib/llvm/include/llvm/ |
| H A D | PassSupport.h | 139 PassInfo *AI = new PassInfo(name, &agName::ID); \ 140 Registry.registerAnalysisGroup(&agName::ID, 0, *AI, false, true); \ 141 return AI; \ 159 PassInfo *AI = new PassInfo(name, &agName::ID); \ 160 Registry.registerAnalysisGroup(&agName::ID, &passName::ID, *AI, def, \ 162 return AI; \ 181 PassInfo *AI = new PassInfo(n, &agName::ID); \ 182 Registry.registerAnalysisGroup(&agName::ID, &passName::ID, *AI, def, true); \ 183 return AI; \
|
| /freebsd-12.1/contrib/llvm/tools/opt/ |
| H A D | AnalysisWrappers.cpp | 47 for (CallSite::arg_iterator AI = CS.arg_begin(), in runOnModule() local 48 E = CS.arg_end(); AI != E; ++AI) { in runOnModule() 49 if (!isa<Constant>(*AI)) continue; in runOnModule()
|
| /freebsd-12.1/contrib/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.cc | 82 AddressInfo AI; in MaybeReportErrorSummary() local 83 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary() 84 AI.line = SLoc.getLine(); in MaybeReportErrorSummary() 85 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary() 87 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary() 88 AI.Clear(); in MaybeReportErrorSummary() 92 const AddressInfo &AI = Loc.getSymbolizedStack()->info; in MaybeReportErrorSummary() local 93 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary() 431 const AddressInfo &AI = Stack.get()->info; in IsPCSuppressed() local 432 return suppression_ctx->Match(AI.function, SuppType, &s) || in IsPCSuppressed() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | MacroPPCallbacks.cpp | 31 MacroInfo::param_iterator AI = MI.param_begin(), E = MI.param_end(); in writeMacroDefinition() local 32 for (; AI + 1 != E; ++AI) { in writeMacroDefinition() 33 Name << (*AI)->getName(); in writeMacroDefinition() 38 if ((*AI)->getName() == "__VA_ARGS__") in writeMacroDefinition() 41 Name << (*AI)->getName(); in writeMacroDefinition()
|
| /freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 127 Function::arg_iterator AI = Wrapper->arg_begin(); in CreateWrapper() local 142 for (; AI != AE && PI != PE; ++AI, ++PI) { in CreateWrapper() 143 Type *ArgType = AI->getType(); in CreateWrapper() 147 Args.push_back(&*AI); in CreateWrapper() 151 CastInst::CreateBitOrPointerCast(AI, ParamType, "cast"); in CreateWrapper() 173 for (; AI != AE; ++AI) in CreateWrapper() 174 Args.push_back(&*AI); in CreateWrapper()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DbgEntityHistoryCalculator.cpp | 184 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); in collectChangingRegs() local 185 ++AI) in collectChangingRegs() 186 Regs.set(*AI); in collectChangingRegs() 223 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); in calculateDbgEntityHistory() local 224 ++AI) in calculateDbgEntityHistory() 225 if (ChangingRegs.test(*AI)) in calculateDbgEntityHistory() 226 clobberRegisterUses(RegVars, *AI, DbgValues, MI); in calculateDbgEntityHistory()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Scalar/ |
| H A D | SROA.h | 127 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS); 128 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS, 130 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS); 131 bool runOnAlloca(AllocaInst &AI);
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | StackSafetyAnalysis.cpp | 101 const AllocaInst *AI = nullptr; member 106 : AI(AI), Size(Size), Use(PointerSize) {} in AllocaInfo() 108 StringRef getName() const { return AI->getName(); } in getName() 131 uint64_t getStaticAllocaAllocationSize(const AllocaInst *AI) { in getStaticAllocaAllocationSize() argument 132 const DataLayout &DL = AI->getModule()->getDataLayout(); in getStaticAllocaAllocationSize() 133 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize() 134 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize() 135 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 375 if (auto AI = dyn_cast<AllocaInst>(&I)) { in run() local 376 Info.Allocas.emplace_back(PointerSize, AI, in run() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 316 AllocaInst &AI; member in llvm::sroa::AllocaSlices 1034 AI(AI), in AllocaSlices() 2890 if (AllocaInst *AI = in visitMemTransferInst() local 2892 assert(AI != &OldAI && AI != &NewAI && in visitMemTransferInst() 3752 IRBuilderTy IRB(&AI); in presplitLoadsAndStores() 4031 [&](AllocaInst *AI) { return ResplitPromotableAllocas.count(AI); }), in presplitLoadsAndStores() argument 4084 NewAI = &AI; in rewritePartition() 4103 AI.getName() + ".sroa." + Twine(P.begin() - AS.begin()), &AI); in rewritePartition() 4176 if (NewAI == &AI) in rewritePartition() 4374 if (AI.use_empty()) { in runOnAlloca() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/PowerPC/ |
| H A D | PPCVSXFMAMutate.cpp | 300 for (LiveInterval::iterator AI = FMAInt.begin(), AE = FMAInt.end(); in processBlock() local 301 AI != AE; ++AI) { in processBlock() 303 if (AI->valno == AddendValNo) in processBlock() 307 NewFMAInt.getNextValue(AI->start, in processBlock() 310 NewFMAInt.addSegment(LiveInterval::Segment(AI->start, AI->end, in processBlock()
|