/external/llvm/lib/Transforms/Utils/ |
InstructionNamer.cpp | 35 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");
|
MetaRenamer.cpp | 74 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->setName("arg") [all...] |
Mem2Reg.cpp | 75 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? 76 if (isAllocaPromotable(AI, DL)) 77 Allocas.push_back(AI);
|
PromoteMemoryToRegister.cpp | 94 bool analyzeAlloca(AllocaInst &AI) { 97 AllocaTy = AI.getAllocatedType(); 98 enqueueUsers(AI); 115 DbgDeclare = FindAllocaDbgDeclare(&AI); 347 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, 349 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, 365 static void removeDeadInstructions(AllocaInst *AI, 371 if (I == AI) 406 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, 418 for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end(); UI != E;) 1114 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); local [all...] |
InlineFunction.cpp | 433 static bool hasLifetimeMarkers(AllocaInst *AI) { 434 Type *Int8PtrTy = Type::getInt8PtrTy(AI->getType()->getContext()); 435 if (AI->getType() == Int8PtrTy) 436 return isUsedByLifetimeMarker(AI); 439 for (Value::use_iterator I = AI->use_begin(), E = AI->use_end(); I != E; 442 if (I->stripPointerCasts() != AI) continue; 586 CallSite::arg_iterator AI = CS.arg_begin(); 589 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) { 590 Value *ActualArg = *AI; [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-atomic-private.hh | 59 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V)) 75 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V)) 92 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V)) 104 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V)) 114 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V) [all...] |
/external/harfbuzz_ng/src/ |
hb-atomic-private.hh | 51 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V)) 67 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V)) 84 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V)) 96 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V)) 106 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V) [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
ProfilingUtils.cpp | 67 Function::arg_iterator AI; 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->use_empty()) [all...] |
/external/llvm/lib/CodeGen/ |
MachineCopyPropagation.cpp | 68 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.isValid(); ++AI) [all...] |
StackProtector.cpp | 86 bool HasAddressTaken(const Instruction *AI); 171 bool StackProtector::HasAddressTaken(const Instruction *AI) { 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->getAllocatedType(), Strong) [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
PromoteMemToReg.h | 33 bool isAllocaPromotable(const AllocaInst *AI, const DataLayout *DL);
|
/external/llvm/lib/Target/Hexagon/ |
HexagonRemoveSZExtArgs.cpp | 57 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE; 58 ++AI, ++Idx) { 60 Argument* Arg = AI;
|
/external/llvm/tools/opt/ |
AnalysisWrappers.cpp | 48 for (CallSite::arg_iterator AI = CS.arg_begin(), 49 E = CS.arg_end(); AI != E; ++AI) { 50 if (!isa<Constant>(*AI)) continue;
|
/external/llvm/lib/DebugInfo/ |
DWARFDebugLoc.cpp | 47 RelocAddrMap::const_iterator AI = RelocMap.find(Offset); 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;
|
DWARFFormValue.cpp | 94 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); 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); 132 if (AI != cu->getRelocMap()->end()) 133 Value.uval += AI->second.second; 144 RelocAddrMap::const_iterator AI 146 if (AI != cu->getRelocMap()->end()) { 147 const std::pair<uint8_t, int64_t> &R = AI->second; 170 RelocAddrMap::const_iterator AI [all...] |
/external/llvm/unittests/Transforms/Utils/ |
IntegerDivision.cpp | 36 Function::arg_iterator AI = F->arg_begin(); 37 Value *A = AI++; 38 Value *B = AI++; 66 Function::arg_iterator AI = F->arg_begin(); 67 Value *A = AI++; 68 Value *B = AI++; 96 Function::arg_iterator AI = F->arg_begin(); 97 Value *A = AI++; 98 Value *B = AI++; 126 Function::arg_iterator AI = F->arg_begin() [all...] |
/external/llvm/lib/Transforms/Scalar/ |
ScalarReplAggregates.cpp | 101 AllocaInst *AI; 126 explicit AllocaInfo(AllocaInst *ai) 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, [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 145 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, 148 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete)) 153 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { 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.getArraySize())) [all...] |
/external/llvm/lib/Transforms/IPO/ |
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(); 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->replaceAllUsesWith(V) [all...] |
Inliner.cpp | 173 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; 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->getAlignment()) [all...] |
/external/llvm/include/llvm/ |
PassSupport.h | 259 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/MC/ |
MCModule.cpp | 89 for (AtomListTy::iterator AI = atom_begin(), 91 AI != AE; ++AI) 92 delete *AI;
|
MCObjectDisassembler.cpp | 123 for (MCModule::atom_iterator AI = Module->atom_begin(), 125 AI != AE; ++AI) { 126 MCTextAtom *TA = dyn_cast<MCTextAtom>(*AI); 159 for (MCModule::atom_iterator AI = Module->atom_begin(), 161 AI != AE; ++AI) { 162 MCTextAtom *TA = dyn_cast<MCTextAtom>(*AI);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
DirectIvarAssignment.cpp | 168 AI = D->specific_attr_begin<AnnotateAttr>(), 169 AE = D->specific_attr_end<AnnotateAttr>(); AI != AE; ++AI) { 170 const AnnotateAttr *Ann = *AI; 238 AI = M->specific_attr_begin<AnnotateAttr>(), 239 AE = M->specific_attr_end<AnnotateAttr>(); AI != AE; ++AI) { 240 const AnnotateAttr *Ann = *AI;
|
/external/llvm/lib/Analysis/ |
CodeMetrics.cpp | 59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) { 60 if (!AI->isStaticAlloca())
|