| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| D | MemoryTaggingSupport.cpp | 118 if (AllocaInst *AI = dyn_cast<AllocaInst>(&Inst)) { in visit() local 119 if (isInterestingAlloca(*AI)) { in visit() 120 Info.AllocasToInstrument[AI].AI = AI; in visit() 127 AllocaInst *AI = findAllocaForValue(II->getArgOperand(1)); in visit() local 128 if (!AI) { in visit() 132 if (!isInterestingAlloca(*AI)) in visit() 135 Info.AllocasToInstrument[AI].LifetimeStart.push_back(II); in visit() 137 Info.AllocasToInstrument[AI].LifetimeEnd.push_back(II); in visit() 142 if (auto *AI = dyn_cast_or_null<AllocaInst>(V)) { in visit() local 143 if (!isInterestingAlloca(*AI)) in visit() [all …]
|
| D | PromoteMemoryToRegister.cpp | 63 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument 65 for (const User *U : AI->users()) { in isAllocaPromotable() 69 if (LI->isVolatile() || LI->getType() != AI->getAllocatedType()) in isAllocaPromotable() 72 if (SI->getValueOperand() == AI || in isAllocaPromotable() 73 SI->getValueOperand()->getType() != AI->getAllocatedType()) in isAllocaPromotable() 111 void init(AllocaInst *AI) { in init() argument 113 for (DbgAssignIntrinsic *DAI : at::getAssignmentMarkers(AI)) { in init() 191 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca() 197 for (User *U : AI->users()) { in AnalyzeAlloca() 219 findDbgUsers(AllDbgUsers, AI); in AnalyzeAlloca() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/ |
| D | ia64-sync-2.c | 8 static int AI[18]; variable 15 if (__sync_val_compare_and_swap(AI+0, 0, 1) != 0) in do_si() 17 if (__sync_val_compare_and_swap(AI+0, 0, 1) != 1) in do_si() 19 if (__sync_bool_compare_and_swap(AI+1, 0, 1) != 1) in do_si() 21 if (__sync_bool_compare_and_swap(AI+1, 0, 1) != 0) in do_si() 24 if (__sync_lock_test_and_set(AI+2, 1) != 0) in do_si() 27 if (__sync_fetch_and_add(AI+4, 1) != 0) in do_si() 29 if (__sync_fetch_and_add(AI+5, 4) != 0) in do_si() 31 if (__sync_fetch_and_add(AI+6, 22) != 0) in do_si() 33 if (__sync_fetch_and_sub(AI+7, 12) != 0) in do_si() [all …]
|
| D | ia64-sync-1.c | 9 static int AI[12]; variable 16 __sync_val_compare_and_swap(AI+0, 0, 1); in do_noret_si() 17 __sync_bool_compare_and_swap(AI+1, 0, 1); in do_noret_si() 18 __sync_lock_test_and_set(AI+2, 1); in do_noret_si() 19 __sync_lock_release(AI+3); in do_noret_si() 21 __sync_fetch_and_add(AI+4, 1); in do_noret_si() 22 __sync_fetch_and_add(AI+5, 4); in do_noret_si() 23 __sync_fetch_and_add(AI+6, 22); in do_noret_si() 24 __sync_fetch_and_sub(AI+7, 12); in do_noret_si() 25 __sync_fetch_and_and(AI+8, 7); in do_noret_si() [all …]
|
| D | ia64-sync-3.c | 8 static int AI[4]; variable 15 if (__sync_val_compare_and_swap(AI+0, -30, -115) != -30) in do_si() 17 if (__sync_val_compare_and_swap(AI+0, -30, -115) != -115) in do_si() 19 if (__sync_bool_compare_and_swap(AI+1, -30, -115) != 1) in do_si() 21 if (__sync_bool_compare_and_swap(AI+1, -30, -115) != 0) in do_si() 24 if (__sync_val_compare_and_swap(AI+2, AI[2], 25) != -50) in do_si() 26 if (__sync_val_compare_and_swap(AI+2, AI[2], 25) != 25) in do_si() 28 if (__sync_bool_compare_and_swap(AI+3, AI[3], 25) != 1) in do_si() 30 if (__sync_bool_compare_and_swap(AI+3, AI[3], 25) != 1) in do_si() 62 memcpy(AI, init_si, sizeof(init_si)); in main() [all …]
|
| /openbsd/src/gnu/llvm/clang/include/clang/CodeGen/ |
| D | CGFunctionInfo.h | 145 auto AI = ABIArgInfo(Direct); variable 146 AI.setCoerceToType(T); 147 AI.setPaddingType(Padding); 148 AI.setDirectOffset(Offset); 149 AI.setDirectAlign(Align); 150 AI.setCanBeFlattened(CanBeFlattened); 151 return AI; 154 auto AI = getDirect(T); variable 155 AI.setInReg(true); 156 return AI; [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | StackProtector.cpp | 169 bool StackProtector::HasAddressTaken(const Instruction *AI, in HasAddressTaken() argument 172 for (const User *U : AI->users()) { in HasAddressTaken() 183 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken() 189 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand()) in HasAddressTaken() 193 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken() 313 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local 314 if (AI->isArrayAllocation()) { in RequiresStackProtector() 323 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector() 327 Layout.insert(std::make_pair(AI, in RequiresStackProtector() 333 Layout.insert(std::make_pair(AI, in RequiresStackProtector() [all …]
|
| D | ReturnProtectorLowering.cpp | 70 static bool hasAddressTaken(const Instruction *AI, in hasAddressTaken() argument 72 for (const User *U : AI->users()) { in hasAddressTaken() 76 if (AI == cast<StoreInst>(I)->getValueOperand()) in hasAddressTaken() 80 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand()) in hasAddressTaken() 84 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in hasAddressTaken() 205 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in determineReturnProtectorRegister() local 207 Type *Ty = AI->getAllocatedType(); in determineReturnProtectorRegister() 208 if (AI->isArrayAllocation() || containsProtectableData(Ty)) { in determineReturnProtectorRegister() 214 if (hasAddressTaken(AI, visitedPHIs)) { in determineReturnProtectorRegister() 233 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in determineReturnProtectorRegister() local [all …]
|
| D | SafeStack.cpp | 151 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI); 207 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize() argument 208 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize() 209 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize() 210 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 385 if (auto AI = dyn_cast<AllocaInst>(&I)) { in findInsts() local 388 uint64_t Size = getStaticAllocaAllocationSize(AI); in findInsts() 389 if (IsSafeStackAlloca(AI, Size)) in findInsts() 392 if (AI->isStaticAlloca()) { in findInsts() 394 StaticAllocas.push_back(AI); in findInsts() [all …]
|
| D | AtomicExpandPass.cpp | 85 bool tryExpandAtomicRMW(AtomicRMWInst *AI); 97 AtomicRMWInst *widenPartwordAtomicRMW(AtomicRMWInst *AI); 99 void expandAtomicRMWToMaskedIntrinsic(AtomicRMWInst *AI); 125 llvm::expandAtomicRMWToCmpXchg(AtomicRMWInst *AI, 536 AtomicRMWInst *AI = Builder.CreateAtomicRMW( in expandAtomicStore() local 542 tryExpandAtomicRMW(AI); in expandAtomicStore() 572 bool AtomicExpand::tryExpandAtomicRMW(AtomicRMWInst *AI) { in tryExpandAtomicRMW() argument 573 LLVMContext &Ctx = AI->getModule()->getContext(); in tryExpandAtomicRMW() 574 TargetLowering::AtomicExpansionKind Kind = TLI->shouldExpandAtomicRMWInIR(AI); in tryExpandAtomicRMW() 580 unsigned ValueSize = getAtomicOpSize(AI); in tryExpandAtomicRMW() [all …]
|
| 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()
|
| 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 388 unsigned AliasReg = *AI; in PrescanInstruction() 417 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local 424 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction() [all …]
|
| 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()
|
| 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()
|
| D | CallingConvLower.cpp | 60 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkAllocated() local 61 UsedRegs[*AI / 32] |= 1 << (*AI & 31); in MarkAllocated() 65 for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) in MarkUnallocated() local 66 UsedRegs[*AI / 32] &= ~(1 << (*AI & 31)); in MarkUnallocated()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUArgumentUsageInfo.cpp | 152 AMDGPUFunctionArgInfo AI; in fixedABILayout() local 153 AI.PrivateSegmentBuffer in fixedABILayout() 155 AI.DispatchPtr = ArgDescriptor::createRegister(AMDGPU::SGPR4_SGPR5); in fixedABILayout() 156 AI.QueuePtr = ArgDescriptor::createRegister(AMDGPU::SGPR6_SGPR7); in fixedABILayout() 160 AI.ImplicitArgPtr = ArgDescriptor::createRegister(AMDGPU::SGPR8_SGPR9); in fixedABILayout() 161 AI.DispatchID = ArgDescriptor::createRegister(AMDGPU::SGPR10_SGPR11); in fixedABILayout() 164 AI.WorkGroupIDX = ArgDescriptor::createRegister(AMDGPU::SGPR12); in fixedABILayout() 165 AI.WorkGroupIDY = ArgDescriptor::createRegister(AMDGPU::SGPR13); in fixedABILayout() 166 AI.WorkGroupIDZ = ArgDescriptor::createRegister(AMDGPU::SGPR14); in fixedABILayout() 167 AI.LDSKernelId = ArgDescriptor::createRegister(AMDGPU::SGPR15); in fixedABILayout() [all …]
|
| D | SIMachineFunctionInfo.cpp | 574 yaml::SIArgumentInfo AI; in convertArgumentInfo() local 597 Any |= convertArg(AI.PrivateSegmentBuffer, ArgInfo.PrivateSegmentBuffer); in convertArgumentInfo() 598 Any |= convertArg(AI.DispatchPtr, ArgInfo.DispatchPtr); in convertArgumentInfo() 599 Any |= convertArg(AI.QueuePtr, ArgInfo.QueuePtr); in convertArgumentInfo() 600 Any |= convertArg(AI.KernargSegmentPtr, ArgInfo.KernargSegmentPtr); in convertArgumentInfo() 601 Any |= convertArg(AI.DispatchID, ArgInfo.DispatchID); in convertArgumentInfo() 602 Any |= convertArg(AI.FlatScratchInit, ArgInfo.FlatScratchInit); in convertArgumentInfo() 603 Any |= convertArg(AI.LDSKernelId, ArgInfo.LDSKernelId); in convertArgumentInfo() 604 Any |= convertArg(AI.PrivateSegmentSize, ArgInfo.PrivateSegmentSize); in convertArgumentInfo() 605 Any |= convertArg(AI.WorkGroupIDX, ArgInfo.WorkGroupIDX); in convertArgumentInfo() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/ |
| D | AArch64StackTagging.cpp | 307 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr, 309 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size); 413 void AArch64StackTagging::tagAlloca(AllocaInst *AI, Instruction *InsertBefore, in tagAlloca() argument 422 Triple(AI->getModule()->getTargetTriple()).isLittleEndian(); in tagAlloca() 426 LLVM_DEBUG(dbgs() << "collecting initializers for " << *AI in tagAlloca() 435 void AArch64StackTagging::untagAlloca(AllocaInst *AI, Instruction *InsertBefore, in untagAlloca() argument 438 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getInt8PtrTy()), in untagAlloca() 449 AllocaInst *AI = Info.AI; in insertBaseTaggedPointer() local 451 PrologueBB = AI->getParent(); in insertBaseTaggedPointer() 454 PrologueBB = DT->findNearestCommonDominator(PrologueBB, AI->getParent()); in insertBaseTaggedPointer() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineLoadStoreAlloca.cpp | 170 AllocaInst *AI, in isOnlyCopiedFromConstantMemory() argument 173 if (isOnlyCopiedFromConstantMemory(AA, AI, TheCopy, ToDelete)) in isOnlyCopiedFromConstantMemory() 179 static bool isDereferenceableForAllocaSize(const Value *V, const AllocaInst *AI, in isDereferenceableForAllocaSize() argument 181 if (AI->isArrayAllocation()) in isDereferenceableForAllocaSize() 183 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize() 186 return isDereferenceableAndAlignedPointer(V, AI->getAlign(), in isDereferenceableForAllocaSize() 191 AllocaInst &AI, DominatorTree &DT) { in simplifyAllocaArraySize() argument 193 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize() 195 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize() 199 return IC.replaceOperand(AI, 0, IC.Builder.getInt32(1)); in simplifyAllocaArraySize() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Analysis/ |
| D | StackSafetyAnalysis.cpp | 154 ConstantRange getStaticAllocaSizeRange(const AllocaInst &AI) { in getStaticAllocaSizeRange() argument 155 const DataLayout &DL = AI.getModule()->getDataLayout(); in getStaticAllocaSizeRange() 156 TypeSize TS = DL.getTypeAllocSize(AI.getAllocatedType()); in getStaticAllocaSizeRange() 157 unsigned PointerSize = DL.getPointerTypeSizeInBits(AI.getType()); in getStaticAllocaSizeRange() 165 if (AI.isArrayAllocation()) { in getStaticAllocaSizeRange() 166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange() 210 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in print() local 211 auto &AS = Allocas.find(AI)->second; in print() 212 O << " " << AI->getName() << "[" in print() 213 << getStaticAllocaSizeRange(*AI).getUpper() << "]: " << AS << "\n"; in print() [all …]
|
| 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() 66 const AllocaInst *AI = findAllocaForValue(II.getArgOperand(1), true); in findMatchingAlloca() local 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() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/ |
| D | ctor2.C | 8 struct AI : AP { struct 9 AI(unsigned char); 12 AI::AI(unsigned char c) in AI() function
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/ |
| 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; \
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/ |
| D | friend44.C | 9 struct AI { struct 17 template <class T> friend struct A<T>::AI; 29 template <class T> int A<T>::AI::f (T) 38 A<int>::AI ai;
|
| /openbsd/src/gnu/llvm/llvm/tools/opt/ |
| 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()
|