Searched defs:AI (Results 1 - 25 of 54) sorted by relevance

123

/external/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.cpp94 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); local
95 if (AI != cu->getRelocMap()->end()) {
96 const std::pair<uint8_t, int64_t> &R = AI->second;
130 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); local
132 if (AI != cu->getRelocMap()->end())
133 Value.uval += AI->second.second;
144 RelocAddrMap::const_iterator AI local
146 if (AI != cu->getRelocMap()->end()) {
147 const std::pair<uint8_t, int64_t> &R = AI->second;
170 RelocAddrMap::const_iterator AI local
[all...]
H A DDWARFDebugLine.cpp274 RelocAddrMap::const_iterator AI = RMap->find(*offset_ptr); local
275 if (AI != RMap->end()) {
276 const std::pair<uint8_t, int64_t> &R = AI->second;
/external/llvm/lib/Transforms/ObjCARC/
H A DObjCARCUtil.cpp84 Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end(); local
87 if (AI == AE)
94 const Argument *A0 = AI++;
95 if (AI == AE)
130 const Argument *A1 = AI++;
131 if (AI == AE)
/external/llvm/unittests/Transforms/Utils/
H A DIntegerDivision.cpp36 Function::arg_iterator AI = F->arg_begin(); local
37 Value *A = AI++;
38 Value *B = AI++;
66 Function::arg_iterator AI = F->arg_begin(); local
67 Value *A = AI++;
68 Value *B = AI++;
96 Function::arg_iterator AI = F->arg_begin(); local
97 Value *A = AI++;
98 Value *B = AI++;
126 Function::arg_iterator AI local
[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...]
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...]
H A DArgumentPromotion.cpp644 CallSite::arg_iterator AI = CS.arg_begin(); local
647 I != E; ++I, ++AI, ++ArgIndex)
649 Args.push_back(*AI); // Unmodified argument
664 Value *Idx = GetElementPtrInst::Create(*AI, Idxs,
665 (*AI)->getName()+"."+utostr(i),
678 Value *V = *AI;
712 for (; AI != CS.arg_end(); ++AI, ++ArgIndex) {
713 Args.push_back(*AI);
H A DFunctionAttrs.cpp354 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); local
356 PI != PE; ++PI, ++AI) {
357 if (AI == AE) {
363 Uses.push_back(AI);
462 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); local
464 for (CallSite::arg_iterator A = B; A != E; ++A, ++AI) {
466 if (AI == AE) {
471 if (SCCNodes.count(AI))
/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...]
/external/llvm/tools/bugpoint/
H A DBugDriver.h154 void switchToInterpreter(AbstractInterpreter *AI) { argument
155 Interpreter = AI;
176 AbstractInterpreter *AI,
H A DExecutionDriver.cpp299 AbstractInterpreter *AI,
301 if (AI == 0) AI = Interpreter;
302 assert(AI && "Interpreter should have been created already!");
348 int RetVal = AI->ExecuteProgram(BitcodeFile, InputArgv, InputFile, OutputFile,
295 executeProgram(const Module *Program, std::string OutputFile, std::string BitcodeFile, const std::string &SharedObj, AbstractInterpreter *AI, std::string *Error) const argument
H A DMiscompilation.cpp334 AbstractInterpreter *AI = BD.switchToSafeInterpreter(); local
348 BD.switchToInterpreter(AI);
370 BD.switchToInterpreter(AI);
/external/llvm/unittests/Analysis/
H A DScalarEvolutionTest.cpp108 Function::arg_iterator AI = F->arg_begin(); local
110 A.push_back(SE.getSCEV(&*AI++));
111 A.push_back(SE.getSCEV(&*AI++));
112 A.push_back(SE.getSCEV(&*AI++));
113 A.push_back(SE.getSCEV(&*AI++));
114 A.push_back(SE.getSCEV(&*AI++));
118 B.push_back(SE.getSCEV(&*AI++));
119 B.push_back(SE.getSCEV(&*AI++));
120 B.push_back(SE.getSCEV(&*AI++));
121 B.push_back(SE.getSCEV(&*AI
[all...]
/external/llvm/lib/CodeGen/
H A DStackProtector.cpp86 bool HasAddressTaken(const Instruction *AI);
171 bool StackProtector::HasAddressTaken(const Instruction *AI) { argument
172 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end();
176 if (AI == SI->getValueOperand())
179 if (AI == SI->getOperand(0))
235 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
236 if (AI->isArrayAllocation()) {
243 dyn_cast<ConstantInt>(AI->getArraySize())) {
254 if (ContainsProtectableArray(AI
276 CreatePrologue(Function *F, Module *M, ReturnInst *RI, const TargetLoweringBase *TLI, const Triple &Trip, AllocaInst *&AI, Value *&StackGuardVar) argument
317 AllocaInst *AI = 0; // Place on stack that stores the stack guard. local
[all...]
H A DStackColoring.cpp543 const AllocaInst *AI= cast<AllocaInst>(V); local
544 if (!Allocas.count(AI))
547 MMO->setValue(Allocas[AI]);
/external/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp88 virtual unsigned TargetMaterializeAlloca(const AllocaInst *AI);
295 unsigned PPCFastISel::TargetMaterializeAlloca(const AllocaInst *AI) { argument
296 return AI && 0;
/external/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp137 static bool CanTRE(AllocaInst *AI) { argument
143 BasicBlock *BB = AI->getParent();
145 isa<ConstantInt>(AI->getArraySize());
194 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) {
195 CanTRETailMarkedCall &= CanTRE(AI);
196 PointerMayBeCaptured(AI, &ACT);
315 for (Function::arg_iterator AI = F->arg_begin(); &*AI != Arg; ++AI)
526 if (AllocaInst *AI
[all...]
/external/llvm/lib/IR/
H A DFunction.cpp71 Function::const_arg_iterator AI = F->arg_begin(); local
73 for (; &*AI != this; ++AI)
H A DMetadata.cpp466 int AI = 0; local
470 while (AI < AN && BI < BN) {
471 ConstantInt *ALow = cast<ConstantInt>(A->getOperand(2 * AI));
475 addRange(EndPoints, ALow, cast<ConstantInt>(A->getOperand(2 * AI + 1)));
476 ++AI;
482 while (AI < AN) {
483 addRange(EndPoints, cast<ConstantInt>(A->getOperand(2 * AI)),
484 cast<ConstantInt>(A->getOperand(2 * AI + 1)));
485 ++AI;
/external/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.getContext());
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...]
/external/clang/lib/CodeGen/
H A DCGVTables.cpp250 llvm::Function::arg_iterator AI = Fn->arg_begin(); local
252 ++AI;
256 llvm::Value *ThisPtr = &*AI;
/external/llvm/lib/Analysis/
H A DLint.cpp225 CallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end(); local
226 for (; AI != AE; ++AI) {
227 Value *Actual = *AI;
239 if (AI != BI && (*BI)->getType()->isPointerTy()) {
240 AliasAnalysis::AliasResult Result = AA->alias(*AI, *BI);
259 for (CallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end();
260 AI != AE; ++AI) {
261 Value *Obj = findValue(*AI, /*OffsetO
[all...]
/external/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp355 Function::arg_iterator AI = newFunction->arg_begin(); local
367 GetElementPtrInst::Create(AI, Idx, "gep_" + inputs[i]->getName(), TI);
370 RewriteVal = AI++;
382 AI = newFunction->arg_begin();
383 for (unsigned i = 0, e = inputs.size(); i != e; ++i, ++AI)
384 AI->setName(inputs[i]->getName());
385 for (unsigned i = 0, e = outputs.size(); i != e; ++i, ++AI)
386 AI->setName(outputs[i]->getName()+".out");
H A DLocal.cpp891 if (AllocaInst *AI = dyn_cast<AllocaInst>(V)) {
897 if (AI->getAlignment() >= PrefAlign)
898 return AI->getAlignment();
899 AI->setAlignment(PrefAlign);
1056 if (AllocaInst *AI = dyn_cast_or_null<AllocaInst>(DDI->getAddress())) {
1060 for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end();
1087 bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress, argument
1089 DbgDeclareInst *DDI = FindAllocaDbgDeclare(AI);
1102 Type *Int64Ty = Type::getInt64Ty(AI
[all...]

Completed in 412 milliseconds

123