/external/llvm/lib/Transforms/Instrumentation/ |
D | ProfilingUtils.cpp | 67 Function::arg_iterator AI; in InsertProfilingInitCall() local 71 AI = MainFn->arg_begin(); ++AI; in InsertProfilingInitCall() 72 if (AI->getType() != ArgVTy) { in InsertProfilingInitCall() 73 Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy, in InsertProfilingInitCall() 76 CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall)); in InsertProfilingInitCall() 78 InitCall->setArgOperand(1, AI); in InsertProfilingInitCall() 83 AI = MainFn->arg_begin(); in InsertProfilingInitCall() 86 if (!AI->getType()->isIntegerTy(32)) { in InsertProfilingInitCall() 88 if (!AI->use_empty()) { in InsertProfilingInitCall() 89 opcode = CastInst::getCastOpcode(InitCall, true, AI->getType(), true); in InsertProfilingInitCall() [all …]
|
D | AddressSanitizer.cpp | 154 uint64_t getAllocaSizeInBytes(AllocaInst *AI) { in getAllocaSizeInBytes() 155 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes() 163 uint64_t getAlignedAllocaSize(AllocaInst *AI) { in getAlignedAllocaSize() 164 uint64_t SizeInBytes = getAllocaSizeInBytes(AI); in getAlignedAllocaSize() 756 AllocaInst *AI = AllocaVec[i]; in PoisonStack() local 757 uint64_t SizeInBytes = getAllocaSizeInBytes(AI); in PoisonStack() 758 uint64_t AlignedSize = getAlignedAllocaSize(AI); in PoisonStack() 835 AllocaInst *AI = dyn_cast<AllocaInst>(BI); in poisonStackInFunction() local 836 if (!AI) continue; in poisonStackInFunction() 837 if (AI->isArrayAllocation()) continue; in poisonStackInFunction() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 82 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument 87 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end(); in isAllocaPromotable() 96 if (SI->getOperand(0) == AI) in isAllocaPromotable() 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, AllocaInfo &Info, 317 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca() 323 for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end(); in AnalyzeAlloca() 348 DbgDeclare = FindAllocaDbgDeclare(AI); in AnalyzeAlloca() [all …]
|
D | InstructionNamer.cpp | 35 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); in runOnFunction() local 36 AI != AE; ++AI) in runOnFunction() 37 if (!AI->hasName() && !AI->getType()->isVoidTy()) in runOnFunction() 38 AI->setName("arg"); in runOnFunction()
|
D | InlineFunction.cpp | 423 static bool hasLifetimeMarkers(AllocaInst *AI) { in hasLifetimeMarkers() argument 424 Type *Int8PtrTy = Type::getInt8PtrTy(AI->getType()->getContext()); in hasLifetimeMarkers() 425 if (AI->getType() == Int8PtrTy) in hasLifetimeMarkers() 426 return isUsedByLifetimeMarker(AI); in hasLifetimeMarkers() 429 for (Value::use_iterator I = AI->use_begin(), E = AI->use_end(); I != E; in hasLifetimeMarkers() 432 if (I->stripPointerCasts() != AI) continue; in hasLifetimeMarkers() 576 CallSite::arg_iterator AI = CS.arg_begin(); in InlineFunction() local 579 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) { in InlineFunction() 580 Value *ActualArg = *AI; in InlineFunction() 593 MustClearTailCallFlags |= ActualArg != *AI; in InlineFunction() [all …]
|
D | LowerInvoke.cpp | 291 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); in splitLiveRangesLiveAcrossInvokes() local 292 AI != E; ++AI) { in splitLiveRangesLiveAcrossInvokes() 293 Type *Ty = AI->getType(); in splitLiveRangesLiveAcrossInvokes() 298 Instruction *EI = ExtractValueInst::Create(AI, 0, "",AfterAllocaInsertPt); in splitLiveRangesLiveAcrossInvokes() 299 Instruction *NI = InsertValueInst::Create(AI, EI, 0); in splitLiveRangesLiveAcrossInvokes() 301 AI->replaceAllUsesWith(NI); in splitLiveRangesLiveAcrossInvokes() 303 EI->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes() 304 NI->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes() 310 AI, AI->getType(), AI->getName()+".tmp", AfterAllocaInsertPt); in splitLiveRangesLiveAcrossInvokes() 311 AI->replaceAllUsesWith(NC); in splitLiveRangesLiveAcrossInvokes() [all …]
|
D | Mem2Reg.cpp | 72 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in INITIALIZE_PASS_DEPENDENCY() local 73 if (isAllocaPromotable(AI)) in INITIALIZE_PASS_DEPENDENCY() 74 Allocas.push_back(AI); in INITIALIZE_PASS_DEPENDENCY()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 88 AllocaInst *AI; member 114 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false), in AllocaInfo() 125 bool isSafeAllocaToScalarRepl(AllocaInst *AI); 138 void DoScalarReplacement(AllocaInst *AI, 142 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset, 144 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, 146 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, 148 void RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI, 152 AllocaInst *AI, 154 void RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI, [all …]
|
D | SCCP.cpp | 1106 for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); in visitCallSite() local 1107 AI != E; ++AI) { in visitCallSite() 1108 LatticeVal State = getValueState(*AI); in visitCallSite() 1136 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); in visitCallSite() local 1137 AI != E; ++AI, ++CAI) { in visitCallSite() 1140 if (AI->hasByValAttr() && !F->onlyReadsMemory()) { in visitCallSite() 1141 markOverdefined(AI); in visitCallSite() 1145 if (StructType *STy = dyn_cast<StructType>(AI->getType())) { in visitCallSite() 1148 mergeInValue(getStructValueState(AI, i), AI, CallArg); in visitCallSite() 1151 mergeInValue(AI, getValueState(*CAI)); in visitCallSite() [all …]
|
D | TailRecursionElimination.cpp | 124 static bool AllocaMightEscapeToCalls(AllocaInst *AI) { in AllocaMightEscapeToCalls() argument 136 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { in CheckForEscapingAllocas() local 137 RetVal |= AllocaMightEscapeToCalls(AI); in CheckForEscapingAllocas() 143 !isa<ConstantInt>(AI->getArraySize())) in CheckForEscapingAllocas() 279 for (Function::arg_iterator AI = F->arg_begin(); &*AI != Arg; ++AI) in isDynamicConstant() local 489 if (AllocaInst *AI = dyn_cast<AllocaInst>(OEBI++)) in EliminateRecursiveTailCall() local 490 if (isa<ConstantInt>(AI->getArraySize())) in EliminateRecursiveTailCall() 491 AI->moveBefore(NEBI); in EliminateRecursiveTailCall()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 29 static Instruction *removeDeadAlloca(InstCombiner &IC, AllocaInst &AI) { in removeDeadAlloca() argument 31 Worklist.push_back(&AI); in removeDeadAlloca() 88 return IC.ReplaceInstUsesWith(AI, UndefValue::get(AI.getType())); in removeDeadAlloca() 91 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() argument 95 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); in visitAllocaInst() 96 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst() 97 Value *V = Builder->CreateIntCast(AI.getArraySize(), in visitAllocaInst() 99 AI.setOperand(0, V); in visitAllocaInst() 100 return &AI; in visitAllocaInst() 105 if (AI.isArrayAllocation()) { // Check C != 1 in visitAllocaInst() [all …]
|
/external/icu4c/data/unidata/ |
D | LineBreak.txt | 22 # "BB", "BA", "SA", "AI", "B2" 89 00A7..00A8;AI 91 00AA;AI 98 00B2..00B3;AI 101 00B6..00BA;AI 103 00BC..00BE;AI 106 00D7;AI 108 00F7;AI 110 02C7;AI 112 02C9..02CB;AI [all …]
|
/external/clang/lib/CodeGen/ |
D | CGRecordLayout.h | 110 const AccessInfo &AI = getComponent(i); in CGBitFieldInfo() local 111 AccessedSize += AI.TargetBitWidth; in CGBitFieldInfo() 114 assert(AI.TargetBitWidth > 0); in CGBitFieldInfo() 117 assert(AI.FieldBitStart + AI.TargetBitWidth <= AI.AccessWidth); in CGBitFieldInfo() 120 assert(AI.TargetBitWidth + AI.TargetBitOffset <= Size); in CGBitFieldInfo()
|
D | CGCall.cpp | 464 llvm::Function::arg_iterator AI) { in ExpandTypeFromArgs() argument 474 AI = ExpandTypeFromArgs(EltTy, LV, AI); in ExpandTypeFromArgs() 498 AI = ExpandTypeFromArgs(LargestFD->getType(), SubLV, AI); in ExpandTypeFromArgs() 508 AI = ExpandTypeFromArgs(FT, SubLV, AI); in ExpandTypeFromArgs() 514 EmitStoreThroughLValue(RValue::get(AI++), MakeAddrLValue(RealAddr, EltTy)); in ExpandTypeFromArgs() 516 EmitStoreThroughLValue(RValue::get(AI++), MakeAddrLValue(ImagAddr, EltTy)); in ExpandTypeFromArgs() 518 EmitStoreThroughLValue(RValue::get(AI), LV); in ExpandTypeFromArgs() 519 ++AI; in ExpandTypeFromArgs() 522 return AI; in ExpandTypeFromArgs() 963 const ABIArgInfo &AI = it->info; in ConstructAttributeList() local [all …]
|
D | CGRecordLayoutBuilder.cpp | 326 CGBitFieldInfo::AccessInfo &AI = Components[NumComponents++]; in MakeInfo() local 327 AI.FieldIndex = 0; in MakeInfo() 336 AI.FieldByteOffset = Types.getContext().toCharUnitsFromBits( in MakeInfo() 339 AI.FieldByteOffset = Types.getContext().toCharUnitsFromBits(AccessStart); in MakeInfo() 341 AI.FieldBitStart = AccessBitsInFieldStart - AccessStart; in MakeInfo() 342 AI.AccessWidth = AccessWidth; in MakeInfo() 343 AI.AccessAlignment = Types.getContext().toCharUnitsFromBits( in MakeInfo() 345 AI.TargetBitOffset = AccessedTargetBits; in MakeInfo() 346 AI.TargetBitWidth = AccessBitsInFieldSize; in MakeInfo() 349 AccessedTargetBits += AI.TargetBitWidth; in MakeInfo() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 105 CallSite::arg_iterator AI = CS.arg_begin(); in PropagateConstantsIntoArguments() local 108 ++i, ++AI, ++Arg) { in PropagateConstantsIntoArguments() 114 Constant *C = dyn_cast<Constant>(*AI); in PropagateConstantsIntoArguments() 119 } else if (*AI == &*Arg) { in PropagateConstantsIntoArguments() 134 Function::arg_iterator AI = F.arg_begin(); in PropagateConstantsIntoArguments() local 135 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { in PropagateConstantsIntoArguments() 137 if (ArgumentConstants[i].second || AI->use_empty() || in PropagateConstantsIntoArguments() 138 (AI->hasByValAttr() && !F.onlyReadsMemory())) in PropagateConstantsIntoArguments() 142 if (V == 0) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments() 143 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
|
D | Inliner.cpp | 143 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; in InlineCallIfPossible() local 148 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() 149 if (ATy == 0 || AI->isArrayAllocation()) in InlineCallIfPossible() 166 if (AvailableAlloca->getParent() != AI->getParent()) in InlineCallIfPossible() 176 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: " in InlineCallIfPossible() 179 AI->replaceAllUsesWith(AvailableAlloca); in InlineCallIfPossible() 180 AI->eraseFromParent(); in InlineCallIfPossible() 196 AllocasForType.push_back(AI); in InlineCallIfPossible() 197 UsedAllocas.insert(AI); in InlineCallIfPossible()
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 120 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) { in RequiresStackProtector() local 121 if (AI->isArrayAllocation()) in RequiresStackProtector() 126 if (ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) in RequiresStackProtector() 146 AllocaInst *AI = 0; // Place on stack that stores the stack guard. in InsertStackProtectors() local 178 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt); in InsertStackProtectors() 181 Value *Args[] = { LI, AI }; in InsertStackProtectors() 229 LoadInst *LI2 = new LoadInst(AI, "", true, BB); in InsertStackProtectors()
|
D | SjLjEHPrepare.cpp | 261 AI = F.arg_begin(), AE = F.arg_end(); AI != AE; ++AI) { in lowerIncomingArguments() local 262 Type *Ty = AI->getType(); in lowerIncomingArguments() 268 Instruction *EI = ExtractValueInst::Create(AI, 0, "", AfterAllocaInsPt); in lowerIncomingArguments() 269 Instruction *NI = InsertValueInst::Create(AI, EI, 0); in lowerIncomingArguments() 271 AI->replaceAllUsesWith(NI); in lowerIncomingArguments() 274 EI->setOperand(0, AI); in lowerIncomingArguments() 275 NI->setOperand(0, AI); in lowerIncomingArguments() 281 new BitCastInst(AI, AI->getType(), AI->getName() + ".tmp", in lowerIncomingArguments() 283 AI->replaceAllUsesWith(NC); in lowerIncomingArguments() 291 NC->setOperand(0, AI); in lowerIncomingArguments() [all …]
|
/external/llvm/include/llvm/ |
D | 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/Target/Hexagon/ |
D | HexagonRemoveSZExtArgs.cpp | 51 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE; in runOnFunction() local 52 ++AI, ++Idx) { in runOnFunction() 54 Argument* Arg = AI; in runOnFunction()
|
/external/llvm/tools/opt/ |
D | AnalysisWrappers.cpp | 48 for (CallSite::arg_iterator AI = CS.arg_begin(), in runOnModule() local 49 E = CS.arg_end(); AI != E; ++AI) { in runOnModule() 50 if (!isa<Constant>(*AI)) continue; in runOnModule()
|
/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 108 Function::arg_iterator AI = F->arg_begin(); in TEST_F() local 110 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 111 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 112 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 113 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 114 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 118 B.push_back(SE.getSCEV(&*AI++)); in TEST_F() 119 B.push_back(SE.getSCEV(&*AI++)); in TEST_F() 120 B.push_back(SE.getSCEV(&*AI++)); in TEST_F() 121 B.push_back(SE.getSCEV(&*AI++)); in TEST_F() [all …]
|
/external/llvm/lib/Analysis/ |
D | AliasDebugger.cpp | 61 for (Function::arg_iterator AI = I->arg_begin(), AE = I->arg_end(); in runOnModule() local 62 AI != AE; ++AI) in runOnModule() 63 Vals.insert(&*AI); in runOnModule()
|
/external/llvm/tools/llvm-diff/ |
D | DiffConsumer.cpp | 27 AI = F->arg_begin(), AE = F->arg_end(); AI != AE; ++AI) in ComputeNumbering() local 28 if (!AI->hasName()) in ComputeNumbering() 29 Numbering[&*AI] = IN++; in ComputeNumbering()
|