/external/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 105 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 D | FunctionAttrs.cpp | 288 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); local 290 PI != PE; ++PI, ++AI) { 291 if (AI == AE) { 297 Uses.push_back(AI);
|
H A D | Inliner.cpp | 143 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; local 148 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); 149 if (ATy == 0 || AI->isArrayAllocation()) 166 if (AvailableAlloca->getParent() != AI->getParent()) 174 // Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare 176 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: " 179 AI->replaceAllUsesWith(AvailableAlloca); 180 AI->eraseFromParent(); 196 AllocasForType.push_back(AI); 197 UsedAllocas.insert(AI); [all...] |
H A D | ArgumentPromotion.cpp | 653 CallSite::arg_iterator AI = CS.arg_begin(); local 656 I != E; ++I, ++AI, ++ArgIndex) 658 Args.push_back(*AI); // Unmodified argument 671 Value *Idx = GetElementPtrInst::Create(*AI, Idxs, 672 (*AI)->getName()+"."+utostr(i), 685 Value *V = *AI; 722 for (; AI != CS.arg_end(); ++AI, ++ArgIndex) { 723 Args.push_back(*AI);
|
/external/clang/lib/CodeGen/ |
H A D | CGRecordLayout.h | 110 const AccessInfo &AI = getComponent(i); local 111 AccessedSize += AI.TargetBitWidth; 114 assert(AI.TargetBitWidth > 0); 117 assert(AI.FieldBitStart + AI.TargetBitWidth <= AI.AccessWidth); 120 assert(AI.TargetBitWidth + AI.TargetBitOffset <= Size);
|
H A D | CGVTables.cpp | 262 llvm::Function::arg_iterator AI = Fn->arg_begin(); local 264 ++AI; 268 llvm::Value *ThisPtr = &*AI;
|
H A D | CGRecordLayoutBuilder.cpp | 326 CGBitFieldInfo::AccessInfo &AI = Components[NumComponents++]; 327 AI.FieldIndex = 0; 336 AI.FieldByteOffset = Types.getContext().toCharUnitsFromBits( 339 AI.FieldByteOffset = Types.getContext().toCharUnitsFromBits(AccessStart); 341 AI.FieldBitStart = AccessBitsInFieldStart - AccessStart; 342 AI.AccessWidth = AccessWidth; 343 AI.AccessAlignment = Types.getContext().toCharUnitsFromBits( 345 AI.TargetBitOffset = AccessedTargetBits; 346 AI.TargetBitWidth = AccessBitsInFieldSize; 349 AccessedTargetBits += AI 1090 const CGBitFieldInfo::AccessInfo &AI = Info.getComponent(i); local 1150 const AccessInfo &AI = getComponent(i); local [all...] |
/external/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 120 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) { 121 if (AI->isArrayAllocation()) 126 if (ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) 146 AllocaInst *AI = 0; // Place on stack that stores the stack guard. local 178 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt); 181 Value *Args[] = { LI, AI }; 229 LoadInst *LI2 = new LoadInst(AI, "", true, BB);
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | ProfilingUtils.cpp | 67 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 D | BugDriver.h | 154 void switchToInterpreter(AbstractInterpreter *AI) { argument 155 Interpreter = AI; 176 AbstractInterpreter *AI,
|
H A D | ExecutionDriver.cpp | 297 AbstractInterpreter *AI, 299 if (AI == 0) AI = Interpreter; 300 assert(AI && "Interpreter should have been created already!"); 342 int RetVal = AI->ExecuteProgram(BitcodeFile, InputArgv, InputFile, OutputFile, 293 executeProgram(const Module *Program, std::string OutputFile, std::string BitcodeFile, const std::string &SharedObj, AbstractInterpreter *AI, std::string *Error) const argument
|
H A D | Miscompilation.cpp | 334 AbstractInterpreter *AI = BD.switchToSafeInterpreter(); local 343 BD.switchToInterpreter(AI); 365 BD.switchToInterpreter(AI);
|
/external/llvm/unittests/Analysis/ |
H A D | ScalarEvolutionTest.cpp | 108 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/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 29 static Instruction *removeDeadAlloca(InstCombiner &IC, AllocaInst &AI) { argument 31 Worklist.push_back(&AI); 88 return IC.ReplaceInstUsesWith(AI, UndefValue::get(AI.getType())); 91 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { argument 95 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); 96 if (AI.getArraySize()->getType() != IntPtrTy) { 97 Value *V = Builder->CreateIntCast(AI.getArraySize(), 99 AI.setOperand(0, V); 100 return &AI; [all...] |
H A D | InstCombineCalls.cpp | 291 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(Op1)) { 293 if (AI->getAllocatedType()->isSized()) { 294 Size = TD->getTypeAllocSize(AI->getAllocatedType()); 295 if (AI->isArrayAllocation()) { 296 const ConstantInt *C = dyn_cast<ConstantInt>(AI->getArraySize()); 1056 CallSite::arg_iterator AI = CS.arg_begin(); local 1057 for (unsigned i = 0, e = NumCommonArgs; i != e; ++i, ++AI) { 1059 Type *ActTy = (*AI)->getType(); 1145 AI = CS.arg_begin(); 1146 for (unsigned i = 0; i != NumCommonArgs; ++i, ++AI) { [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | TailRecursionElimination.cpp | 124 static bool AllocaMightEscapeToCalls(AllocaInst *AI) { argument 136 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { 137 RetVal |= AllocaMightEscapeToCalls(AI); 143 !isa<ConstantInt>(AI->getArraySize())) 279 for (Function::arg_iterator AI = F->arg_begin(); &*AI != Arg; ++AI) 489 if (AllocaInst *AI = dyn_cast<AllocaInst>(OEBI++)) 490 if (isa<ConstantInt>(AI->getArraySize())) 491 AI [all...] |
H A D | SCCP.cpp | 1106 for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); 1107 AI != E; ++AI) { 1108 LatticeVal State = getValueState(*AI); 1136 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); 1137 AI != E; ++AI, ++CAI) { 1140 if (AI->hasByValAttr() && !F->onlyReadsMemory()) { 1141 markOverdefined(AI); 1145 if (StructType *STy = dyn_cast<StructType>(AI 1148 mergeInValue(getStructValueState(AI, i), AI, CallArg); local [all...] |
/external/llvm/lib/VMCore/ |
H A D | Function.cpp | 70 Function::const_arg_iterator AI = F->arg_begin(); local 72 for (; &*AI != this; ++AI)
|
/external/clang/lib/Frontend/ |
H A D | PrintPreprocessedOutput.cpp | 41 MacroInfo::arg_iterator AI = MI.arg_begin(), E = MI.arg_end(); local 42 for (; AI+1 != E; ++AI) { 43 OS << (*AI)->getName(); 48 if ((*AI)->getName() == "__VA_ARGS__") 51 OS << (*AI)->getName();
|
/external/llvm/lib/Analysis/ |
H A D | Lint.cpp | 225 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...] |
H A D | ValueTracking.cpp | 598 AllocaInst *AI = cast<AllocaInst>(V); local 599 unsigned Align = AI->getAlignment(); 601 Align = TD->getABITypeAlignment(AI->getType()->getElementType());
|
/external/llvm/lib/Target/ |
H A D | TargetData.cpp | 450 const TargetAlignElem &AI = Alignments[i]; local 451 OS << '-' << (char)AI.AlignType << AI.TypeBitWidth << ':' 452 << AI.ABIAlign*8 << ':' << AI.PrefAlign*8;
|
/external/llvm/lib/Transforms/Utils/ |
H A D | CodeExtractor.cpp | 308 Function::arg_iterator AI = newFunction->arg_begin(); local 320 GetElementPtrInst::Create(AI, Idx, "gep_" + inputs[i]->getName(), TI); 323 RewriteVal = AI++; 335 AI = newFunction->arg_begin(); 336 for (unsigned i = 0, e = inputs.size(); i != e; ++i, ++AI) 337 AI->setName(inputs[i]->getName()); 338 for (unsigned i = 0, e = outputs.size(); i != e; ++i, ++AI) 339 AI->setName(outputs[i]->getName()+".out");
|
H A D | InlineFunction.cpp | 423 static bool hasLifetimeMarkers(AllocaInst *AI) { argument 424 Type *Int8PtrTy = Type::getInt8PtrTy(AI->getType()->getContext()); 425 if (AI->getType() == Int8PtrTy) 426 return isUsedByLifetimeMarker(AI); 429 for (Value::use_iterator I = AI->use_begin(), E = AI->use_end(); I != E; 432 if (I->stripPointerCasts() != AI) continue; 576 CallSite::arg_iterator AI = CS.arg_begin(); local 579 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) { 580 Value *ActualArg = *AI; 626 AllocaInst *AI = dyn_cast<AllocaInst>(I++); local 664 AllocaInst *AI = IFI.StaticAllocas[ai]; local [all...] |
H A D | PromoteMemoryToRegister.cpp | 82 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...] |