| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | MemoryTaggingSupport.cpp | 117 if (IsInterestingAlloca(*AI)) { in visit() 118 Info.AllocasToInstrument[AI].AI = AI; in visit() 126 if (!AI) { in visit() 130 if (!IsInterestingAlloca(*AI)) in visit() 141 if (!IsInterestingAlloca(*AI)) in visit() 172 Info.AI->isArrayAllocation() in alignAndPadAlloca() 182 NewAI->takeName(Info.AI); in alignAndPadAlloca() 186 NewAI->copyMetadata(*Info.AI); in alignAndPadAlloca() 188 auto *NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI); in alignAndPadAlloca() 190 Info.AI->eraseFromParent(); in alignAndPadAlloca() [all …]
|
| H A D | PromoteMemoryToRegister.cpp | 65 for (const User *U : AI->users()) { 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() 523 while (!AI->use_empty()) { in promoteSingleBlockAlloca() 536 AI->eraseFromParent(); in promoteSingleBlockAlloca() 563 removeIntrinsicUsers(AI); in run() 565 if (AI->use_empty()) { in run() 567 AI->eraseFromParent(); in run() [all …]
|
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 419 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca() 424 !AI.isUsedWithInAlloca() && in isInterestingAlloca() 426 !AI.isSwiftError() && in isInterestingAlloca() 428 !(SSI && SSI->isSafe(AI)); in isInterestingAlloca() 468 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer() local 470 PrologueBB = AI->getParent(); in insertBaseTaggedPointer() 499 [this](const AllocaInst &AI) { return isInterestingAlloca(AI); }); in runOnFunction() argument 544 assert(Info.AI && isInterestingAlloca(*Info.AI)); in runOnFunction() 547 AllocaInst *AI = Info.AI; in runOnFunction() local 557 if (Info.AI->hasName()) in runOnFunction() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 165 for (const User *U : AI->users()) { in HasAddressTaken() 176 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken() 186 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken() 307 if (AI->isArrayAllocation()) { in RequiresStackProtector() 320 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 326 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 333 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 343 Layout.insert(std::make_pair(AI, IsLarge in RequiresStackProtector() 426 {GuardSlot, AI}); in CreatePrologue() 463 if (!AI) { in InsertStackProtectors() [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 | AtomicExpandPass.cpp | 576 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 577 AI->getAlign(), AI->getOrdering(), PerformOp); in tryExpandAtomicRMW() 601 << AI->getOperationName(AI->getOperation()) << " operation at " in tryExpandAtomicRMW() 822 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandPartwordAtomicRMW() 848 AI->eraseFromParent(); in expandPartwordAtomicRMW() 861 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in widenPartwordAtomicRMW() 882 AI->eraseFromParent(); in widenPartwordAtomicRMW() 1027 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandAtomicRMWToMaskedIntrinsic() 1046 AI->eraseFromParent(); in expandAtomicRMWToMaskedIntrinsic() 1529 Builder, AI->getType(), AI->getPointerOperand(), AI->getAlign(), in expandAtomicRMWToCmpXchg() [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 | 65 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 66 CalleeSavedAliases[*AI] = *I; in runOnMachineFunction() 76 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) in runOnMachineFunction() local 77 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() 305 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local 306 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse() 387 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 417 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local 424 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction() 673 for (MCRegAliasIterator AI(NewReg, TRI, false); AI.isValid(); ++AI) { in FindSuitableFreeRegisters() local [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() 336 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ScanInstruction() local 337 unsigned AliasReg = *AI; in ScanInstruction()
|
| /llvm-project-15.0.7/llvm/tools/llvm-jitlink/llvm-jitlink-executor/ |
| H A D | llvm-jitlink-executor.cpp | 73 addrinfo *AI; in openListener() 74 if (int EC = getaddrinfo(nullptr, PortStr.c_str(), &Hints, &AI)) { in openListener() 81 if ((SockFD = socket(AI->ai_family, AI->ai_socktype, AI->ai_protocol)) < 0) { in openListener() 94 if (bind(SockFD, AI->ai_addr, AI->ai_addrlen) < 0) { in openListener() 104 assert(Hi_32(AI->ai_addrlen) == 0 && "Field is a size_t on 64-bit AIX"); in openListener() 105 socklen_t AddrLen = Lo_32(AI->ai_addrlen); in openListener() 106 return accept(SockFD, AI->ai_addr, &AddrLen); in openListener() 108 return accept(SockFD, AI->ai_addr, &AI->ai_addrlen); in openListener()
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Utils/ |
| H A D | IntegerDivisionTest.cpp | 37 Value *A = &*AI++; in TEST() 38 Value *B = &*AI++; in TEST() 67 Value *A = &*AI++; in TEST() 68 Value *B = &*AI++; in TEST() 97 Value *A = &*AI++; in TEST() 98 Value *B = &*AI++; in TEST() 127 Value *A = &*AI++; in TEST() 128 Value *B = &*AI++; in TEST() 158 Value *A = &*AI++; in TEST() 159 Value *B = &*AI++; in TEST() [all …]
|
| H A D | CallPromotionUtilsTest.cpp | 59 auto *AI = dyn_cast<AllocaInst>(Inst); in TEST() local 60 ASSERT_TRUE(AI); in TEST() 193 auto *AI = dyn_cast<AllocaInst>(Inst); in TEST() local 194 ASSERT_TRUE(AI); in TEST() 235 auto *AI = dyn_cast<AllocaInst>(Inst); in TEST() local 236 ASSERT_TRUE(AI); in TEST() 294 auto *AI = dyn_cast<AllocaInst>(Inst); in TEST() local 295 ASSERT_TRUE(AI); in TEST() 312 AI = dyn_cast<AllocaInst>(Inst); in TEST() 313 ASSERT_TRUE(AI); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUArgumentUsageInfo.cpp | 154 AMDGPUFunctionArgInfo AI; in fixedABILayout() local 155 AI.PrivateSegmentBuffer in fixedABILayout() 157 AI.DispatchPtr = ArgDescriptor::createRegister(AMDGPU::SGPR4_SGPR5); in fixedABILayout() 158 AI.QueuePtr = ArgDescriptor::createRegister(AMDGPU::SGPR6_SGPR7); in fixedABILayout() 163 AI.DispatchID = ArgDescriptor::createRegister(AMDGPU::SGPR10_SGPR11); in fixedABILayout() 166 AI.WorkGroupIDX = ArgDescriptor::createRegister(AMDGPU::SGPR12); in fixedABILayout() 167 AI.WorkGroupIDY = ArgDescriptor::createRegister(AMDGPU::SGPR13); in fixedABILayout() 168 AI.WorkGroupIDZ = ArgDescriptor::createRegister(AMDGPU::SGPR14); in fixedABILayout() 169 AI.LDSKernelId = ArgDescriptor::createRegister(AMDGPU::SGPR15); in fixedABILayout() 172 AI.WorkItemIDX = ArgDescriptor::createRegister(AMDGPU::VGPR31, Mask); in fixedABILayout() [all …]
|
| H A D | SIMachineFunctionInfo.cpp | 545 yaml::SIArgumentInfo AI; in convertArgumentInfo() local 569 Any |= convertArg(AI.DispatchPtr, ArgInfo.DispatchPtr); in convertArgumentInfo() 570 Any |= convertArg(AI.QueuePtr, ArgInfo.QueuePtr); in convertArgumentInfo() 572 Any |= convertArg(AI.DispatchID, ArgInfo.DispatchID); in convertArgumentInfo() 574 Any |= convertArg(AI.LDSKernelId, ArgInfo.LDSKernelId); in convertArgumentInfo() 576 Any |= convertArg(AI.WorkGroupIDX, ArgInfo.WorkGroupIDX); in convertArgumentInfo() 580 Any |= convertArg(AI.PrivateSegmentWaveByteOffset, in convertArgumentInfo() 584 Any |= convertArg(AI.WorkItemIDX, ArgInfo.WorkItemIDX); in convertArgumentInfo() 585 Any |= convertArg(AI.WorkItemIDY, ArgInfo.WorkItemIDY); in convertArgumentInfo() 586 Any |= convertArg(AI.WorkItemIDZ, ArgInfo.WorkItemIDZ); in convertArgumentInfo() [all …]
|
| H A D | SIMachineFunctionInfo.h | 206 static void mapping(IO &YamlIO, SIArgumentInfo &AI) { 208 YamlIO.mapOptional("dispatchPtr", AI.DispatchPtr); 209 YamlIO.mapOptional("queuePtr", AI.QueuePtr); 211 YamlIO.mapOptional("dispatchID", AI.DispatchID); 215 YamlIO.mapOptional("workGroupIDX", AI.WorkGroupIDX); 216 YamlIO.mapOptional("workGroupIDY", AI.WorkGroupIDY); 217 YamlIO.mapOptional("workGroupIDZ", AI.WorkGroupIDZ); 219 YamlIO.mapOptional("LDSKernelId", AI.LDSKernelId); 226 YamlIO.mapOptional("workItemIDX", AI.WorkItemIDX); 227 YamlIO.mapOptional("workItemIDY", AI.WorkItemIDY); [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/instructions/ |
| H A D | ptrcmp.ll | 45 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] 47 ; CHECK: [[R:%.*]] = OpSLessThan {{%.+}} [[AI]] [[BI]] 59 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] 61 ; CHECK: [[R:%.*]] = OpULessThan {{%.+}} [[AI]] [[BI]] 73 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] 87 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] 101 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] 103 ; CHECK: [[R:%.*]] = OpUGreaterThan {{%.+}} [[AI]] [[BI]] 115 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] 129 ; CHECK-NEXT: [[AI:%.*]] = OpConvertPtrToU {{%.+}} [[A]] [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 158 if (AI->isArrayAllocation()) in isDereferenceableForAllocaSize() 170 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize() 185 New->setAlignment(AI.getAlign()); in simplifyAllocaArraySize() 211 return IC.replaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in simplifyAllocaArraySize() 218 return IC.replaceOperand(AI, 0, V); in simplifyAllocaArraySize() 366 if (AI.isArrayAllocation()) in visitAllocaInst() 367 return replaceOperand(AI, 0, in visitAllocaInst() 373 if (FirstInst != &AI) { in visitAllocaInst() 381 AI.moveBefore(FirstInst); in visitAllocaInst() 382 return &AI; in visitAllocaInst() [all …]
|
| /llvm-project-15.0.7/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() 413 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 433 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 456 if (AI && !SL.isAliveAfter(AI, I)) { in analyzeAllUses() 531 Allocas.push_back(AI); in run() 535 for (auto *AI : Allocas) { in run() local 537 analyzeAllUses(AI, UI, SL); in run() 894 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 AllocaSizeInBits = AI->getAllocationSizeInBits(DL); in findMatchingAlloca() 83 return AI; in findMatchingAlloca() 99 const AllocaInst *AI = findMatchingAlloca(*II, DL); in collectMarkers() local 100 if (!AI) { in collectMarkers() 104 auto It = AllocaNumbering.find(AI); in collectMarkers() [all …]
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | CodeGeneration.cpp | 94 AI.print(errs()); in verifyGeneratedFunction() 168 static bool generateCode(Scop &S, IslAstInfo &AI, LoopInfo &LI, in generateCode() argument 184 IslAst &Ast = AI.getIslAst(); in generateCode() 271 Value *RTC = NodeBuilder.createRTC(AI.getRunCondition().release()); in generateCode() 293 verifyGeneratedFunction(S, *F, AI); in generateCode() 295 verifyGeneratedFunction(S, *SubF, AI); in generateCode() 316 IslAstInfo *AI; member in __anone6cb5aa00111::CodeGeneration 330 AI = &getAnalysis<IslAstInfoWrapperPass>().getAI(); in runOnScop() 336 return generateCode(S, *AI, *LI, *DT, *SE, *RI); in runOnScop() 363 auto &AI = SAM.getResult<IslAstAnalysis>(S, AR); in run() local [all …]
|
| H A D | LoopGeneratorsKMP.cpp | 92 std::advance(AI, 1); in prepareSubFnDefinition() 94 std::advance(AI, 1); in prepareSubFnDefinition() 96 std::advance(AI, 1); in prepareSubFnDefinition() 98 std::advance(AI, 1); in prepareSubFnDefinition() 100 std::advance(AI, 1); in prepareSubFnDefinition() 166 Value *IDPtr = &*AI; in createSubFn() 168 std::advance(AI, 2); in createSubFn() 170 Value *LB = &*AI; in createSubFn() 171 std::advance(AI, 1); in createSubFn() 172 Value *UB = &*AI; in createSubFn() [all …]
|
| /llvm-project-15.0.7/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; \
|
| /llvm-project-15.0.7/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()
|