Home
last modified time | relevance | path

Searched refs:AI (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/external/clang/include/clang/CodeGen/
DCGFunctionInfo.h103 auto AI = ABIArgInfo(Direct); variable
104 AI.setCoerceToType(T);
105 AI.setDirectOffset(Offset);
106 AI.setPaddingType(Padding);
107 AI.setCanBeFlattened(CanBeFlattened);
108 return AI;
111 auto AI = getDirect(T); variable
112 AI.setInReg(true);
113 return AI;
116 auto AI = ABIArgInfo(Extend); variable
[all …]
/external/harfbuzz_ng/src/
Dhb-atomic-private.hh62 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V)) argument
78 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V)) argument
95 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V)) argument
107 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (… argument
117 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V)) argument
126 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V)) argument
/external/llvm/lib/CodeGen/
DMachineCopyPropagation.cpp70 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in SourceNoLongerAvailable() local
71 SourceMap::iterator SI = SrcMap.find(*AI); in SourceNoLongerAvailable()
194 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local
195 CI = CopyMap.find(*AI); in CopyPropagateBlock()
218 for (MCRegAliasIterator AI(Def, TRI, false); AI.isValid(); ++AI) { in CopyPropagateBlock() local
219 CopyMap.erase(*AI); in CopyPropagateBlock()
220 AvailCopyMap.erase(*AI); in CopyPropagateBlock()
262 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local
263 DenseMap<unsigned, MachineInstr*>::iterator CI = CopyMap.find(*AI); in CopyPropagateBlock()
303 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local
[all …]
DAtomicExpandPass.cpp51 bool tryExpandAtomicRMW(AtomicRMWInst *AI);
52 bool expandAtomicRMWToLLSC(AtomicRMWInst *AI);
53 bool expandAtomicRMWToCmpXchg(AtomicRMWInst *AI);
55 bool isIdempotentRMW(AtomicRMWInst *AI);
56 bool simplifyIdempotentRMW(AtomicRMWInst *AI);
220 AtomicRMWInst *AI = in expandAtomicStore() local
226 return tryExpandAtomicRMW(AI); in expandAtomicStore()
229 bool AtomicExpand::tryExpandAtomicRMW(AtomicRMWInst *AI) { in tryExpandAtomicRMW() argument
230 switch (TLI->shouldExpandAtomicRMWInIR(AI)) { in tryExpandAtomicRMW()
239 return expandAtomicRMWToLLSC(AI); in tryExpandAtomicRMW()
[all …]
DStackProtector.cpp60 StackProtector::getSSPLayout(const AllocaInst *AI) const { in getSSPLayout()
61 return AI ? Layout.lookup(AI) : SSPLK_None; in getSSPLayout()
155 bool StackProtector::HasAddressTaken(const Instruction *AI) { in HasAddressTaken() argument
156 for (const User *U : AI->users()) { in HasAddressTaken()
158 if (AI == SI->getValueOperand()) in HasAddressTaken()
161 if (AI == SI->getOperand(0)) in HasAddressTaken()
213 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local
214 if (AI->isArrayAllocation()) { in RequiresStackProtector()
220 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
224 Layout.insert(std::make_pair(AI, SSPLK_LargeArray)); in RequiresStackProtector()
[all …]
DAggressiveAntiDepBreaker.cpp154 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
155 unsigned Reg = *AI; in StartBlock()
170 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
171 unsigned AliasReg = *AI; in StartBlock()
303 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local
304 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse()
377 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local
378 unsigned AliasReg = *AI; in PrescanInstruction()
408 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local
415 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction()
[all …]
DCriticalAntiDepBreaker.cpp62 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
63 unsigned Reg = *AI; in StartBlock()
77 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) { in StartBlock() local
78 unsigned Reg = *AI; in StartBlock()
191 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local
195 unsigned AliasReg = *AI; in PrescanInstruction()
309 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ScanInstruction() local
310 unsigned AliasReg = *AI; in ScanInstruction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp159 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, in isOnlyCopiedFromConstantGlobal() argument
162 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete)) in isOnlyCopiedFromConstantGlobal()
167 static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) { in simplifyAllocaArraySize() argument
169 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize()
171 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize()
176 AI.setOperand(0, V); in simplifyAllocaArraySize()
177 return &AI; in simplifyAllocaArraySize()
181 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize()
182 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
183 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize()
[all …]
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp61 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument
64 unsigned AS = AI->getType()->getAddressSpace(); in isAllocaPromotable()
67 for (const User *U : AI->users()) { in isAllocaPromotable()
74 if (SI->getOperand(0) == AI) in isAllocaPromotable()
129 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
135 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { in AnalyzeAlloca()
159 DbgDeclare = FindAllocaDbgDeclare(AI); in AnalyzeAlloca()
307 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
309 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
320 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers() argument
[all …]
DMetaRenamer.cpp74 for (Module::alias_iterator AI = M.alias_begin(), AE = M.alias_end(); in runOnModule() local
75 AI != AE; ++AI) { in runOnModule()
76 StringRef Name = AI->getName(); in runOnModule()
80 AI->setName("alias"); in runOnModule()
119 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); in runOnFunction() local
120 AI != AE; ++AI) in runOnFunction()
121 if (!AI->getType()->isVoidTy()) in runOnFunction()
122 AI->setName("arg"); in runOnFunction()
DInstructionNamer.cpp35 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()
DInlineFunction.cpp490 for (ImmutableCallSite::arg_iterator AI = ICS.arg_begin(), in AddAliasScopeMetadata() local
491 AE = ICS.arg_end(); AI != AE; ++AI) { in AddAliasScopeMetadata()
497 if (IsArgMemOnlyCall && !(*AI)->getType()->isPointerTy()) in AddAliasScopeMetadata()
500 PtrArgs.push_back(*AI); in AddAliasScopeMetadata()
813 static bool hasLifetimeMarkers(AllocaInst *AI) { in hasLifetimeMarkers() argument
814 Type *Ty = AI->getType(); in hasLifetimeMarkers()
818 return isUsedByLifetimeMarker(AI); in hasLifetimeMarkers()
821 for (User *U : AI->users()) { in hasLifetimeMarkers()
823 if (U->stripPointerCasts() != AI) continue; in hasLifetimeMarkers()
900 if (auto *AI = dyn_cast<AllocaInst>(BI)) in fixupLineNumbers() local
[all …]
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp37 Function::arg_iterator AI = F->arg_begin(); in TEST() local
38 Value *A = AI++; in TEST()
39 Value *B = AI++; in TEST()
67 Function::arg_iterator AI = F->arg_begin(); in TEST() local
68 Value *A = AI++; in TEST()
69 Value *B = AI++; in TEST()
97 Function::arg_iterator AI = F->arg_begin(); in TEST() local
98 Value *A = AI++; in TEST()
99 Value *B = AI++; in TEST()
127 Function::arg_iterator AI = F->arg_begin(); in TEST() local
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp102 AllocaInst *AI; member
128 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false), in AllocaInfo()
152 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
166 void DoScalarReplacement(AllocaInst *AI,
170 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
172 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
174 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
176 void RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI,
180 AllocaInst *AI,
182 void RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI,
[all …]
DSROA.cpp219 AllocaSlices(const DataLayout &DL, AllocaInst &AI);
561 AllocaInst &AI; member in __anonadce12ea0311::AllocaSlices
640 SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &AS) in SliceBuilder() argument
642 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
658 << " alloca: " << AS.AI << "\n" in insertUse()
676 << " alloca: " << AS.AI << "\n" in insertUse()
780 << " alloca: " << AS.AI << "\n" in visitStoreInst()
999 AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI) in AllocaSlices() argument
1002 AI(AI), in AllocaSlices()
1005 SliceBuilder PB(DL, AI, *this); in AllocaSlices()
[all …]
/external/llvm/lib/Transforms/IPO/
DIPConstantPropagation.cpp106 CallSite::arg_iterator AI = CS.arg_begin(); in PropagateConstantsIntoArguments() local
109 ++i, ++AI, ++Arg) { in PropagateConstantsIntoArguments()
115 Constant *C = dyn_cast<Constant>(*AI); in PropagateConstantsIntoArguments()
120 } else if (*AI == &*Arg) { in PropagateConstantsIntoArguments()
135 Function::arg_iterator AI = F.arg_begin(); in PropagateConstantsIntoArguments() local
136 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { in PropagateConstantsIntoArguments()
138 if (ArgumentConstants[i].second || AI->use_empty() || in PropagateConstantsIntoArguments()
139 AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory())) in PropagateConstantsIntoArguments()
143 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments()
144 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
DInliner.cpp177 AllocaInst *AI = IFI.StaticAllocas[AllocaNo]; in InlineCallIfPossible() local
182 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
183 if (!ATy || AI->isArrayAllocation()) in InlineCallIfPossible()
198 unsigned Align1 = AI->getAlignment(), in InlineCallIfPossible()
203 if (AvailableAlloca->getParent() != AI->getParent()) in InlineCallIfPossible()
213 DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: " in InlineCallIfPossible()
216 AI->replaceAllUsesWith(AvailableAlloca); in InlineCallIfPossible()
221 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
228 AvailableAlloca->setAlignment(AI->getAlignment()); in InlineCallIfPossible()
231 AI->eraseFromParent(); in InlineCallIfPossible()
[all …]
/external/llvm/lib/Target/X86/
DX86TargetObjectFile.cpp124 static std::string APIntToHexString(const APInt &AI) { in APIntToHexString() argument
125 unsigned Width = (AI.getBitWidth() / 8) * 2; in APIntToHexString()
126 std::string HexString = utohexstr(AI.getLimitedValue(), /*LowerCase=*/true); in APIntToHexString()
137 APInt AI; in scalarConstantToHexString() local
139 AI = APInt(Ty->getPrimitiveSizeInBits(), /*val=*/0); in scalarConstantToHexString()
142 AI = CFP->getValueAPF().bitcastToAPInt(); in scalarConstantToHexString()
145 AI = CI->getValue(); in scalarConstantToHexString()
149 return APIntToHexString(AI); in scalarConstantToHexString()
/external/llvm/include/llvm/
DPassSupport.h175 PassInfo *AI = new PassInfo(name, & agName :: ID); \
176 Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false, true); \
177 return AI; \
191 PassInfo *AI = new PassInfo(name, & agName :: ID); \
193 *AI, def, true); \
194 return AI; \
210 PassInfo *AI = new PassInfo(n, & agName :: ID); \
212 *AI, def, true); \
213 return AI; \
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp397 uint64_t getAllocaSizeInBytes(AllocaInst *AI) const { in getAllocaSizeInBytes()
398 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes()
400 AI->getModule()->getDataLayout().getTypeAllocSize(Ty); in getAllocaSizeInBytes()
404 bool isInterestingAlloca(AllocaInst &AI);
524 AllocaInst *AI; member
535 AllocaInst *AI; member
539 explicit DynamicAllocaCall(AllocaInst *AI, Value *LeftRzAddr = nullptr, in DynamicAllocaCall()
541 : AI(AI), in DynamicAllocaCall()
643 void visitAllocaInst(AllocaInst &AI) { in visitAllocaInst()
644 if (!ASan.isInterestingAlloca(AI)) return; in visitAllocaInst()
[all …]
/external/llvm/tools/opt/
DAnalysisWrappers.cpp47 for (CallSite::arg_iterator AI = CS.arg_begin(), in runOnModule() local
48 E = CS.arg_end(); AI != E; ++AI) { in runOnModule()
49 if (!isa<Constant>(*AI)) continue; in runOnModule()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLoc.cpp48 RelocAddrMap::const_iterator AI = RelocMap.find(Offset); in parse() local
51 if (AI != RelocMap.end()) in parse()
52 E.Begin += AI->second.second; in parse()
54 AI = RelocMap.find(Offset); in parse()
57 if (AI != RelocMap.end()) in parse()
58 E.End += AI->second.second; in parse()
DDWARFFormValue.cpp151 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); in extractValue() local
152 if (AI != cu->getRelocMap()->end()) { in extractValue()
153 const std::pair<uint8_t, int64_t> &R = AI->second; in extractValue()
190 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr-4); in extractValue() local
191 if (AI != cu->getRelocMap()->end()) in extractValue()
192 Value.uval += AI->second.second; in extractValue()
206 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr-4); in extractValue() local
207 if (AI != cu->getRelocMap()->end()) in extractValue()
208 Value.uval += AI->second.second; in extractValue()
227 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr-4); in extractValue() local
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonRemoveSZExtArgs.cpp59 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE; in runOnFunction() local
60 ++AI, ++Idx) { in runOnFunction()
62 Argument* Arg = AI; in runOnFunction()
/external/llvm/lib/IR/
DMangler.cpp79 for (Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end(); in addByteCountSuffix() local
80 AI != AE; ++AI) { in addByteCountSuffix()
81 Type *Ty = AI->getType(); in addByteCountSuffix()
83 if (AI->hasByValOrInAllocaAttr()) in addByteCountSuffix()

12345678910>>...18