/external/llvm/include/llvm/Transforms/Utils/ |
H A D | ASanStackFrameLayout.h | 34 AllocaInst *AI; // The actual AllocaInst. member in struct:llvm::ASanStackVariableDescription
|
/external/llvm/lib/DebugInfo/ |
H A D | DWARFDebugLoc.cpp | 48 RelocAddrMap::const_iterator AI = RelocMap.find(Offset); local 51 if (AI != RelocMap.end()) 52 E.Begin += AI->second.second; 54 AI = RelocMap.find(Offset); 57 if (AI != RelocMap.end()) 58 E.End += AI->second.second;
|
H A D | DWARFFormValue.cpp | 146 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...] |
H A D | DWARFDebugLine.cpp | 299 RelocAddrMap::const_iterator AI = RMap->find(*offset_ptr); local 300 if (AI != RMap->end()) { 301 const std::pair<uint8_t, int64_t> &R = AI->second;
|
/external/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCUtil.cpp | 84 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 D | IntegerDivision.cpp | 37 Function::arg_iterator AI = F->arg_begin(); local 38 Value *A = AI++; 39 Value *B = AI++; 67 Function::arg_iterator AI = F->arg_begin(); local 68 Value *A = AI++; 69 Value *B = AI++; 97 Function::arg_iterator AI = F->arg_begin(); local 98 Value *A = AI++; 99 Value *B = AI++; 127 Function::arg_iterator AI local 158 Function::arg_iterator AI = F->arg_begin(); local 188 Function::arg_iterator AI = F->arg_begin(); local 218 Function::arg_iterator AI = F->arg_begin(); local 248 Function::arg_iterator AI = F->arg_begin(); local [all...] |
/external/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 106 CallSite::arg_iterator AI = CS.arg_begin(); 109 ++i, ++AI, ++Arg) { 115 Constant *C = dyn_cast<Constant>(*AI); 120 } else if (*AI == &*Arg) { 135 Function::arg_iterator AI = F.arg_begin(); local 136 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { 138 if (ArgumentConstants[i].second || AI->use_empty() || 139 AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory())) 143 if (!V) V = UndefValue::get(AI [all...] |
H A D | Inliner.cpp | 182 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; local 187 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); 188 if (!ATy || AI->isArrayAllocation()) 203 unsigned Align1 = AI->getAlignment(), 213 if (AvailableAlloca->getParent() != AI->getParent()) 221 // Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare 223 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: " 226 AI->replaceAllUsesWith(AvailableAlloca); 231 unsigned TypeAlign = DL->getABITypeAlignment(AI->getAllocatedType()); 238 AvailableAlloca->setAlignment(AI [all...] |
H A D | ArgumentPromotion.cpp | 660 CallSite::arg_iterator AI = CS.arg_begin(); local 663 I != E; ++I, ++AI, ++ArgIndex) 665 Args.push_back(*AI); // Unmodified argument 680 Value *Idx = GetElementPtrInst::Create(*AI, Idxs, 681 (*AI)->getName()+"."+utostr(i), 694 Value *V = *AI; 728 for (; AI != CS.arg_end(); ++AI, ++ArgIndex) { 729 Args.push_back(*AI);
|
H A D | FunctionAttrs.cpp | 356 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); variable 358 PI != PE; ++PI, ++AI) { 359 if (AI == AE) { 365 Uses.push_back(AI); 480 Function::arg_iterator AI = F->arg_begin(), AE = F->arg_end(); local 482 for (CallSite::arg_iterator A = B; A != E; ++A, ++AI) { 484 if (AI == AE) { 490 if (SCCNodes.count(AI))
|
/external/clang/lib/CodeGen/ |
H A D | CGOpenMPRuntime.cpp | 85 llvm::AllocaInst *AI = CGF.CreateTempAlloca(IdentTy, ".kmpc_loc.addr"); local 86 AI->setAlignment(CGM.getDataLayout().getPrefTypeAlignment(IdentTy)); 87 OpenMPLocMap[CGF.CurFn] = AI; 88 LocValue = AI;
|
H A D | CGVTables.cpp | 154 llvm::Function::arg_iterator AI = Fn->arg_begin(); local 156 ++AI; 160 llvm::Value *ThisPtr = &*AI;
|
/external/llvm/lib/Target/X86/ |
H A D | X86AtomicExpandPass.cpp | 59 bool shouldExpandAtomicRMW(AtomicRMWInst *AI); 61 bool expandAtomicRMW(AtomicRMWInst *AI); 89 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst)) 90 MadeChange |= expandAtomicRMW(AI); 120 bool X86AtomicExpandPass::shouldExpandAtomicRMW(AtomicRMWInst *AI) { argument 124 if (needsCmpXchgNb(AI->getType())) 127 if (AI->getType()->getPrimitiveSizeInBits() > NativeWidth) 130 AtomicRMWInst::BinOp Op = AI->getOperation(); 144 return !AI->use_empty(); 164 if (AtomicRMWInst *AI 209 expandAtomicRMW(AtomicRMWInst *AI) argument 275 AtomicRMWInst *AI = local [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 | 299 AbstractInterpreter *AI, 301 if (!AI) AI = Interpreter; 302 assert(AI && "Interpreter should have been created already!"); 347 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
|
/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/CodeGen/ |
H A D | AtomicExpandLoadLinkedPass.cpp | 45 bool expandAtomicRMW(AtomicRMWInst *AI); 84 if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst)) 85 MadeChange |= expandAtomicRMW(AI); 125 AtomicRMWInst *AI = local 131 return expandAtomicRMW(AI); 134 bool AtomicExpandLoadLinked::expandAtomicRMW(AtomicRMWInst *AI) { argument 135 AtomicOrdering Order = AI->getOrdering(); 136 Value *Addr = AI->getPointerOperand(); 137 BasicBlock *BB = AI->getParent(); 155 BasicBlock *ExitBB = BB->splitBasicBlock(AI, "atomicrm [all...] |
H A D | StackProtector.cpp | 57 StackProtector::getSSPLayout(const AllocaInst *AI) const { 58 return AI ? Layout.lookup(AI) : SSPLK_None; 153 bool StackProtector::HasAddressTaken(const Instruction *AI) { argument 154 for (const User *U : AI->users()) { 156 if (AI == SI->getValueOperand()) 159 if (AI == SI->getOperand(0)) 217 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) { 218 if (AI->isArrayAllocation()) { 225 dyn_cast<ConstantInt>(AI 336 CreatePrologue(Function *F, Module *M, ReturnInst *RI, const TargetLoweringBase *TLI, const Triple &Trip, AllocaInst *&AI, Value *&StackGuardVar) argument 361 AI); local 376 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. local [all...] |
H A D | StackColoring.cpp | 522 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); local 523 if (!AI) 526 if (!Allocas.count(AI)) 529 MMO->setValue(Allocas[AI]);
|
/external/llvm/lib/IR/ |
H A D | Function.cpp | 71 Function::const_arg_iterator AI = F->arg_begin(); local 73 for (; &*AI != this; ++AI)
|
H A D | Metadata.cpp | 469 int AI = 0; local 473 while (AI < AN && BI < BN) { 474 ConstantInt *ALow = cast<ConstantInt>(A->getOperand(2 * AI)); 478 addRange(EndPoints, ALow, cast<ConstantInt>(A->getOperand(2 * AI + 1))); 479 ++AI; 485 while (AI < AN) { 486 addRange(EndPoints, cast<ConstantInt>(A->getOperand(2 * AI)), 487 cast<ConstantInt>(A->getOperand(2 * AI + 1))); 488 ++AI;
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 157 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, argument 160 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete)) 165 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { argument 169 Type *IntPtrTy = DL->getIntPtrType(AI.getType()); 170 if (AI.getArraySize()->getType() != IntPtrTy) { 171 Value *V = Builder->CreateIntCast(AI.getArraySize(), 173 AI.setOperand(0, V); 174 return &AI; 179 if (AI.isArrayAllocation()) { // Check C != 1 180 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI [all...] |
/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...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | CodeExtractor.cpp | 356 Function::arg_iterator AI = newFunction->arg_begin(); local 368 GetElementPtrInst::Create(AI, Idx, "gep_" + inputs[i]->getName(), TI); 371 RewriteVal = AI++; 383 AI = newFunction->arg_begin(); 384 for (unsigned i = 0, e = inputs.size(); i != e; ++i, ++AI) 385 AI->setName(inputs[i]->getName()); 386 for (unsigned i = 0, e = outputs.size(); i != e; ++i, ++AI) 387 AI->setName(outputs[i]->getName()+".out");
|
H A D | PromoteMemoryToRegister.cpp | 60 bool llvm::isAllocaPromotable(const AllocaInst *AI) { argument 63 unsigned AS = AI->getType()->getAddressSpace(); 66 for (const User *U : AI->users()) { 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 (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { 158 DbgDeclare = FindAllocaDbgDeclare(AI); 315 removeLifetimeIntrinsicUsers(AllocaInst *AI) argument 347 rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI, DominatorTree &DT, AliasSetTracker *AST) argument 444 promoteSingleBlockAlloca(AllocaInst *AI, const AllocaInfo &Info, LargeBlockInfo &LBI, AliasSetTracker *AST) argument 530 AllocaInst *AI = Allocas[AllocaNum]; local 767 ComputeLiveInBlocks( AllocaInst *AI, AllocaInfo &Info, const SmallPtrSet<BasicBlock *, 32> &DefBlocks, SmallPtrSet<BasicBlock *, 32> &LiveInBlocks) argument 842 DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, AllocaInfo &Info) argument 1017 DenseMap<AllocaInst *, unsigned>::iterator AI = AllocaLookup.find(Src); local [all...] |