/external/skia/src/opts/ |
D | SkNx_neon.h | 19 AI static float32x4_t armv7_vrndmq_f32(float32x4_t v) { in armv7_vrndmq_f32() 28 AI SkNx(float32x2_t vec) : fVec(vec) {} in SkNx() 30 AI SkNx() {} in SkNx() 31 AI SkNx(float val) : fVec(vdup_n_f32(val)) {} in SkNx() 32 AI SkNx(float a, float b) { fVec = (float32x2_t) { a, b }; } in SkNx() 34 AI static SkNx Load(const void* ptr) { return vld1_f32((const float*)ptr); } in Load() 35 AI void store(void* ptr) const { vst1_f32((float*)ptr, fVec); } in store() 37 AI SkNx invert() const { in invert() 43 AI SkNx operator + (const SkNx& o) const { return vadd_f32(fVec, o.fVec); } 44 AI SkNx operator - (const SkNx& o) const { return vsub_f32(fVec, o.fVec); } [all …]
|
D | SkNx_sse.h | 21 AI SkNx(const __m128& vec) : fVec(vec) {} in SkNx() 23 AI SkNx() {} in SkNx() 24 AI SkNx(float val) : fVec(_mm_set1_ps(val)) {} in SkNx() 25 AI static SkNx Load(const void* ptr) { in Load() 28 AI SkNx(float a, float b) : fVec(_mm_setr_ps(a,b,0,0)) {} in SkNx() 30 AI void store(void* ptr) const { _mm_storel_pi((__m64*)ptr, fVec); } in store() 32 AI SkNx operator + (const SkNx& o) const { return _mm_add_ps(fVec, o.fVec); } 33 AI SkNx operator - (const SkNx& o) const { return _mm_sub_ps(fVec, o.fVec); } 34 AI SkNx operator * (const SkNx& o) const { return _mm_mul_ps(fVec, o.fVec); } 35 AI SkNx operator / (const SkNx& o) const { return _mm_div_ps(fVec, o.fVec); } [all …]
|
/external/skia/src/core/ |
D | SkNx.h | 18 #define AI SK_ALWAYS_INLINE macro 29 AI SkNx() = default; 30 AI SkNx(const Half& lo, const Half& hi) : fLo(lo), fHi(hi) {} in SkNx() 32 AI SkNx(T v) : fLo(v), fHi(v) {} in SkNx() 34 AI SkNx(T a, T b) : fLo(a) , fHi(b) { static_assert(N==2, ""); } in SkNx() 35 AI SkNx(T a, T b, T c, T d) : fLo(a,b), fHi(c,d) { static_assert(N==4, ""); } in SkNx() 36 AI SkNx(T a, T b, T c, T d, T e, T f, T g, T h) : fLo(a,b,c,d), fHi(e,f,g,h) { in SkNx() 39 AI SkNx(T a, T b, T c, T d, T e, T f, T g, T h, in SkNx() 45 AI T operator[](int k) const { 50 AI static SkNx Load(const void* vptr) { in Load() [all …]
|
/external/clang/include/clang/CodeGen/ |
D | CGFunctionInfo.h | 124 auto AI = ABIArgInfo(Direct); variable 125 AI.setCoerceToType(T); 126 AI.setPaddingType(Padding); 127 AI.setDirectOffset(Offset); 128 AI.setCanBeFlattened(CanBeFlattened); 129 return AI; 132 auto AI = getDirect(T); variable 133 AI.setInReg(true); 134 return AI; 137 auto AI = ABIArgInfo(Extend); variable [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-atomic-private.hh | 67 #define hb_atomic_int_impl_add(AI, V) InterlockedExchangeAdd (&(AI), (V)) argument 85 #define hb_atomic_int_impl_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V)) argument 103 #define hb_atomic_int_impl_add(AI, V) __sync_fetch_and_add (&(AI), (V)) argument 116 #define hb_atomic_int_impl_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V… argument 127 static inline int hb_fetch_and_add(volatile int* AI, unsigned int V) { in hb_fetch_and_add() argument 129 int result = __fetch_and_add(AI, V); in hb_fetch_and_add() 142 #define hb_atomic_int_impl_add(AI, V) hb_fetch_and_add (&(AI), (V)) argument 153 #define hb_atomic_int_impl_add(AI, V) (((AI) += (V)) - (V)) argument 163 #define hb_atomic_int_impl_add(AI, V) (((AI) += (V)) - (V)) argument
|
/external/swiftshader/third_party/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 …]
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 61 StackProtector::getSSPLayout(const AllocaInst *AI) const { in getSSPLayout() 62 return AI ? Layout.lookup(AI) : SSPLK_None; in getSSPLayout() 166 bool StackProtector::HasAddressTaken(const Instruction *AI) { in HasAddressTaken() argument 167 for (const User *U : AI->users()) { in HasAddressTaken() 169 if (AI == SI->getValueOperand()) in HasAddressTaken() 172 if (AI == SI->getOperand(0)) in HasAddressTaken() 237 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() local 238 if (AI->isArrayAllocation()) { in RequiresStackProtector() 244 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector() 248 Layout.insert(std::make_pair(AI, SSPLK_LargeArray)); in RequiresStackProtector() [all …]
|
D | SafeStack.cpp | 148 uint64_t getStaticAllocaAllocationSize(const AllocaInst* AI); 213 uint64_t SafeStack::getStaticAllocaAllocationSize(const AllocaInst* AI) { in getStaticAllocaAllocationSize() argument 214 uint64_t Size = DL->getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize() 215 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize() 216 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 412 if (auto AI = dyn_cast<AllocaInst>(&I)) { in findInsts() local 415 uint64_t Size = getStaticAllocaAllocationSize(AI); in findInsts() 416 if (IsSafeStackAlloca(AI, Size)) in findInsts() 419 if (AI->isStaticAlloca()) { in findInsts() 421 StaticAllocas.push_back(AI); in findInsts() [all …]
|
D | MachineCopyPropagation.cpp | 111 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in ClobberRegister() local 112 CopyMap.erase(*AI); in ClobberRegister() 113 AvailCopyMap.erase(*AI); in ClobberRegister() 115 SourceMap::iterator SI = SrcMap.find(*AI); in ClobberRegister() 215 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local 216 Reg2MIMap::iterator CI = CopyMap.find(*AI); in CopyPropagateBlock() 276 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in CopyPropagateBlock() local 277 Reg2MIMap::iterator CI = CopyMap.find(*AI); in CopyPropagateBlock()
|
D | AggressiveAntiDepBreaker.cpp | 153 for (MCRegAliasIterator AI(LI.PhysReg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 154 unsigned Reg = *AI; in StartBlock() 169 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in StartBlock() local 170 unsigned AliasReg = *AI; in StartBlock() 301 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) in HandleLastUse() local 302 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) { in HandleLastUse() 379 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI) { in PrescanInstruction() local 380 unsigned AliasReg = *AI; in PrescanInstruction() 410 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) { in PrescanInstruction() local 417 if (TRI->isSuperRegister(Reg, *AI) && State->IsLive(*AI)) in PrescanInstruction() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 51 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument 54 unsigned AS = AI->getType()->getAddressSpace(); in isAllocaPromotable() 57 for (const User *U : AI->users()) { in isAllocaPromotable() 64 if (SI->getOperand(0) == AI) in isAllocaPromotable() 119 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca() 125 for (auto UI = AI->user_begin(), E = AI->user_end(); UI != E;) { in AnalyzeAlloca() 149 DbgDeclare = FindAllocaDbgDeclare(AI); in AnalyzeAlloca() 293 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, 304 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers() argument 308 for (auto UI = AI->user_begin(), UE = AI->user_end(); UI != UE;) { in removeLifetimeIntrinsicUsers() [all …]
|
D | MetaRenamer.cpp | 84 for (auto AI = M.alias_begin(), AE = M.alias_end(); AI != AE; ++AI) { in runOnModule() local 85 StringRef Name = AI->getName(); in runOnModule() 89 AI->setName("alias"); in runOnModule() 125 for (auto AI = F.arg_begin(), AE = F.arg_end(); AI != AE; ++AI) in runOnFunction() local 126 if (!AI->getType()->isVoidTy()) in runOnFunction() 127 AI->setName("arg"); in runOnFunction()
|
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()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 80 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() argument 85 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end(); in isAllocaPromotable() 94 if (SI->getOperand(0) == AI) in isAllocaPromotable() 275 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, 277 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, 281 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, 283 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info, 315 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca() 321 for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end(); in AnalyzeAlloca() 346 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()
|
/external/llvm/unittests/Transforms/Utils/ |
D | IntegerDivision.cpp | 37 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/swiftshader/third_party/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 …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 162 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, in isOnlyCopiedFromConstantGlobal() argument 165 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete)) in isOnlyCopiedFromConstantGlobal() 170 static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) { in simplifyAllocaArraySize() argument 172 if (!AI.isArrayAllocation()) { in simplifyAllocaArraySize() 174 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize() 179 AI.setOperand(0, V); in simplifyAllocaArraySize() 180 return &AI; in simplifyAllocaArraySize() 184 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize() 185 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() 186 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 25 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() argument 29 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); in visitAllocaInst() 30 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst() 31 Value *V = Builder->CreateIntCast(AI.getArraySize(), in visitAllocaInst() 33 AI.setOperand(0, V); in visitAllocaInst() 34 return &AI; in visitAllocaInst() 39 if (AI.isArrayAllocation()) { // Check C != 1 in visitAllocaInst() 40 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in visitAllocaInst() 42 ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in visitAllocaInst() 43 assert(isa<AllocaInst>(AI) && "Unknown type of allocation inst!"); in visitAllocaInst() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 76 CallSite::arg_iterator AI = CS.arg_begin(); in PropagateConstantsIntoArguments() local 79 ++i, ++AI, ++Arg) { in PropagateConstantsIntoArguments() 85 Constant *C = dyn_cast<Constant>(*AI); in PropagateConstantsIntoArguments() 90 } else if (*AI == &*Arg) { in PropagateConstantsIntoArguments() 105 Function::arg_iterator AI = F.arg_begin(); in PropagateConstantsIntoArguments() local 106 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { in PropagateConstantsIntoArguments() 108 if (ArgumentConstants[i].second || AI->use_empty() || in PropagateConstantsIntoArguments() 109 AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory())) in PropagateConstantsIntoArguments() 113 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments() 114 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
|
/external/llvm/tools/sancov/ |
D | sancov.cc | 257 bool isBlacklisted(const AddrInfo &AI) { in isBlacklisted() argument 258 if (DefaultBlacklist && DefaultBlacklist->inSection("fun", AI.FunctionName)) in isBlacklisted() 260 if (DefaultBlacklist && DefaultBlacklist->inSection("src", AI.FileName)) in isBlacklisted() 262 if (UserBlacklist && UserBlacklist->inSection("fun", AI.FunctionName)) in isBlacklisted() 264 if (UserBlacklist && UserBlacklist->inSection("src", AI.FileName)) in isBlacklisted() 685 group_by(AllAddrInfo, [](const AddrInfo &AI) { return AI.FileName; }); in computeFileCoverage() argument 687 group_by(CovAddrInfo, [](const AddrInfo &AI) { return AI.FileName; }); in computeFileCoverage() argument 708 auto AllLocs = group_by(AllAddrInfo, [](const AddrInfo &AI) { in computeLineStatusMap() argument 709 return FileLoc{AI.FileName, AI.Line}; in computeLineStatusMap() 711 auto CovLocs = group_by(CovAddrInfo, [](const AddrInfo &AI) { in computeLineStatusMap() argument [all …]
|
/external/swiftshader/third_party/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()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 269 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); in splitLiveRangesAcrossInvokes() local 270 AI != E; ++AI) { in splitLiveRangesAcrossInvokes() 271 Type *Ty = AI->getType(); in splitLiveRangesAcrossInvokes() 276 Instruction *EI = ExtractValueInst::Create(AI, 0, "",AfterAllocaInsertPt); in splitLiveRangesAcrossInvokes() 277 Instruction *NI = InsertValueInst::Create(AI, EI, 0); in splitLiveRangesAcrossInvokes() 279 AI->replaceAllUsesWith(NI); in splitLiveRangesAcrossInvokes() 281 EI->setOperand(0, AI); in splitLiveRangesAcrossInvokes() 282 NI->setOperand(0, AI); in splitLiveRangesAcrossInvokes() 288 AI, AI->getType(), AI->getName()+".tmp", AfterAllocaInsertPt); in splitLiveRangesAcrossInvokes() 289 AI->replaceAllUsesWith(NC); in splitLiveRangesAcrossInvokes() [all …]
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | AddressSanitizer.cpp | 463 uint64_t getAllocaSizeInBytes(AllocaInst *AI) const { in getAllocaSizeInBytes() 465 if (AI->isArrayAllocation()) { in getAllocaSizeInBytes() 466 ConstantInt *CI = dyn_cast<ConstantInt>(AI->getArraySize()); in getAllocaSizeInBytes() 470 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes() 472 AI->getModule()->getDataLayout().getTypeAllocSize(Ty); in getAllocaSizeInBytes() 476 bool isInterestingAlloca(AllocaInst &AI); 621 AllocaInst *AI; member 722 void handleDynamicAllocaCall(AllocaInst *AI); 725 void visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() 726 if (!ASan.isInterestingAlloca(AI)) { in visitAllocaInst() [all …]
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DbgValueHistoryCalculator.cpp | 168 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); in collectChangingRegs() local 169 ++AI) in collectChangingRegs() 170 Regs.set(*AI); in collectChangingRegs() 197 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); in calculateDbgValueHistory() local 198 ++AI) in calculateDbgValueHistory() 199 if (ChangingRegs.test(*AI)) in calculateDbgValueHistory() 200 clobberRegisterUses(RegVars, *AI, Result, MI); in calculateDbgValueHistory()
|