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

12345

/external/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 DPromoteMemoryToRegister.cpp82 bool llvm::isAllocaPromotable(const AllocaInst *AI) { argument
87 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end();
96 if (SI->getOperand(0) == AI)
97 return false; // Don't allow a store OF the AI, only INTO the AI.
277 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
279 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
283 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
285 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInf
317 AnalyzeAlloca(AllocaInst *AI) argument
361 removeLifetimeIntrinsicUsers(AllocaInst *AI) argument
397 AllocaInst *AI = Allocas[AllocaNum]; local
675 ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, const SmallPtrSet<BasicBlock*, 32> &DefBlocks, SmallPtrSet<BasicBlock*, 32> &LiveInBlocks) argument
746 DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, AllocaInfo &Info) argument
834 RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI) argument
922 PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI) argument
1075 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);
H A DLowerInvoke.cpp291 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end();
292 AI != E; ++AI) {
293 Type *Ty = AI->getType();
298 Instruction *EI = ExtractValueInst::Create(AI, 0, "",AfterAllocaInsertPt);
299 Instruction *NI = InsertValueInst::Create(AI, EI, 0);
301 AI->replaceAllUsesWith(NI);
303 EI->setOperand(0, AI);
304 NI->setOperand(0, AI);
306 // This is always a no-op cast because we're casting AI t
[all...]
/external/llvm/lib/CodeGen/
H A DMachineCopyPropagation.cpp65 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
66 SourceMap::iterator SI = SrcMap.find(*AI);
179 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
180 CI = CopyMap.find(*AI);
199 for (MCRegAliasIterator AI(Def, TRI, false); AI
[all...]
H A DRegisterClassInfo.cpp53 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
54 CSRNum[*AI] = N + 1; // 0 means no CSR, 1 means CalleeSaved[0], ...
H A DCriticalAntiDepBreaker.cpp65 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
66 unsigned Reg = *AI;
81 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
82 unsigned Reg = *AI;
96 for (MCRegAliasIterator AI(*I, TRI, true); AI
[all...]
H A DStackProtector.cpp151 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
152 if (AI->isArrayAllocation())
157 if (ContainsProtectableArray(AI->getAllocatedType()))
174 AllocaInst *AI = 0; // Place on stack that stores the stack guard. local
206 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt);
209 Value *Args[] = { LI, AI };
257 LoadInst *LI2 = new LoadInst(AI, "", true, BB);
H A DDeadMachineInstructionElim.cpp189 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
190 LivePhysRegs.set(*AI);
H A DSjLjEHPrepare.cpp246 AI = F.arg_begin(), AE = F.arg_end(); AI != AE; ++AI) {
247 Type *Ty = AI->getType();
253 Instruction *EI = ExtractValueInst::Create(AI, 0, "", AfterAllocaInsPt);
254 Instruction *NI = InsertValueInst::Create(AI, EI, 0);
256 AI->replaceAllUsesWith(NI);
259 EI->setOperand(0, AI);
260 NI->setOperand(0, AI);
262 // This is always a no-op cast because we're casting AI t
[all...]
H A DMachineRegisterInfo.cpp316 for (MCRegAliasIterator AI(PhysReg, TRI, true); AI.isValid(); ++AI)
317 if (!def_empty(*AI))
323 for (MCRegAliasIterator AI(PhysReg, TRI, true); AI.isValid(); ++AI)
324 if (AllocatableRegs.test(*AI))
H A DRegisterScavenging.cpp45 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
46 if (isUsed(*AI))
295 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); ++AI)
296 Candidates.reset(*AI);
H A DAggressiveAntiDepBreaker.cpp160 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
161 unsigned Reg = *AI;
176 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
177 unsigned Reg = *AI;
192 for (MCRegAliasIterator AI(Reg, TRI, true); AI
[all...]
/external/llvm/lib/Transforms/Instrumentation/
H A DProfilingUtils.cpp67 Function::arg_iterator AI; local
71 AI = MainFn->arg_begin(); ++AI;
72 if (AI->getType() != ArgVTy) {
73 Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy,
76 CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall));
78 InitCall->setArgOperand(1, AI);
83 AI = MainFn->arg_begin();
86 if (!AI->getType()->isIntegerTy(32)) {
88 if (!AI
[all...]
H A DBoundsChecking.cpp200 } else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(Inst)) {
201 MadeChange |= instrument(AI->getPointerOperand(),AI->getCompareOperand());
202 } else if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst)) {
203 MadeChange |= instrument(AI->getPointerOperand(), AI->getValOperand());
/external/llvm/include/llvm/Transforms/Utils/
H A DPromoteMemToReg.h29 bool isAllocaPromotable(const AllocaInst *AI);
/external/llvm/lib/Target/Hexagon/
H A DHexagonRemoveSZExtArgs.cpp51 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
52 ++AI, ++Idx) {
54 Argument* Arg = AI;
/external/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;
/external/clang/lib/CodeGen/
H A DCGRecordLayout.h105 const AccessInfo &AI = getComponent(i); local
106 AccessedSize += AI.TargetBitWidth;
109 assert(AI.TargetBitWidth > 0);
112 assert(AI.FieldBitStart + AI.TargetBitWidth <= AI.AccessWidth);
115 assert(AI.TargetBitWidth + AI.TargetBitOffset <= Size);
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp101 AllocaInst *AI; member in struct:__anon9734::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:__anon9737::AllocaPromoter
1055 run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) argument
1239 tryToMakeAllocaBePromotable(AllocaInst *AI, const TargetData *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
1876 RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset, SmallVector<AllocaInst*, 32> &NewElts) argument
1990 RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, SmallVector<AllocaInst*, 32> &NewElts) argument
2048 RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, SmallVector<AllocaInst*, 32> &NewElts) argument
2109 RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI, uint64_t Offset, SmallVector<AllocaInst*, 32> &NewElts) argument
2165 RewriteMemIntrinUserOfAlloca(MemIntrinsic *MI, Instruction *Inst, AllocaInst *AI, SmallVector<AllocaInst*, 32> &NewElts) argument
2338 RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI, SmallVector<AllocaInst*, 32> &NewElts) argument
2452 RewriteLoadUserOfWholeAlloca(LoadInst *LI, AllocaInst *AI, SmallVector<AllocaInst*, 32> &NewElts) argument
2576 isSafeAllocaToScalarRepl(AllocaInst *AI) argument
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp145 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, argument
148 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete))
172 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { argument
176 Type *IntPtrTy = TD->getIntPtrType(AI.getContext());
177 if (AI.getArraySize()->getType() != IntPtrTy) {
178 Value *V = Builder->CreateIntCast(AI.getArraySize(),
180 AI.setOperand(0, V);
181 return &AI;
186 if (AI.isArrayAllocation()) { // Check C != 1
187 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI
[all...]
/external/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...]
/external/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; \
/external/llvm/lib/Analysis/
H A DAliasDebugger.cpp61 for (Function::arg_iterator AI = I->arg_begin(), AE = I->arg_end();
62 AI != AE; ++AI)
63 Vals.insert(&*AI);
/external/llvm/lib/VMCore/
H A DTypeFinder.cpp48 for (Function::const_arg_iterator AI = FI->arg_begin(),
49 AE = FI->arg_end(); AI != AE; ++AI)
50 incorporateValue(AI);

Completed in 307 milliseconds

12345