Searched refs:AI (Results 1 - 25 of 178) sorted by relevance

12345678

/external/clang/test/Modules/Inputs/merge-template-members/
H A Da1.h8 typedef A<int> AI; typedef in namespace:N
H A Da2.h8 typedef A<int> AI; typedef in namespace:N
/external/harfbuzz_ng/src/
H A Dhb-atomic-private.hh62 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
78 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
95 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V))
107 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
117 #define hb_atomic_int_add(AI, V) (((AI)
[all...]
/external/llvm/lib/Transforms/Utils/
H A DInstructionNamer.cpp35 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");
H A DMetaRenamer.cpp74 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
[all...]
H A DPromoteMemoryToRegister.cpp61 bool llvm::isAllocaPromotable(const AllocaInst *AI) { argument
64 unsigned AS = AI->getType()->getAddressSpace();
67 for (const User *U : AI->users()) {
74 if (SI->getOperand(0) == AI)
75 return false; // Don't allow a store OF the AI, only INTO the AI.
129 void AnalyzeAlloca(AllocaInst *AI) { argument
135 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) {
159 DbgDeclare = FindAllocaDbgDeclare(AI);
320 removeLifetimeIntrinsicUsers(AllocaInst *AI) argument
352 rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI, DominatorTree &DT, AliasSetTracker *AST) argument
450 promoteSingleBlockAlloca(AllocaInst *AI, const AllocaInfo &Info, LargeBlockInfo &LBI, AliasSetTracker *AST) argument
537 AllocaInst *AI = Allocas[AllocaNum]; local
776 ComputeLiveInBlocks( AllocaInst *AI, AllocaInfo &Info, const SmallPtrSetImpl<BasicBlock *> &DefBlocks, SmallPtrSetImpl<BasicBlock *> &LiveInBlocks) argument
851 DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, AllocaInfo &Info) argument
1027 DenseMap<AllocaInst *, unsigned>::iterator AI = AllocaLookup.find(Src); local
[all...]
H A DMem2Reg.cpp78 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
79 if (isAllocaPromotable(AI))
80 Allocas.push_back(AI);
/external/clang/include/clang/CodeGen/
H A DCGFunctionInfo.h103 auto AI = ABIArgInfo(Direct); local
104 AI.setCoerceToType(T);
105 AI.setDirectOffset(Offset);
106 AI.setPaddingType(Padding);
107 AI.setCanBeFlattened(CanBeFlattened);
108 return AI;
111 auto AI = getDirect(T); local
112 AI.setInReg(true);
113 return AI;
116 auto AI local
122 auto AI = getExtend(T); local
132 auto AI = ABIArgInfo(Indirect); local
142 auto AI = getIndirect(Alignment, ByVal, Realign); local
147 auto AI = ABIArgInfo(InAlloca); local
156 auto AI = getExpand(); local
[all...]
/external/llvm/lib/CodeGen/
H A DStackProtector.cpp60 StackProtector::getSSPLayout(const AllocaInst *AI) const {
61 return AI ? Layout.lookup(AI) : SSPLK_None;
155 bool StackProtector::HasAddressTaken(const Instruction *AI) { argument
156 for (const User *U : AI->users()) {
158 if (AI == SI->getValueOperand())
161 if (AI == SI->getOperand(0))
213 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
214 if (AI->isArrayAllocation()) {
220 if (const auto *CI = dyn_cast<ConstantInt>(AI
331 CreatePrologue(Function *F, Module *M, ReturnInst *RI, const TargetLoweringBase *TLI, const Triple &TT, AllocaInst *&AI, Value *&StackGuardVar) argument
357 AI); local
372 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. local
[all...]
H A DMachineCopyPropagation.cpp70 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
71 SourceMap::iterator SI = SrcMap.find(*AI);
194 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
195 CI = CopyMap.find(*AI);
218 for (MCRegAliasIterator AI(Def, TRI, false); AI
[all...]
H A 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 = local
226 return tryExpandAtomicRMW(AI);
229 bool AtomicExpand::tryExpandAtomicRMW(AtomicRMWInst *AI) { argument
230 switch (TLI->shouldExpandAtomicRMWInIR(AI)) {
239 return expandAtomicRMWToLLSC(AI);
285 expandAtomicRMWToLLSC(AtomicRMWInst *AI) argument
340 expandAtomicRMWToCmpXchg(AtomicRMWInst *AI) argument
[all...]
/external/llvm/include/llvm/Transforms/Utils/
H A DPromoteMemToReg.h33 bool isAllocaPromotable(const AllocaInst *AI);
H A DASanStackFrameLayout.h34 AllocaInst *AI; // The actual AllocaInst. member in struct:llvm::ASanStackVariableDescription
/external/llvm/lib/Target/Hexagon/
H A DHexagonRemoveSZExtArgs.cpp59 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
60 ++AI, ++Idx) {
62 Argument* Arg = AI;
/external/llvm/tools/opt/
H A DAnalysisWrappers.cpp47 for (CallSite::arg_iterator AI = CS.arg_begin(),
48 E = CS.arg_end(); AI != E; ++AI) {
49 if (!isa<Constant>(*AI)) continue;
/external/llvm/unittests/Transforms/Utils/
H A DIntegerDivision.cpp37 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/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp159 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, argument
162 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete))
167 static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) { argument
169 if (!AI.isArrayAllocation()) {
171 if (AI.getArraySize()->getType()->isIntegerTy(32))
176 AI.setOperand(0, V);
177 return &AI;
181 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) {
182 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue());
183 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI
223 visitAllocaInst(AllocaInst &AI) argument
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp102 AllocaInst *AI; member in struct:__anon11085::SROA::AllocaInfo
128 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false),
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,
338 TryConvert(AllocaInst *AI) argument
1050 AllocaInst *AI; member in class:__anon11088::AllocaPromoter
1059 run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) argument
1246 tryToMakeAllocaBePromotable(AllocaInst *AI, const DataLayout &DL) argument
1442 AllocaInst *AI = Allocas[i]; local
1461 ShouldAttemptScalarRepl(AllocaInst *AI) argument
1489 AllocaInst *AI = WorkList.back(); local
1549 DoScalarReplacement(AllocaInst *AI, std::vector<AllocaInst*> &WorkList) argument
1881 RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
1995 RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
2055 RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
2117 RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument
2176 RewriteMemIntrinUserOfAlloca(MemIntrinsic *MI, Instruction *Inst, AllocaInst *AI, SmallVectorImpl<AllocaInst *> &NewElts) argument
2351 RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI, SmallVectorImpl<AllocaInst *> &NewElts) argument
2467 RewriteLoadUserOfWholeAlloca(LoadInst *LI, AllocaInst *AI, SmallVectorImpl<AllocaInst *> &NewElts) argument
2592 isSafeAllocaToScalarRepl(AllocaInst *AI) argument
[all...]
/external/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp106 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...]
/external/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLoc.cpp48 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;
/external/llvm/include/llvm/
H A 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/include/llvm/CodeGen/
H A DStackProtector.h100 bool HasAddressTaken(const Instruction *AI);
122 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
/external/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp124 static std::string APIntToHexString(const APInt &AI) { argument
125 unsigned Width = (AI.getBitWidth() / 8) * 2;
126 std::string HexString = utohexstr(AI.getLimitedValue(), /*LowerCase=*/true);
137 APInt AI; local
139 AI = APInt(Ty->getPrimitiveSizeInBits(), /*val=*/0);
142 AI = CFP->getValueAPF().bitcastToAPInt();
145 AI = CI->getValue();
149 return APIntToHexString(AI);
/external/llvm/lib/IR/
H A DMangler.cpp79 for (Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end();
80 AI != AE; ++AI) {
81 Type *Ty = AI->getType();
83 if (AI->hasByValOrInAllocaAttr())
/external/llvm/lib/Target/PowerPC/
H A DPPCVSXFMAMutate.cpp256 for (LiveInterval::iterator AI = FMAInt.begin(), AE = FMAInt.end();
257 AI != AE; ++AI) {
259 if (AI->valno == AddendValNo)
263 NewFMAInt.getNextValue(AI->start,
266 NewFMAInt.addSegment(LiveInterval::Segment(AI->start, AI->end,

Completed in 536 milliseconds

12345678