Home
last modified time | relevance | path

Searched refs:AI (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/CodeGen/
H A DCGFunctionInfo.h145 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp286 AllocaInst *AI; member
308 bool isInterestingAlloca(const AllocaInst &AI);
311 void tagAlloca(AllocaInst *AI, Instruction *InsertBefore, Value *Ptr,
313 void untagAlloca(AllocaInst *AI, Instruction *InsertBefore, uint64_t Size);
416 bool AArch64StackTagging::isInterestingAlloca(const AllocaInst &AI) { in isInterestingAlloca() argument
419 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca()
421 AI.getAllocationSizeInBits(*DL).getValue() > 0 && in isInterestingAlloca()
424 !AI.isUsedWithInAlloca() && in isInterestingAlloca()
426 !AI.isSwiftError() && in isInterestingAlloca()
428 !(SSI && SSI->isSafe(AI)); in isInterestingAlloca()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DStackProtector.cpp166 bool StackProtector::HasAddressTaken(const Instruction *AI, in HasAddressTaken() argument
169 for (const User *U : AI->users()) { in HasAddressTaken()
179 if (AI == cast<StoreInst>(I)->getValueOperand()) in HasAddressTaken()
185 if (AI == cast<AtomicCmpXchgInst>(I)->getNewValOperand()) in HasAddressTaken()
189 if (AI == cast<PtrToIntInst>(I)->getOperand(0)) in HasAddressTaken()
303 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local
304 if (AI->isArrayAllocation()) { in RequiresStackProtector()
313 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
317 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
323 Layout.insert(std::make_pair(AI, in RequiresStackProtector()
[all …]
H A DSafeStack.cpp170 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI);
224 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize() argument
225 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
226 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize()
227 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
389 if (auto AI = dyn_cast<AllocaInst>(&I)) { in findInsts() local
392 uint64_t Size = getStaticAllocaAllocationSize(AI); in findInsts()
393 if (IsSafeStackAlloca(AI, Size)) in findInsts()
396 if (AI->isStaticAlloca()) { in findInsts()
398 StaticAllocas.push_back(AI); in findInsts()
[all …]
H A DAtomicExpandPass.cpp80 bool tryExpandAtomicRMW(AtomicRMWInst *AI);
92 AtomicRMWInst *widenPartwordAtomicRMW(AtomicRMWInst *AI);
94 void expandAtomicRMWToMaskedIntrinsic(AtomicRMWInst *AI);
120 llvm::expandAtomicRMWToCmpXchg(AtomicRMWInst *AI,
459 AtomicRMWInst *AI = Builder.CreateAtomicRMW( in expandAtomicStore() local
465 return tryExpandAtomicRMW(AI); in expandAtomicStore()
535 bool AtomicExpand::tryExpandAtomicRMW(AtomicRMWInst *AI) { in tryExpandAtomicRMW() argument
536 switch (TLI->shouldExpandAtomicRMWInIR(AI)) { in tryExpandAtomicRMW()
541 unsigned ValueSize = getAtomicOpSize(AI); in tryExpandAtomicRMW()
543 expandPartwordAtomicRMW(AI, in tryExpandAtomicRMW()
[all …]
H A DRegUsageInfoCollector.cpp149 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 DAggressiveAntiDepBreaker.cpp158 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
390 unsigned AliasReg = *AI; in PrescanInstruction()
420 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local
427 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction()
[all …]
H A DCallingConvLower.cpp62 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 DCriticalAntiDepBreaker.cpp70 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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-jitlink/llvm-jitlink-executor/
H A Dllvm-jitlink-executor.cpp63 addrinfo *AI; in openListener()
64 if (int EC = getaddrinfo(nullptr, PortStr.c_str(), &Hints, &AI)) { in openListener()
71 if ((SockFD = socket(AI->ai_family, AI->ai_socktype, AI->ai_protocol)) < 0) { in openListener()
84 if (bind(SockFD, AI->ai_addr, AI->ai_addrlen) < 0) { in openListener()
96 assert(Hi_32(AI->ai_addrlen) == 0 && "Field is a size_t on 64-bit AIX"); in openListener()
97 socklen_t AddrLen = Lo_32(AI->ai_addrlen); in openListener()
98 return accept(SockFD, AI->ai_addr, &AddrLen); in openListener()
100 return accept(SockFD, AI->ai_addr, &AI->ai_addrlen); in openListener()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp64 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument
66 for (const User *U : AI->users()) { in isAllocaPromotable()
73 if (SI->getOperand(0) == AI) in isAllocaPromotable()
126 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
132 for (User *U : AI->users()) { in AnalyzeAlloca()
154 findDbgUsers(DbgUsers, AI); in AnalyzeAlloca()
288 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
312 static void removeIntrinsicUsers(AllocaInst *AI) { in removeIntrinsicUsers() argument
316 for (Use &U : llvm::make_early_inc_range(AI->uses())) { in removeIntrinsicUsers()
354 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUArgumentUsageInfo.cpp150 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 DSIMachineFunctionInfo.cpp505 yaml::SIArgumentInfo AI; in convertArgumentInfo() local
528 Any |= convertArg(AI.PrivateSegmentBuffer, ArgInfo.PrivateSegmentBuffer); in convertArgumentInfo()
529 Any |= convertArg(AI.DispatchPtr, ArgInfo.DispatchPtr); in convertArgumentInfo()
530 Any |= convertArg(AI.QueuePtr, ArgInfo.QueuePtr); in convertArgumentInfo()
531 Any |= convertArg(AI.KernargSegmentPtr, ArgInfo.KernargSegmentPtr); in convertArgumentInfo()
532 Any |= convertArg(AI.DispatchID, ArgInfo.DispatchID); in convertArgumentInfo()
533 Any |= convertArg(AI.FlatScratchInit, ArgInfo.FlatScratchInit); in convertArgumentInfo()
534 Any |= convertArg(AI.PrivateSegmentSize, ArgInfo.PrivateSegmentSize); in convertArgumentInfo()
535 Any |= convertArg(AI.WorkGroupIDX, ArgInfo.WorkGroupIDX); in convertArgumentInfo()
536 Any |= convertArg(AI.WorkGroupIDY, ArgInfo.WorkGroupIDY); in convertArgumentInfo()
[all …]
H A DSIMachineFunctionInfo.h204 static void mapping(IO &YamlIO, SIArgumentInfo &AI) {
205 YamlIO.mapOptional("privateSegmentBuffer", AI.PrivateSegmentBuffer);
206 YamlIO.mapOptional("dispatchPtr", AI.DispatchPtr);
207 YamlIO.mapOptional("queuePtr", AI.QueuePtr);
208 YamlIO.mapOptional("kernargSegmentPtr", AI.KernargSegmentPtr);
209 YamlIO.mapOptional("dispatchID", AI.DispatchID);
210 YamlIO.mapOptional("flatScratchInit", AI.FlatScratchInit);
211 YamlIO.mapOptional("privateSegmentSize", AI.PrivateSegmentSize);
213 YamlIO.mapOptional("workGroupIDX", AI.WorkGroupIDX);
214 YamlIO.mapOptional("workGroupIDY", AI.WorkGroupIDY);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp150 AllocaInst *AI, in isOnlyCopiedFromConstantMemory() argument
153 if (isOnlyCopiedFromConstantMemory(AA, AI, TheCopy, ToDelete)) in isOnlyCopiedFromConstantMemory()
159 static bool isDereferenceableForAllocaSize(const Value *V, const AllocaInst *AI, in isDereferenceableForAllocaSize() argument
161 if (AI->isArrayAllocation()) in isDereferenceableForAllocaSize()
163 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
166 return isDereferenceableAndAlignedPointer(V, Align(AI->getAlignment()), in isDereferenceableForAllocaSize()
171 AllocaInst &AI) { in simplifyAllocaArraySize() argument
173 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize()
175 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize()
179 return IC.replaceOperand(AI, 0, IC.Builder.getInt32(1)); in simplifyAllocaArraySize()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp228 bool isInterestingAlloca(const AllocaInst &AI);
229 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
240 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI,
880 static uint64_t getAllocaSizeInBytes(const AllocaInst &AI) { in getAllocaSizeInBytes() argument
882 if (AI.isArrayAllocation()) { in getAllocaSizeInBytes()
883 const ConstantInt *CI = dyn_cast<ConstantInt>(AI.getArraySize()); in getAllocaSizeInBytes()
887 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes()
888 uint64_t SizeInBytes = AI.getModule()->getDataLayout().getTypeAllocSize(Ty); in getAllocaSizeInBytes()
892 bool HWAddressSanitizer::tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, in tagAlloca() argument
901 {IRB.CreatePointerCast(AI, Int8PtrTy), JustTag, in tagAlloca()
[all …]
H A DAddressSanitizer.cpp627 uint64_t getAllocaSizeInBytes(const AllocaInst &AI) const { in getAllocaSizeInBytes()
629 if (AI.isArrayAllocation()) { in getAllocaSizeInBytes()
630 const ConstantInt *CI = dyn_cast<ConstantInt>(AI.getArraySize()); in getAllocaSizeInBytes()
634 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes()
636 AI.getModule()->getDataLayout().getTypeAllocSize(Ty); in getAllocaSizeInBytes()
641 bool isInterestingAlloca(const AllocaInst &AI);
936 AllocaInst *AI; member
1065 void handleDynamicAllocaCall(AllocaInst *AI);
1068 void visitAllocaInst(AllocaInst &AI) { in visitAllocaInst()
1069 if (!ASan.isInterestingAlloca(AI)) { in visitAllocaInst()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DStackLifetime.cpp40 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()
71 const AllocaInst *AI = findAllocaForValue(II.getArgOperand(1), true); in findMatchingAlloca() local
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()
[all …]
H A DStackSafetyAnalysis.cpp146 ConstantRange getStaticAllocaSizeRange(const AllocaInst &AI) { in getStaticAllocaSizeRange() argument
147 const DataLayout &DL = AI.getModule()->getDataLayout(); in getStaticAllocaSizeRange()
148 TypeSize TS = DL.getTypeAllocSize(AI.getAllocatedType()); in getStaticAllocaSizeRange()
157 if (AI.isArrayAllocation()) { in getStaticAllocaSizeRange()
158 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
202 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in print() local
203 auto &AS = Allocas.find(AI)->second; in print()
204 O << " " << AI->getName() << "[" in print()
205 << getStaticAllocaSizeRange(*AI).getUpper() << "]: " << AS << "\n"; in print()
335 const AllocaInst *AI = dyn_cast<AllocaInst>(Ptr); in analyzeAllUses() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/
H A DPassSupport.h142 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; \
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_diag.cc80 AddressInfo AI; in MaybeReportErrorSummary() local
81 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary()
82 AI.line = SLoc.getLine(); in MaybeReportErrorSummary()
83 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary()
84 AI.function = internal_strdup(""); // Avoid printing ?? as function name. in MaybeReportErrorSummary()
85 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary()
86 AI.Clear(); in MaybeReportErrorSummary()
90 const AddressInfo &AI = Loc.getSymbolizedStack()->info; in MaybeReportErrorSummary() local
91 ReportErrorSummary(ErrorKind, AI, GetSanititizerToolName()); in MaybeReportErrorSummary()
429 const AddressInfo &AI = Stack.get()->info; in IsPCSuppressed() local
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_diag.cc82 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()
86 AI.function = internal_strdup(""); // Avoid printing ?? as function name. 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
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_diag.cpp89 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()
93 AI.function = internal_strdup(""); // Avoid printing ?? as function name. 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
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp441 LLVM_NODISCARD FieldIDType addFieldForAlloca(AllocaInst *AI, in addFieldForAlloca() argument
443 Type *Ty = AI->getAllocatedType(); in addFieldForAlloca()
446 if (AI->isArrayAllocation()) { in addFieldForAlloca()
447 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca()
453 return addField(Ty, AI->getAlign(), IsHeader); in addFieldForAlloca()
1266 auto *AI = dyn_cast<AllocaInst>(SI.getPointerOperand()); in visitStoreInst() local
1270 if (!AI) in visitStoreInst()
1273 SmallVector<Instruction *, 4> StoreAliases = {AI}; in visitStoreInst()
1513 if (auto *AI = dyn_cast<AllocaInst>(Orig)) { in insertSpills() local
1514 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp127 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()

12345678910>>...13