/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | MemoryTaggingSupport.cpp | 120 Info.AllocasToInstrument[AI].AI = AI; in visit() 128 if (!AI) { in visit() 132 if (!isInterestingAlloca(*AI)) in visit() 160 AI.isStaticAlloca() && in isInterestingAlloca() 170 !AI.isSwiftError()) && in isInterestingAlloca() 192 Info.AI->isArrayAllocation() in alignAndPadAlloca() 201 NewAI->takeName(Info.AI); in alignAndPadAlloca() 205 NewAI->copyMetadata(*Info.AI); in alignAndPadAlloca() 211 NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI); in alignAndPadAlloca() 214 Info.AI->eraseFromParent(); in alignAndPadAlloca() [all …]
|
H A D | PromoteMemoryToRegister.cpp | 130 void init(AllocaInst *AI) { in init() argument 244 for (User *U : AI->users()) { in AnalyzeAlloca() 275 AssignmentTracking.init(AI); in AnalyzeAlloca() 597 AI->eraseFromParent(); in rewriteSingleStoreAlloca() 632 for (User *U : AI->users()) in promoteSingleBlockAlloca() 683 while (!AI->use_empty()) { in promoteSingleBlockAlloca() 705 AI->eraseFromParent(); in promoteSingleBlockAlloca() 739 removeIntrinsicUsers(AI); in run() 741 if (AI->use_empty()) { in run() 743 AI->eraseFromParent(); in run() [all …]
|
/freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 93 const AllocaInst *AI = MFI.getObjectAllocation(I); in copyToMachineFrameInfo() local 94 if (!AI) in copyToMachineFrameInfo() 97 SSPLayoutMap::const_iterator LI = Layout.find(AI); in copyToMachineFrameInfo() 259 for (const User *U : AI->users()) { in HasAddressTaken() 269 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken() 279 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken() 412 if (AI->isArrayAllocation()) { in requiresStackProtector() 473 AI, M->getDataLayout().getTypeAllocSize(AI->getAllocatedType()), in requiresStackProtector() 544 {GuardSlot, AI}); in CreatePrologue() 594 if (!AI) { in InsertStackProtectors() [all …]
|
H A D | AtomicExpandPass.cpp | 581 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 582 AI->getAlign(), AI->getOrdering(), PerformOp); in tryExpandAtomicRMW() 602 << AI->getOperationName(AI->getOperation()) << " operation at " in tryExpandAtomicRMW() 854 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandPartwordAtomicRMW() 886 AI->eraseFromParent(); in expandPartwordAtomicRMW() 899 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in widenPartwordAtomicRMW() 916 AI->getOrdering(), AI->getSyncScopeID()); in widenPartwordAtomicRMW() 1066 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandAtomicRMWToMaskedIntrinsic() 1564 ReplacementIRBuilder Builder(AI, AI->getModule()->getDataLayout()); in expandAtomicRMWToCmpXchg() 1571 Builder, AI->getType(), AI->getPointerOperand(), AI->getAlign(), in expandAtomicRMWToCmpXchg() [all …]
|
H A D | SafeStack.cpp | 208 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize() 391 if (AI->isStaticAlloca()) { in findInsts() 540 SSL.addObject(AI, Size, Align, in moveStaticAllocasToUnsafeStack() 597 IRB.SetInsertPoint(AI); in moveStaticAllocasToUnsafeStack() 606 while (!AI->use_empty()) { in moveStaticAllocasToUnsafeStack() 607 Use &U = *AI->use_begin(); in moveStaticAllocasToUnsafeStack() 629 AI->eraseFromParent(); in moveStaticAllocasToUnsafeStack() 660 IRBuilder<> IRB(AI); in moveDynamicAllocasToUnsafeStack() 691 NewAI->takeName(AI); in moveDynamicAllocasToUnsafeStack() 694 AI->replaceAllUsesWith(NewAI); in moveDynamicAllocasToUnsafeStack() [all …]
|
H A D | RegUsageInfoCollector.cpp | 148 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 149 SetRegAsDefined(*AI); in runOnMachineFunction() 161 for (MCRegAliasIterator AI(PReg, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 162 if (!SavedRegs.test(*AI)) in runOnMachineFunction() 163 SetRegAsDefined(*AI); in runOnMachineFunction()
|
H A D | RegisterClassInfo.cpp | 85 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 86 CalleeSavedAliases[*AI] = *I; in runOnMachineFunction() 97 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 98 CSRHintsForAllocOrder[*AI] = STI.ignoreCSRForAllocationOrder(mf, *AI); in runOnMachineFunction()
|
H A D | AggressiveAntiDepBreaker.cpp | 157 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 158 unsigned Reg = *AI; in StartBlock() 175 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 176 unsigned AliasReg = *AI; in StartBlock() 304 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local 305 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse() 384 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 385 unsigned AliasReg = *AI; in PrescanInstruction() 414 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local 421 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction() [all …]
|
H A D | CriticalAntiDepBreaker.cpp | 69 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 70 unsigned Reg = *AI; in StartBlock() 87 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 88 unsigned Reg = *AI; in StartBlock() 199 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 203 unsigned AliasReg = *AI; in PrescanInstruction() 329 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ScanInstruction() local 330 unsigned AliasReg = *AI; in ScanInstruction()
|
H A D | RDFRegisters.cpp | 120 for (MCRegAliasIterator AI(Reg, &TRI, false); AI.isValid(); ++AI) in getAliasSet() local 121 AS.insert(*AI); in getAliasSet() 190 MCRegUnitMaskIterator AI(A.Reg, &getTRI()); in equal_to() local 192 while (AI.isValid() && BI.isValid()) { in equal_to() 193 auto [AReg, AMask] = *AI; in equal_to() 202 ++AI; in equal_to() 208 ++AI; in equal_to() 230 while (AI.isValid() && BI.isValid()) { in less() 231 auto [AReg, AMask] = *AI; in less() 240 ++AI; in less() [all …]
|
H A D | CallingConvLower.cpp | 63 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkAllocated() local 64 UsedRegs[*AI / 32] |= 1 << (*AI & 31); in MarkAllocated() 68 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkUnallocated() local 69 UsedRegs[*AI / 32] &= ~(1 << (*AI & 31)); in MarkUnallocated()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUArgumentUsageInfo.cpp | 153 AMDGPUFunctionArgInfo AI; in fixedABILayout() local 154 AI.PrivateSegmentBuffer in fixedABILayout() 156 AI.DispatchPtr = ArgDescriptor::createRegister(AMDGPU::SGPR4_SGPR5); in fixedABILayout() 157 AI.QueuePtr = ArgDescriptor::createRegister(AMDGPU::SGPR6_SGPR7); in fixedABILayout() 162 AI.DispatchID = ArgDescriptor::createRegister(AMDGPU::SGPR10_SGPR11); in fixedABILayout() 165 AI.WorkGroupIDX = ArgDescriptor::createRegister(AMDGPU::SGPR12); in fixedABILayout() 166 AI.WorkGroupIDY = ArgDescriptor::createRegister(AMDGPU::SGPR13); in fixedABILayout() 167 AI.WorkGroupIDZ = ArgDescriptor::createRegister(AMDGPU::SGPR14); in fixedABILayout() 168 AI.LDSKernelId = ArgDescriptor::createRegister(AMDGPU::SGPR15); in fixedABILayout() 171 AI.WorkItemIDX = ArgDescriptor::createRegister(AMDGPU::VGPR31, Mask); in fixedABILayout() [all …]
|
H A D | SIMachineFunctionInfo.h | 184 static void mapping(IO &YamlIO, SIArgumentInfo &AI) { 186 YamlIO.mapOptional("dispatchPtr", AI.DispatchPtr); 187 YamlIO.mapOptional("queuePtr", AI.QueuePtr); 189 YamlIO.mapOptional("dispatchID", AI.DispatchID); 193 YamlIO.mapOptional("workGroupIDX", AI.WorkGroupIDX); 194 YamlIO.mapOptional("workGroupIDY", AI.WorkGroupIDY); 195 YamlIO.mapOptional("workGroupIDZ", AI.WorkGroupIDZ); 197 YamlIO.mapOptional("LDSKernelId", AI.LDSKernelId); 204 YamlIO.mapOptional("workItemIDX", AI.WorkItemIDX); 205 YamlIO.mapOptional("workItemIDY", AI.WorkItemIDY); [all …]
|
H A D | SIMachineFunctionInfo.cpp | 619 yaml::SIArgumentInfo AI; in convertArgumentInfo() local 644 Any |= convertArg(AI.DispatchPtr, ArgInfo.DispatchPtr); in convertArgumentInfo() 645 Any |= convertArg(AI.QueuePtr, ArgInfo.QueuePtr); in convertArgumentInfo() 647 Any |= convertArg(AI.DispatchID, ArgInfo.DispatchID); in convertArgumentInfo() 649 Any |= convertArg(AI.LDSKernelId, ArgInfo.LDSKernelId); in convertArgumentInfo() 651 Any |= convertArg(AI.WorkGroupIDX, ArgInfo.WorkGroupIDX); in convertArgumentInfo() 655 Any |= convertArg(AI.PrivateSegmentWaveByteOffset, in convertArgumentInfo() 659 Any |= convertArg(AI.WorkItemIDX, ArgInfo.WorkItemIDX); in convertArgumentInfo() 660 Any |= convertArg(AI.WorkItemIDY, ArgInfo.WorkItemIDY); in convertArgumentInfo() 661 Any |= convertArg(AI.WorkItemIDZ, ArgInfo.WorkItemIDZ); in convertArgumentInfo() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 447 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer() local 449 PrologueBB = AI->getParent(); in insertBaseTaggedPointer() 522 assert(Info.AI && SIB.isInterestingAlloca(*Info.AI)); in runOnFunction() 523 TrackingVH<Instruction> OldAI = Info.AI; in runOnFunction() 525 AllocaInst *AI = Info.AI; in runOnFunction() local 529 IRBuilder<> IRB(Info.AI->getNextNode()); in runOnFunction() 535 if (Info.AI->hasName()) in runOnFunction() 536 TagPCall->setName(Info.AI->getName() + ".tag"); in runOnFunction() 537 Info.AI->replaceAllUsesWith(TagPCall); in runOnFunction() 538 TagPCall->setOperand(0, Info.AI); in runOnFunction() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | InfoByHwMode.h | 46 auto AI = A.begin(); in union_modes() local 51 if (AI != A.end() && AI->first == DefaultMode) { in union_modes() 53 ++AI; in union_modes() 60 while (AI != A.end()) { in union_modes() 63 for (; AI != A.end(); ++AI) in union_modes() 64 Modes.push_back(AI->first); in union_modes() 68 if (BI->first < AI->first) { in union_modes() 72 Modes.push_back(AI->first); in union_modes() 73 if (AI->first == BI->first) in union_modes() 75 ++AI; in union_modes()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 188 if (AI->isArrayAllocation()) in isDereferenceableForAllocaSize() 200 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize() 215 New->setAlignment(AI.getAlign()); in simplifyAllocaArraySize() 224 return IC.replaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in simplifyAllocaArraySize() 232 return IC.replaceOperand(AI, 0, V); in simplifyAllocaArraySize() 474 if (AI.isArrayAllocation()) in visitAllocaInst() 475 return replaceOperand(AI, 0, in visitAllocaInst() 481 if (FirstInst != &AI) { in visitAllocaInst() 489 AI.moveBefore(FirstInst); in visitAllocaInst() 490 return &AI; in visitAllocaInst() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | StackSafetyAnalysis.cpp | 165 if (AI.isArrayAllocation()) { in getStaticAllocaSizeRange() 352 return isSafeAccess(U, AI, SV); in isSafeAccess() 358 if (!AI) in isSafeAccess() 417 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 430 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 466 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 541 Allocas.push_back(AI); in run() 545 for (auto *AI : Allocas) { in run() local 547 analyzeAllUses(AI, UI, SL); in run() 904 Info->SafeAllocas.insert(AI); in getInfo() [all …]
|
H A D | StackLifetime.cpp | 35 StackLifetime::getLiveRange(const AllocaInst *AI) const { in getLiveRange() 36 const auto IT = AllocaNumbering.find(AI); in getLiveRange() 45 bool StackLifetime::isAliveAfter(const AllocaInst *AI, in isAliveAfter() argument 59 return getLiveRange(AI).test(InstNum); in isAliveAfter() 67 if (!AI) in findMatchingAlloca() 70 auto AllocaSize = AI->getAllocationSize(DL); in findMatchingAlloca() 82 return AI; in findMatchingAlloca() 98 const AllocaInst *AI = findMatchingAlloca(*II, DL); in collectMarkers() local 99 if (!AI) { in collectMarkers() 103 auto It = AllocaNumbering.find(AI); in collectMarkers() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ |
H A D | PassSupport.h | 157 PassInfo *AI = new PassInfo(name, &agName::ID); \ 158 Registry.registerAnalysisGroup(&agName::ID, 0, *AI, false, true); \ 159 return AI; \ 177 PassInfo *AI = new PassInfo(name, &agName::ID); \ 178 Registry.registerAnalysisGroup(&agName::ID, &passName::ID, *AI, def, \ 180 return AI; \ 199 PassInfo *AI = new PassInfo(n, &agName::ID); \ 200 Registry.registerAnalysisGroup(&agName::ID, &passName::ID, *AI, def, true); \ 201 return AI; \
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFixFunctionBitcasts.cpp | 119 Function::arg_iterator AI = Wrapper->arg_begin(); in createWrapper() local 134 for (; AI != AE && PI != PE; ++AI, ++PI) { in createWrapper() 135 Type *ArgType = AI->getType(); in createWrapper() 139 Args.push_back(&*AI); in createWrapper() 143 CastInst::CreateBitOrPointerCast(AI, ParamType, "cast"); in createWrapper() 165 for (; AI != AE; ++AI) in createWrapper() 166 Args.push_back(&*AI); in createWrapper()
|
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | BoundsChecking.cpp | 167 } else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(&I)) { in addBoundsChecking() local 168 if (!AI->isVolatile()) in addBoundsChecking() 170 getBoundsCheckCond(AI->getPointerOperand(), AI->getCompareOperand(), in addBoundsChecking() 172 } else if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(&I)) { in addBoundsChecking() local 173 if (!AI->isVolatile()) in addBoundsChecking() 174 Or = getBoundsCheckCond(AI->getPointerOperand(), AI->getValOperand(), in addBoundsChecking()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_diag.cpp | 87 AddressInfo AI; in MaybeReportErrorSummary() local 88 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary() 89 AI.line = SLoc.getLine(); in MaybeReportErrorSummary() 90 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary() 91 AI.function = nullptr; in MaybeReportErrorSummary() 93 AI.Clear(); in MaybeReportErrorSummary() 97 const AddressInfo &AI = Loc.getSymbolizedStack()->info; in MaybeReportErrorSummary() local 98 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary() 448 const AddressInfo &AI = Stack.get()->info; in IsPCSuppressed() local 449 return suppression_ctx->Match(AI.function, SuppType, &s) || in IsPCSuppressed() [all …]
|