Home
last modified time | relevance | path

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

123456789

/NextBSD/contrib/llvm/tools/clang/include/clang/CodeGen/
HDCGFunctionInfo.h103 auto AI = ABIArgInfo(Direct); variable
104 AI.setCoerceToType(T);
105 AI.setDirectOffset(Offset);
106 AI.setPaddingType(Padding);
107 AI.setCanBeFlattened(CanBeFlattened);
108 return AI;
111 auto AI = getDirect(T); variable
112 AI.setInReg(true);
113 return AI;
116 auto AI = ABIArgInfo(Extend); variable
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Instrumentation/
HDSafeStack.cpp66 bool IsSafeStackAlloca(const AllocaInst *AI) { in IsSafeStackAlloca() argument
73 WorkList.push_back(AI); in IsSafeStackAlloca()
107 if (!isa<const ConstantInt>(AI->getArraySize())) in IsSafeStackAlloca()
279 if (auto AI = dyn_cast<AllocaInst>(&I)) { in findInsts() local
282 if (IsSafeStackAlloca(AI)) in findInsts()
285 if (AI->isStaticAlloca()) { in findInsts()
287 StaticAllocas.push_back(AI); in findInsts()
290 DynamicAllocas.push_back(AI); in findInsts()
380 for (AllocaInst *AI : StaticAllocas) { in moveStaticAllocasToUnsafeStack()
381 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
[all …]
HDAddressSanitizer.cpp403 uint64_t getAllocaSizeInBytes(AllocaInst *AI) const { in getAllocaSizeInBytes()
404 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes()
406 AI->getModule()->getDataLayout().getTypeAllocSize(Ty); in getAllocaSizeInBytes()
410 bool isInterestingAlloca(AllocaInst &AI);
413 bool isDynamicAlloca(AllocaInst &AI) const { in isDynamicAlloca()
414 return AI.isArrayAllocation() || !AI.isStaticAlloca(); in isDynamicAlloca()
539 AllocaInst *AI; member
624 void handleDynamicAllocaCall(AllocaInst *AI);
627 void visitAllocaInst(AllocaInst &AI) { in visitAllocaInst()
628 if (!ASan.isInterestingAlloca(AI)) return; in visitAllocaInst()
[all …]
/NextBSD/contrib/llvm/lib/CodeGen/
HDMachineCopyPropagation.cpp69 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in SourceNoLongerAvailable() local
70 SourceMap::iterator SI = SrcMap.find(*AI); in SourceNoLongerAvailable()
186 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local
187 CI = CopyMap.find(*AI); in CopyPropagateBlock()
210 for (MCRegAliasIterator AI(Def, TRI, false); AI.isValid(); ++AI) { in CopyPropagateBlock() local
211 CopyMap.erase(*AI); in CopyPropagateBlock()
212 AvailCopyMap.erase(*AI); in CopyPropagateBlock()
254 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local
255 DenseMap<unsigned, MachineInstr*>::iterator CI = CopyMap.find(*AI); in CopyPropagateBlock()
303 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local
[all …]
HDAtomicExpandPass.cpp51 bool tryExpandAtomicRMW(AtomicRMWInst *AI);
52 bool expandAtomicRMWToLLSC(AtomicRMWInst *AI);
53 bool expandAtomicRMWToCmpXchg(AtomicRMWInst *AI);
55 bool isIdempotentRMW(AtomicRMWInst *AI);
56 bool simplifyIdempotentRMW(AtomicRMWInst *AI);
220 AtomicRMWInst *AI = in expandAtomicStore() local
226 return tryExpandAtomicRMW(AI); in expandAtomicStore()
229 bool AtomicExpand::tryExpandAtomicRMW(AtomicRMWInst *AI) { in tryExpandAtomicRMW() argument
230 switch (TLI->shouldExpandAtomicRMWInIR(AI)) { in tryExpandAtomicRMW()
239 return expandAtomicRMWToLLSC(AI); in tryExpandAtomicRMW()
[all …]
HDStackProtector.cpp60 StackProtector::getSSPLayout(const AllocaInst *AI) const { in getSSPLayout()
61 return AI ? Layout.lookup(AI) : SSPLK_None; in getSSPLayout()
155 bool StackProtector::HasAddressTaken(const Instruction *AI) { in HasAddressTaken() argument
156 for (const User *U : AI->users()) { in HasAddressTaken()
158 if (AI == SI->getValueOperand()) in HasAddressTaken()
161 if (AI == SI->getOperand(0)) in HasAddressTaken()
213 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local
214 if (AI->isArrayAllocation()) { in RequiresStackProtector()
220 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
224 Layout.insert(std::make_pair(AI, SSPLK_LargeArray)); in RequiresStackProtector()
[all …]
HDAggressiveAntiDepBreaker.cpp154 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
155 unsigned Reg = *AI; in StartBlock()
170 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
171 unsigned AliasReg = *AI; in StartBlock()
303 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local
304 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse()
377 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local
378 unsigned AliasReg = *AI; in PrescanInstruction()
408 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local
415 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction()
[all …]
HDCriticalAntiDepBreaker.cpp62 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
63 unsigned Reg = *AI; in StartBlock()
77 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
78 unsigned Reg = *AI; in StartBlock()
191 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local
195 unsigned AliasReg = *AI; in PrescanInstruction()
309 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ScanInstruction() local
310 unsigned AliasReg = *AI; in ScanInstruction()
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDPromoteMemoryToRegister.cpp51 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument
54 unsigned AS = AI->getType()->getAddressSpace(); in isAllocaPromotable()
57 for (const User *U : AI->users()) { in isAllocaPromotable()
64 if (SI->getOperand(0) == AI) in isAllocaPromotable()
119 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
125 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { in AnalyzeAlloca()
149 DbgDeclare = FindAllocaDbgDeclare(AI); in AnalyzeAlloca()
294 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
305 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers() argument
309 for (auto UI = AI->user_begin(), UE = AI->user_end(); UI != UE;) { in removeLifetimeIntrinsicUsers()
[all …]
HDMetaRenamer.cpp74 for (Module::alias_iterator AI = M.alias_begin(), AE = M.alias_end(); in runOnModule() local
75 AI != AE; ++AI) { in runOnModule()
76 StringRef Name = AI->getName(); in runOnModule()
80 AI->setName("alias"); in runOnModule()
119 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); in runOnFunction() local
120 AI != AE; ++AI) in runOnFunction()
121 if (!AI->getType()->isVoidTy()) in runOnFunction()
122 AI->setName("arg"); in runOnFunction()
HDInstructionNamer.cpp35 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); in runOnFunction() local
36 AI != AE; ++AI) in runOnFunction()
37 if (!AI->hasName() && !AI->getType()->isVoidTy()) in runOnFunction()
38 AI->setName("arg"); in runOnFunction()
HDInlineFunction.cpp490 for (ImmutableCallSite::arg_iterator AI = ICS.arg_begin(), in AddAliasScopeMetadata() local
491 AE = ICS.arg_end(); AI != AE; ++AI) { in AddAliasScopeMetadata()
497 if (IsArgMemOnlyCall && !(*AI)->getType()->isPointerTy()) in AddAliasScopeMetadata()
500 PtrArgs.push_back(*AI); in AddAliasScopeMetadata()
813 static bool hasLifetimeMarkers(AllocaInst *AI) { in hasLifetimeMarkers() argument
814 Type *Ty = AI->getType(); in hasLifetimeMarkers()
818 return isUsedByLifetimeMarker(AI); in hasLifetimeMarkers()
821 for (User *U : AI->users()) { in hasLifetimeMarkers()
823 if (U->stripPointerCasts() != AI) continue; in hasLifetimeMarkers()
899 if (auto *AI = dyn_cast<AllocaInst>(BI)) in fixupLineNumbers() local
[all …]
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineLoadStoreAlloca.cpp159 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, in isOnlyCopiedFromConstantGlobal() argument
162 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete)) in isOnlyCopiedFromConstantGlobal()
167 static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) { in simplifyAllocaArraySize() argument
169 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize()
171 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize()
176 AI.setOperand(0, V); in simplifyAllocaArraySize()
177 return &AI; in simplifyAllocaArraySize()
181 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize()
182 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
183 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarReplAggregates.cpp102 AllocaInst *AI; member
128 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false), in AllocaInfo()
152 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
166 void DoScalarReplacement(AllocaInst *AI,
170 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
172 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
174 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
176 void RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI,
180 AllocaInst *AI,
182 void RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI,
[all …]
HDSROA.cpp219 AllocaSlices(const DataLayout &DL, AllocaInst &AI);
561 AllocaInst &AI; member in __anoncadf9e170311::AllocaSlices
640 SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &AS) in SliceBuilder() argument
642 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
658 << " alloca: " << AS.AI << "\n" in insertUse()
676 << " alloca: " << AS.AI << "\n" in insertUse()
780 << " alloca: " << AS.AI << "\n" in visitStoreInst()
999 AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI) in AllocaSlices() argument
1002 AI(AI), in AllocaSlices()
1005 SliceBuilder PB(DL, AI, *this); in AllocaSlices()
[all …]
HDSCCP.cpp1100 for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); in visitCallSite() local
1101 AI != E; ++AI) { in visitCallSite()
1102 LatticeVal State = getValueState(*AI); in visitCallSite()
1133 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); in visitCallSite() local
1134 AI != E; ++AI, ++CAI) { in visitCallSite()
1137 if (AI->hasByValAttr() && !F->onlyReadsMemory()) { in visitCallSite()
1138 markOverdefined(AI); in visitCallSite()
1142 if (StructType *STy = dyn_cast<StructType>(AI->getType())) { in visitCallSite()
1145 mergeInValue(getStructValueState(AI, i), AI, CallArg); in visitCallSite()
1148 mergeInValue(AI, getValueState(*CAI)); in visitCallSite()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDIPConstantPropagation.cpp106 CallSite::arg_iterator AI = CS.arg_begin(); in PropagateConstantsIntoArguments() local
109 ++i, ++AI, ++Arg) { in PropagateConstantsIntoArguments()
115 Constant *C = dyn_cast<Constant>(*AI); in PropagateConstantsIntoArguments()
120 } else if (*AI == &*Arg) { in PropagateConstantsIntoArguments()
135 Function::arg_iterator AI = F.arg_begin(); in PropagateConstantsIntoArguments() local
136 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { in PropagateConstantsIntoArguments()
138 if (ArgumentConstants[i].second || AI->use_empty() || in PropagateConstantsIntoArguments()
139 AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory())) in PropagateConstantsIntoArguments()
143 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments()
144 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
HDInliner.cpp184 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; in InlineCallIfPossible() local
189 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
190 if (!ATy || AI->isArrayAllocation()) in InlineCallIfPossible()
204 unsigned Align1 = AI->getAlignment(), in InlineCallIfPossible()
209 if (AvailableAlloca->getParent() != AI->getParent()) in InlineCallIfPossible()
219 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: " in InlineCallIfPossible()
222 AI->replaceAllUsesWith(AvailableAlloca); in InlineCallIfPossible()
227 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
234 AvailableAlloca->setAlignment(AI->getAlignment()); in InlineCallIfPossible()
237 AI->eraseFromParent(); in InlineCallIfPossible()
[all …]
/NextBSD/contrib/llvm/include/llvm/
HDPassSupport.h175 PassInfo *AI = new PassInfo(name, & agName :: ID); \
176 Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false, true); \
177 return AI; \
191 PassInfo *AI = new PassInfo(name, & agName :: ID); \
193 *AI, def, true); \
194 return AI; \
210 PassInfo *AI = new PassInfo(n, & agName :: ID); \
212 *AI, def, true); \
213 return AI; \
/NextBSD/contrib/llvm/lib/DebugInfo/DWARF/
HDDWARFDebugLoc.cpp48 RelocAddrMap::const_iterator AI = RelocMap.find(Offset); in parse() local
51 if (AI != RelocMap.end()) in parse()
52 E.Begin += AI->second.second; in parse()
54 AI = RelocMap.find(Offset); in parse()
57 if (AI != RelocMap.end()) in parse()
58 E.End += AI->second.second; in parse()
/NextBSD/contrib/llvm/tools/opt/
HDAnalysisWrappers.cpp47 for (CallSite::arg_iterator AI = CS.arg_begin(), in runOnModule() local
48 E = CS.arg_end(); AI != E; ++AI) { in runOnModule()
49 if (!isa<Constant>(*AI)) continue; in runOnModule()
/NextBSD/contrib/compiler-rt/lib/ubsan/
HDubsan_diag.cc53 AddressInfo AI; in MaybeReportErrorSummary() local
54 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary()
55 AI.line = SLoc.getLine(); in MaybeReportErrorSummary()
56 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary()
57 AI.function = internal_strdup(""); // Avoid printing ?? as function name. in MaybeReportErrorSummary()
58 ReportErrorSummary(ErrorType, AI); in MaybeReportErrorSummary()
59 AI.Clear(); in MaybeReportErrorSummary()
63 const AddressInfo &AI = Loc.getSymbolizedStack()->info; in MaybeReportErrorSummary() local
64 ReportErrorSummary(ErrorType, AI); in MaybeReportErrorSummary()
/NextBSD/contrib/llvm/lib/Target/Hexagon/
HDHexagonRemoveSZExtArgs.cpp60 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE; in runOnFunction() local
61 ++AI, ++Idx) { in runOnFunction()
63 Argument* Arg = AI; in runOnFunction()
/NextBSD/contrib/llvm/lib/Target/PowerPC/
HDPPCVSXFMAMutate.cpp274 for (LiveInterval::iterator AI = FMAInt.begin(), AE = FMAInt.end(); in processBlock() local
275 AI != AE; ++AI) { in processBlock()
277 if (AI->valno == AddendValNo) in processBlock()
281 NewFMAInt.getNextValue(AI->start, in processBlock()
284 NewFMAInt.addSegment(LiveInterval::Segment(AI->start, AI->end, in processBlock()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGCall.cpp730 QualType Ty, LValue LV, SmallVectorImpl<llvm::Argument *>::iterator &AI) { in ExpandTypeFromArgs() argument
740 ExpandTypeFromArgs(CAExp->EltTy, LV, AI); in ExpandTypeFromArgs()
752 ExpandTypeFromArgs(BS->getType(), SubLV, AI); in ExpandTypeFromArgs()
757 ExpandTypeFromArgs(FD->getType(), SubLV, AI); in ExpandTypeFromArgs()
762 EmitStoreThroughLValue(RValue::get(*AI++), in ExpandTypeFromArgs()
766 EmitStoreThroughLValue(RValue::get(*AI++), in ExpandTypeFromArgs()
770 EmitStoreThroughLValue(RValue::get(*AI++), LV); in ExpandTypeFromArgs()
1156 const ABIArgInfo &AI = I->info; in construct() local
1160 if (AI.getPaddingType()) in construct()
1163 switch (AI.getKind()) { in construct()
[all …]

123456789