| /freebsd-13.1/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | CGFunctionInfo.h | 151 return AI; 156 return AI; 167 return AI; 178 return AI; 193 return AI; 207 return AI; 219 return AI; 226 return AI; 232 return AI; 237 return AI; in getExpand() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 288 AllocaInst *AI; member 421 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca() 428 !AI.isSwiftError() && in isInterestingAlloca() 470 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer() local 518 auto *NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI); in alignAndPadAlloca() 521 Info.AI = NewAI; in alignAndPadAlloca() 544 Allocas[AI].AI = AI; in runOnFunction() 545 Allocas[AI].OldAI = AI; in runOnFunction() 562 if (!AI) { in runOnFunction() 584 assert(Info.AI); in runOnFunction() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 169 for (const User *U : AI->users()) { in HasAddressTaken() 179 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken() 189 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken() 304 if (AI->isArrayAllocation()) { in RequiresStackProtector() 317 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 323 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 330 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 340 Layout.insert(std::make_pair(AI, IsLarge in RequiresStackProtector() 423 {GuardSlot, AI}); in CreatePrologue() 462 if (!AI) { in InsertStackProtectors() [all …]
|
| H A D | SafeStack.cpp | 226 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize() 400 if (AI->isStaticAlloca()) { in findInsts() 550 SSL.addObject(AI, Size, Align, in moveStaticAllocasToUnsafeStack() 607 IRB.SetInsertPoint(AI); in moveStaticAllocasToUnsafeStack() 616 while (!AI->use_empty()) { in moveStaticAllocasToUnsafeStack() 617 Use &U = *AI->use_begin(); in moveStaticAllocasToUnsafeStack() 639 AI->eraseFromParent(); in moveStaticAllocasToUnsafeStack() 663 IRBuilder<> IRB(AI); in moveDynamicAllocasToUnsafeStack() 695 NewAI->takeName(AI); in moveDynamicAllocasToUnsafeStack() 698 AI->replaceAllUsesWith(NewAI); in moveDynamicAllocasToUnsafeStack() [all …]
|
| H A D | RegUsageInfoCollector.cpp | 149 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 150 SetRegAsDefined(*AI); in runOnMachineFunction() 162 for (MCRegAliasIterator AI(PReg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 163 if (!SavedRegs.test(*AI)) in runOnMachineFunction() 164 SetRegAsDefined(*AI); in runOnMachineFunction()
|
| H A D | AtomicExpandPass.cpp | 587 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 588 AI->getAlign(), AI->getOrdering(), PerformOp); in tryExpandAtomicRMW() 815 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandPartwordAtomicRMW() 842 AI->eraseFromParent(); in expandPartwordAtomicRMW() 855 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in widenPartwordAtomicRMW() 876 AI->eraseFromParent(); in widenPartwordAtomicRMW() 1021 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandAtomicRMWToMaskedIntrinsic() 1040 AI->eraseFromParent(); in expandAtomicRMWToMaskedIntrinsic() 1522 Builder, AI->getType(), AI->getPointerOperand(), AI->getAlign(), in expandAtomicRMWToCmpXchg() 1523 AI->getOrdering(), AI->getSyncScopeID(), in expandAtomicRMWToCmpXchg() [all …]
|
| H A D | CallingConvLower.cpp | 62 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkAllocated() local 63 UsedRegs[*AI / 32] |= 1 << (*AI & 31); in MarkAllocated() 67 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkUnallocated() local 68 UsedRegs[*AI / 32] &= ~(1 << (*AI & 31)); in MarkUnallocated() 77 for (MCRegAliasIterator AI(ValAssign.getLocReg(), &TRI, true); in IsShadowAllocatedReg() local 78 AI.isValid(); ++AI) { in IsShadowAllocatedReg() 79 if (*AI == Reg) in IsShadowAllocatedReg()
|
| H A D | AggressiveAntiDepBreaker.cpp | 158 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 159 unsigned Reg = *AI; in StartBlock() 176 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 177 unsigned AliasReg = *AI; in StartBlock() 306 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local 307 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse() 389 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 420 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local 427 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction() 680 for (MCRegAliasIterator AI(NewReg, TRI, false); AI.isValid(); ++AI) { in FindSuitableFreeRegisters() local [all …]
|
| H A D | CriticalAntiDepBreaker.cpp | 70 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 71 unsigned Reg = *AI; in StartBlock() 88 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 89 unsigned Reg = *AI; in StartBlock() 200 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 204 unsigned AliasReg = *AI; in PrescanInstruction() 330 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ScanInstruction() local 331 unsigned AliasReg = *AI; in ScanInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | PromoteMemoryToRegister.cpp | 73 if (SI->getOperand(0) == AI) in isAllocaPromotable() 132 for (User *U : AI->users()) { in AnalyzeAlloca() 154 findDbgUsers(DbgUsers, AI); in AnalyzeAlloca() 435 AI->eraseFromParent(); in rewriteSingleStoreAlloca() 469 for (User *U : AI->users()) in promoteSingleBlockAlloca() 521 while (!AI->use_empty()) { in promoteSingleBlockAlloca() 534 AI->eraseFromParent(); in promoteSingleBlockAlloca() 561 removeIntrinsicUsers(AI); in run() 563 if (AI->use_empty()) { in run() 565 AI->eraseFromParent(); in run() [all …]
|
| H A D | MetaRenamer.cpp | 95 for (auto AI = M.alias_begin(), AE = M.alias_end(); AI != AE; ++AI) { in MetaRename() local 96 StringRef Name = AI->getName(); in MetaRename() 100 AI->setName("alias"); in MetaRename()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUArgumentUsageInfo.cpp | 150 AMDGPUFunctionArgInfo AI; in fixedABILayout() local 151 AI.PrivateSegmentBuffer in fixedABILayout() 153 AI.DispatchPtr = ArgDescriptor::createRegister(AMDGPU::SGPR4_SGPR5); in fixedABILayout() 154 AI.QueuePtr = ArgDescriptor::createRegister(AMDGPU::SGPR6_SGPR7); in fixedABILayout() 158 AI.ImplicitArgPtr = ArgDescriptor::createRegister(AMDGPU::SGPR8_SGPR9); in fixedABILayout() 159 AI.DispatchID = ArgDescriptor::createRegister(AMDGPU::SGPR10_SGPR11); in fixedABILayout() 162 AI.WorkGroupIDX = ArgDescriptor::createRegister(AMDGPU::SGPR12); in fixedABILayout() 163 AI.WorkGroupIDY = ArgDescriptor::createRegister(AMDGPU::SGPR13); in fixedABILayout() 164 AI.WorkGroupIDZ = ArgDescriptor::createRegister(AMDGPU::SGPR14); in fixedABILayout() 167 AI.WorkItemIDX = ArgDescriptor::createRegister(AMDGPU::VGPR31, Mask); in fixedABILayout() [all …]
|
| H A D | SIMachineFunctionInfo.cpp | 527 yaml::SIArgumentInfo AI; in convertArgumentInfo() local 551 Any |= convertArg(AI.DispatchPtr, ArgInfo.DispatchPtr); in convertArgumentInfo() 552 Any |= convertArg(AI.QueuePtr, ArgInfo.QueuePtr); in convertArgumentInfo() 554 Any |= convertArg(AI.DispatchID, ArgInfo.DispatchID); in convertArgumentInfo() 557 Any |= convertArg(AI.WorkGroupIDX, ArgInfo.WorkGroupIDX); in convertArgumentInfo() 558 Any |= convertArg(AI.WorkGroupIDY, ArgInfo.WorkGroupIDY); in convertArgumentInfo() 561 Any |= convertArg(AI.PrivateSegmentWaveByteOffset, in convertArgumentInfo() 565 Any |= convertArg(AI.WorkItemIDX, ArgInfo.WorkItemIDX); in convertArgumentInfo() 566 Any |= convertArg(AI.WorkItemIDY, ArgInfo.WorkItemIDY); in convertArgumentInfo() 567 Any |= convertArg(AI.WorkItemIDZ, ArgInfo.WorkItemIDZ); in convertArgumentInfo() [all …]
|
| H A D | SIMachineFunctionInfo.h | 204 static void mapping(IO &YamlIO, SIArgumentInfo &AI) { 206 YamlIO.mapOptional("dispatchPtr", AI.DispatchPtr); 207 YamlIO.mapOptional("queuePtr", AI.QueuePtr); 209 YamlIO.mapOptional("dispatchID", AI.DispatchID); 213 YamlIO.mapOptional("workGroupIDX", AI.WorkGroupIDX); 214 YamlIO.mapOptional("workGroupIDY", AI.WorkGroupIDY); 215 YamlIO.mapOptional("workGroupIDZ", AI.WorkGroupIDZ); 218 AI.PrivateSegmentWaveByteOffset); 223 YamlIO.mapOptional("workItemIDX", AI.WorkItemIDX); 224 YamlIO.mapOptional("workItemIDY", AI.WorkItemIDY); [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 161 if (AI->isArrayAllocation()) in isDereferenceableForAllocaSize() 173 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize() 187 New->setAlignment(AI.getAlign()); in simplifyAllocaArraySize() 221 return IC.replaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in simplifyAllocaArraySize() 377 if (AI.isArrayAllocation()) in visitAllocaInst() 378 return replaceOperand(AI, 0, in visitAllocaInst() 384 if (FirstInst != &AI) { in visitAllocaInst() 392 AI.moveBefore(FirstInst); in visitAllocaInst() 393 return &AI; in visitAllocaInst() 417 Align AllocaAlign = AI.getAlign(); in visitAllocaInst() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | HWAddressSanitizer.cpp | 961 if (AI.isArrayAllocation()) { in getAllocaSizeInBytes() 1244 auto *AI = Allocas[N]; in instrumentStack() local 1252 AI->hasName() ? AI->getName().str() : "alloca." + itostr(N); in instrumentStack() 1271 tagAlloca(IRB, AI, Tag, Size); in instrumentStack() 1288 AI.isStaticAlloca() && in isInterestingAlloca() 1298 !AI.isSwiftError()) && in isInterestingAlloca() 1389 AI->setAlignment( in sanitizeFunction() 1401 TypeWithPadding, AI->getType()->getAddressSpace(), nullptr, "", AI); in sanitizeFunction() 1402 NewAI->takeName(AI); in sanitizeFunction() 1406 NewAI->copyMetadata(*AI); in sanitizeFunction() [all …]
|
| H A D | BoundsChecking.cpp | 164 } else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(&I)) { in addBoundsChecking() local 165 if (!AI->isVolatile()) in addBoundsChecking() 167 getBoundsCheckCond(AI->getPointerOperand(), AI->getCompareOperand(), in addBoundsChecking() 169 } else if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(&I)) { in addBoundsChecking() local 170 if (!AI->isVolatile()) in addBoundsChecking() 171 Or = getBoundsCheckCond(AI->getPointerOperand(), AI->getValOperand(), in addBoundsChecking()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | StackLifetime.cpp | 40 StackLifetime::getLiveRange(const AllocaInst *AI) const { in getLiveRange() 41 const auto IT = AllocaNumbering.find(AI); in getLiveRange() 50 bool StackLifetime::isAliveAfter(const AllocaInst *AI, in isAliveAfter() argument 64 return getLiveRange(AI).test(InstNum); in isAliveAfter() 72 if (!AI) in findMatchingAlloca() 75 auto AllocaSizeInBits = AI->getAllocationSizeInBits(DL); in findMatchingAlloca() 88 return AI; in findMatchingAlloca() 104 const AllocaInst *AI = findMatchingAlloca(*II, DL); in collectMarkers() local 105 if (!AI) { in collectMarkers() 109 auto It = AllocaNumbering.find(AI); in collectMarkers() [all …]
|
| H A D | StackSafetyAnalysis.cpp | 157 if (AI.isArrayAllocation()) { in getStaticAllocaSizeRange() 351 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 369 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 390 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 451 if (auto *AI = dyn_cast<AllocaInst>(&I)) in run() local 452 Allocas.push_back(AI); in run() 456 for (auto *AI : Allocas) { in run() local 458 analyzeAllUses(AI, UI, SL); in run() 813 const AllocaInst *AI = KV.first; in getInfo() local 815 Info->SafeAllocas.insert(AI); in getInfo() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ |
| H A D | PassSupport.h | 142 PassInfo *AI = new PassInfo(name, &agName::ID); \ 143 Registry.registerAnalysisGroup(&agName::ID, 0, *AI, false, true); \ 144 return AI; \ 162 PassInfo *AI = new PassInfo(name, &agName::ID); \ 163 Registry.registerAnalysisGroup(&agName::ID, &passName::ID, *AI, def, \ 165 return AI; \ 184 PassInfo *AI = new PassInfo(n, &agName::ID); \ 185 Registry.registerAnalysisGroup(&agName::ID, &passName::ID, *AI, def, true); \ 186 return AI; \
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/opt/ |
| H A D | AnalysisWrappers.cpp | 46 for (auto AI = CB->arg_begin(), E = CB->arg_end(); AI != E; ++AI) { in runOnModule() local 47 if (!isa<Constant>(*AI)) continue; in runOnModule()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | MacroPPCallbacks.cpp | 30 MacroInfo::param_iterator AI = MI.param_begin(), E = MI.param_end(); in writeMacroDefinition() local 31 for (; AI + 1 != E; ++AI) { in writeMacroDefinition() 32 Name << (*AI)->getName(); in writeMacroDefinition() 37 if ((*AI)->getName() == "__VA_ARGS__") in writeMacroDefinition() 40 Name << (*AI)->getName(); in writeMacroDefinition()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.cpp | 89 AddressInfo AI; in MaybeReportErrorSummary() local 90 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary() 91 AI.line = SLoc.getLine(); in MaybeReportErrorSummary() 92 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary() 94 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary() 95 AI.Clear(); in MaybeReportErrorSummary() 99 const AddressInfo &AI = Loc.getSymbolizedStack()->info; in MaybeReportErrorSummary() local 100 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary() 442 const AddressInfo &AI = Stack.get()->info; in IsPCSuppressed() local 443 return suppression_ctx->Match(AI.function, SuppType, &s) || in IsPCSuppressed() [all …]
|
| /freebsd-13.1/contrib/llvm-project/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-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
| H A D | SROA.h | 126 bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS); 127 AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS, 129 bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS); 130 bool runOnAlloca(AllocaInst &AI);
|