Searched refs:AI (Results 1 - 25 of 146) sorted by relevance

123456

/freebsd-9.3-release/contrib/llvm/lib/Transforms/Utils/
H A DInstructionNamer.cpp35 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
36 AI != AE; ++AI)
37 if (!AI->hasName() && !AI->getType()->isVoidTy())
38 AI->setName("arg");
H A DMetaRenamer.cpp74 for (Module::alias_iterator AI = M.alias_begin(), AE = M.alias_end();
75 AI != AE; ++AI) {
76 StringRef Name = AI->getName();
80 AI->setName("alias");
119 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
120 AI != AE; ++AI)
121 if (!AI->getType()->isVoidTy())
122 AI
[all...]
H A DPromoteMemoryToRegister.cpp59 bool llvm::isAllocaPromotable(const AllocaInst *AI) { argument
64 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end();
73 if (SI->getOperand(0) == AI)
74 return false; // Don't allow a store OF the AI, only INTO the AI.
128 void AnalyzeAlloca(AllocaInst *AI) { argument
134 for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end();
159 DbgDeclare = FindAllocaDbgDeclare(AI);
316 removeLifetimeIntrinsicUsers(AllocaInst *AI) argument
350 rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI, DominatorTree &DT, AliasSetTracker *AST) argument
447 promoteSingleBlockAlloca(AllocaInst *AI, const AllocaInfo &Info, LargeBlockInfo &LBI, AliasSetTracker *AST) argument
533 AllocaInst *AI = Allocas[AllocaNum]; local
770 ComputeLiveInBlocks( AllocaInst *AI, AllocaInfo &Info, const SmallPtrSet<BasicBlock *, 32> &DefBlocks, SmallPtrSet<BasicBlock *, 32> &LiveInBlocks) argument
845 DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, AllocaInfo &Info) argument
1020 DenseMap<AllocaInst *, unsigned>::iterator AI = AllocaLookup.find(Src); local
[all...]
H A DMem2Reg.cpp72 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
73 if (isAllocaPromotable(AI))
74 Allocas.push_back(AI);
/freebsd-9.3-release/contrib/llvm/lib/CodeGen/
H A DStackProtector.cpp57 StackProtector::getSSPLayout(const AllocaInst *AI) const {
58 return AI ? Layout.lookup(AI) : SSPLK_None;
129 bool StackProtector::HasAddressTaken(const Instruction *AI) { argument
130 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end();
134 if (AI == SI->getValueOperand())
137 if (AI == SI->getOperand(0))
195 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
196 if (AI
315 CreatePrologue(Function *F, Module *M, ReturnInst *RI, const TargetLoweringBase *TLI, const Triple &Trip, AllocaInst *&AI, Value *&StackGuardVar) argument
340 AI); local
355 AllocaInst *AI = 0; // Place on stack that stores the stack guard. local
[all...]
H A DMachineCopyPropagation.cpp68 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
69 SourceMap::iterator SI = SrcMap.find(*AI);
192 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
193 CI = CopyMap.find(*AI);
212 for (MCRegAliasIterator AI(Def, TRI, false); AI
[all...]
H A DCriticalAntiDepBreaker.cpp65 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
66 unsigned Reg = *AI;
80 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
81 unsigned Reg = *AI;
187 for (MCRegAliasIterator AI(Reg, TRI, false); AI
[all...]
H A DDeadMachineInstructionElim.cpp176 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
177 LivePhysRegs.set(*AI);
H A DRegisterClassInfo.cpp57 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
58 CSRNum[*AI] = N + 1; // 0 means no CSR, 1 means CalleeSaved[0], ...
H A DSjLjEHPrepare.cpp247 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
248 ++AI) {
249 Type *Ty = AI->getType();
255 Instruction *EI = ExtractValueInst::Create(AI, 0, "", AfterAllocaInsPt);
256 Instruction *NI = InsertValueInst::Create(AI, EI, 0);
258 AI->replaceAllUsesWith(NI);
261 EI->setOperand(0, AI);
262 NI->setOperand(0, AI);
264 // This is always a no-op cast because we're casting AI t
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DPromoteMemToReg.h32 bool isAllocaPromotable(const AllocaInst *AI);
/freebsd-9.3-release/contrib/llvm/lib/Target/Hexagon/
H A DHexagonRemoveSZExtArgs.cpp57 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
58 ++AI, ++Idx) {
60 Argument* Arg = AI;
/freebsd-9.3-release/contrib/llvm/tools/opt/
H A DAnalysisWrappers.cpp48 for (CallSite::arg_iterator AI = CS.arg_begin(),
49 E = CS.arg_end(); AI != E; ++AI) {
50 if (!isa<Constant>(*AI)) continue;
/freebsd-9.3-release/contrib/llvm/lib/DebugInfo/
H A DDWARFDebugLoc.cpp47 RelocAddrMap::const_iterator AI = RelocMap.find(Offset); local
50 if (AI != RelocMap.end())
51 E.Begin += AI->second.second;
53 AI = RelocMap.find(Offset);
56 if (AI != RelocMap.end())
57 E.End += AI->second.second;
H A DDWARFFormValue.cpp146 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); local
147 if (AI != cu->getRelocMap()->end()) {
148 const std::pair<uint8_t, int64_t> &R = AI->second;
182 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); local
184 if (AI != cu->getRelocMap()->end())
185 Value.uval += AI->second.second;
196 RelocAddrMap::const_iterator AI local
198 if (AI != cu->getRelocMap()->end()) {
199 const std::pair<uint8_t, int64_t> &R = AI->second;
218 RelocAddrMap::const_iterator AI local
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/
H A DMangler.cpp73 for (Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end();
74 AI != AE; ++AI) {
75 Type *Ty = AI->getType();
77 if (AI->hasByValAttr())
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp101 AllocaInst *AI; member in struct:__anon2685::SROA::AllocaInfo
127 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false),
151 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
164 void DoScalarReplacement(AllocaInst *AI,
168 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
170 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
172 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
174 void RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI,
178 AllocaInst *AI,
180 void RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI,
332 TryConvert(AllocaInst *AI) argument
1046 AllocaInst *AI; member in class:__anon2688::AllocaPromoter
1055 run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) argument
1239 tryToMakeAllocaBePromotable(AllocaInst *AI, const DataLayout *TD) argument
1433 AllocaInst *AI = Allocas[i]; local
1453 ShouldAttemptScalarRepl(AllocaInst *AI) argument
1480 AllocaInst *AI = WorkList.back(); local
1539 DoScalarReplacement(AllocaInst *AI, std::vector<AllocaInst*> &WorkList) argument
1867 RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
1981 RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
2039 RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
2100 RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
2157 RewriteMemIntrinUserOfAlloca(MemIntrinsic *MI, Instruction *Inst, AllocaInst *AI, SmallVectorImpl<AllocaInst *> &NewElts) argument
2331 RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI, SmallVectorImpl<AllocaInst *> &NewElts) argument
2446 RewriteLoadUserOfWholeAlloca(LoadInst *LI, AllocaInst *AI, SmallVectorImpl<AllocaInst *> &NewElts) argument
2570 isSafeAllocaToScalarRepl(AllocaInst *AI) argument
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp145 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, argument
148 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete))
153 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { argument
157 Type *IntPtrTy = TD->getIntPtrType(AI.getType());
158 if (AI.getArraySize()->getType() != IntPtrTy) {
159 Value *V = Builder->CreateIntCast(AI.getArraySize(),
161 AI.setOperand(0, V);
162 return &AI;
167 if (AI.isArrayAllocation()) { // Check C != 1
168 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp105 CallSite::arg_iterator AI = CS.arg_begin();
108 ++i, ++AI, ++Arg) {
114 Constant *C = dyn_cast<Constant>(*AI);
119 } else if (*AI == &*Arg) {
134 Function::arg_iterator AI = F.arg_begin(); local
135 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) {
137 if (ArgumentConstants[i].second || AI->use_empty() ||
138 (AI->hasByValAttr() && !F.onlyReadsMemory()))
142 if (V == 0) V = UndefValue::get(AI->getType());
143 AI
[all...]
H A DInliner.cpp173 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; local
178 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType());
179 if (ATy == 0 || AI->isArrayAllocation())
194 unsigned Align1 = AI->getAlignment(),
204 if (AvailableAlloca->getParent() != AI->getParent())
212 // Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare
214 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: "
217 AI->replaceAllUsesWith(AvailableAlloca);
222 unsigned TypeAlign = TD->getABITypeAlignment(AI->getAllocatedType());
229 AvailableAlloca->setAlignment(AI
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/
H A DPassSupport.h259 PassInfo *AI = new PassInfo(name, & agName :: ID); \
260 Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false, true); \
261 return AI; \
275 PassInfo *AI = new PassInfo(name, & agName :: ID); \
277 *AI, def, true); \
278 return AI; \
294 PassInfo *AI = new PassInfo(n, & agName :: ID); \
296 *AI, def, true); \
297 return AI; \
/freebsd-9.3-release/contrib/llvm/include/llvm/CodeGen/
H A DStackProtector.h100 bool HasAddressTaken(const Instruction *AI);
121 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
/freebsd-9.3-release/contrib/llvm/lib/Analysis/
H A DCodeMetrics.cpp59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
60 if (!AI->isStaticAlloca())
H A DAliasDebugger.cpp61 for (Function::arg_iterator AI = I->arg_begin(), AE = I->arg_end();
62 AI != AE; ++AI)
63 Vals.insert(&*AI);
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DDirectIvarAssignment.cpp162 AI = D->specific_attr_begin<AnnotateAttr>(),
163 AE = D->specific_attr_end<AnnotateAttr>(); AI != AE; ++AI) {
164 const AnnotateAttr *Ann = *AI;
229 AI = M->specific_attr_begin<AnnotateAttr>(),
231 AI != AE; ++AI) {
232 const AnnotateAttr *Ann = *AI;

Completed in 247 milliseconds

123456