/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorDimensions.h | 92 template <typename std::ptrdiff_t... Indices> 93 struct Sizes : internal::numeric_list<std::ptrdiff_t, Indices...> { 94 typedef internal::numeric_list<std::ptrdiff_t, Indices...> Base; 95 static const std::ptrdiff_t total_size = internal::arg_prod(Indices...); 102 return internal::arg_prod(Indices...); 137 template <typename std::ptrdiff_t... Indices> 138 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t array_prod(const Sizes<Indices...>&) { 139 return Sizes<Indices...>::total_size; 371 template <typename std::ptrdiff_t... Indices> struct array_size<const Sizes<Indices...> > { 372 static const std::ptrdiff_t value = Sizes<Indices...>::count; [all …]
|
D | TensorContraction.h | 63 typedef Indices_ Indices; 74 template<typename Indices, typename LhsXprType, typename RhsXprType> 75 class TensorContractionOp : public TensorBase<TensorContractionOp<Indices, LhsXprType, RhsXprType>,… 86 const LhsXprType& lhs, const RhsXprType& rhs, const Indices& dims) 90 const Indices& indices() const { return m_indices; } 104 const Indices m_indices; 111 typedef typename internal::traits<Derived>::Indices Indices; 116 typedef TensorContractionOp<Indices, LeftArgType, RightArgType> XprType; 143 static const int ContractDims = internal::array_size<Indices>::value; 571 template<typename Indices, typename LeftArgType, typename RightArgType, typename Device> [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/CodeView/ |
D | TypeIndexDiscoveryTest.cpp | 40 template <typename... Indices> 41 bool checkTypeReferences(uint32_t RecordIndex, Indices &&... TIs) const { in checkTypeReferences() 42 EXPECT_EQ(sizeof...(Indices), countRefs(RecordIndex)); in checkTypeReferences() 55 std::forward<Indices>(TIs)...); in checkTypeReferences() 98 ArrayRef<TypeIndex> Indices( in checkOneTypeReference() 100 if (llvm::any_of(Indices, in checkOneTypeReference() 107 template <typename... Indices> 113 template <typename... Indices> 116 TypeIndex TI, Indices &&... Rest) const { in checkTypeReferencesImpl() 121 std::forward<Indices>(Rest)...); in checkTypeReferencesImpl() [all …]
|
D | RandomAccessVisitorTest.cpp | 70 Indices.push_back(Index); in visitTypeBegin() 80 assert(Indices.size() == RawRecords.size()); in count() 81 assert(Indices.size() == VisitedRecords.size()); in count() 82 return Indices.size(); in count() 84 std::vector<TypeIndex> Indices; member in __anondbe137d90111::MockCallbacks 109 GlobalState->Indices.push_back(Builder.writeLeafType(AR)); in SetUpTestCase() 115 {GlobalState->Indices.back(), ulittle32_t(Offset)}); in SetUpTestCase() 144 if (TI != TestState->Callbacks.Indices[VisitationOrder]) in ValidateVisitedRecord() 165 std::vector<TypeIndex> Indices; member 182 std::initializer_list<uint32_t> Indices) { in createPartialOffsets() argument [all …]
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 231 SmallVector<unsigned, 4> Indices; in lowerInterleavedLoad() local 232 Indices.push_back(Index); in lowerInterleavedLoad() 246 Indices.push_back(Index); in lowerInterleavedLoad() 257 if (!TLI->lowerInterleavedLoad(LI, Shuffles, Indices, Factor)) in lowerInterleavedLoad() 299 SmallVector<int, 4> Indices; in tryReplaceExtracts() local 300 Shuffle->getShuffleMask(Indices); in tryReplaceExtracts() 301 for (unsigned I = 0; I < Indices.size(); ++I) in tryReplaceExtracts() 302 if (Indices[I] == Index) { in tryReplaceExtracts()
|
D | Analysis.cpp | 38 const unsigned *Indices, in ComputeLinearIndex() argument 42 if (Indices && Indices == IndicesEnd) in ComputeLinearIndex() 51 if (Indices && *Indices == unsigned(EI - EB)) in ComputeLinearIndex() 52 return ComputeLinearIndex(*EI, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 55 assert(!Indices && "Unexpected out of bound"); in ComputeLinearIndex() 64 if (Indices) { in ComputeLinearIndex() 65 assert(*Indices < NumElts && "Unexpected out of bound"); in ComputeLinearIndex() 68 CurIndex += EltLinearOffset* *Indices; in ComputeLinearIndex() 69 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | Analysis.h | 37 const unsigned *Indices, 42 ArrayRef<unsigned> Indices, 44 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | Analysis.cpp | 35 const unsigned *Indices, in ComputeLinearIndex() argument 39 if (Indices && Indices == IndicesEnd) in ComputeLinearIndex() 48 if (Indices && *Indices == unsigned(EI - EB)) in ComputeLinearIndex() 49 return ComputeLinearIndex(*EI, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 58 if (Indices && *Indices == i) in ComputeLinearIndex() 59 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | metafunctions.cpp | 149 namespace Indices { namespace 153 template<unsigned I, unsigned N, int ...Indices> 154 struct build_indices_impl<I, N, int_tuple<Indices...> > 155 : build_indices_impl<I+1, N, int_tuple<Indices..., I> > { 158 template<unsigned N, int ...Indices> 159 struct build_indices_impl<N, N, int_tuple<Indices...> > { 160 typedef int_tuple<Indices...> type;
|
/external/llvm/include/llvm/CodeGen/ |
D | Analysis.h | 55 const unsigned *Indices, 60 ArrayRef<unsigned> Indices, 62 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 312 SmallVector<unsigned, 4> Indices; in lowerInterleavedLoad() local 313 Indices.push_back(Index); in lowerInterleavedLoad() 327 Indices.push_back(Index); in lowerInterleavedLoad() 338 if (!TLI->lowerInterleavedLoad(LI, Shuffles, Indices, Factor)) in lowerInterleavedLoad() 377 SmallVector<int, 4> Indices; in tryReplaceExtracts() local 378 Shuffle->getShuffleMask(Indices); in tryReplaceExtracts() 379 for (unsigned I = 0; I < Indices.size(); ++I) in tryReplaceExtracts() 380 if (Indices[I] == Index) { in tryReplaceExtracts()
|
D | Analysis.cpp | 37 const unsigned *Indices, in ComputeLinearIndex() argument 41 if (Indices && Indices == IndicesEnd) in ComputeLinearIndex() 50 if (Indices && *Indices == unsigned(EI - EB)) in ComputeLinearIndex() 51 return ComputeLinearIndex(*EI, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 54 assert(!Indices && "Unexpected out of bound"); in ComputeLinearIndex() 63 if (Indices) { in ComputeLinearIndex() 64 assert(*Indices < NumElts && "Unexpected out of bound"); in ComputeLinearIndex() 67 CurIndex += EltLinearOffset* *Indices; in ComputeLinearIndex() 68 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | Analysis.h | 55 const unsigned *Indices, 60 ArrayRef<unsigned> Indices, 62 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
|
/external/clang/lib/Format/ |
D | SortJavaScriptImports.cpp | 143 SmallVector<unsigned, 16> Indices; in analyze() local 145 Indices.push_back(i); in analyze() 146 std::stable_sort(Indices.begin(), Indices.end(), in analyze() 150 bool ReferencesInOrder = std::is_sorted(Indices.begin(), Indices.end()); in analyze() 154 for (unsigned i = 0, e = Indices.size(); i != e; ++i) { in analyze() 155 JsModuleReference Reference = References[Indices[i]]; in analyze() 164 (Reference.IsExport != References[Indices[i + 1]].IsExport || in analyze() 165 Reference.Category != References[Indices[i + 1]].Category)) in analyze()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/ |
D | MinimalTypeDumper.cpp | 271 auto Indices = Args.getIndices(); in visitKnownRecord() local 272 if (Indices.empty()) in visitKnownRecord() 275 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord() 278 for (auto I : Indices) in visitKnownRecord() 286 auto Indices = Strings.getIndices(); in visitKnownRecord() local 287 if (Indices.empty()) in visitKnownRecord() 290 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord() 293 for (auto I : Indices) in visitKnownRecord() 453 auto Indices = BI.ArgIndices; in visitKnownRecord() local 454 if (Indices.empty()) in visitKnownRecord() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/ |
D | TypeIndexDiscovery.h | 32 SmallVectorImpl<TypeIndex> &Indices); 34 SmallVectorImpl<TypeIndex> &Indices); 43 SmallVectorImpl<TypeIndex> &Indices);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 256 static bool PrefixIn(const ArgPromotion::IndicesVector &Indices, in PrefixIn() argument 259 Low = Set.upper_bound(Indices); in PrefixIn() 267 return Low != Set.end() && IsPrefix(*Low, Indices); in PrefixIn() 347 IndicesVector Indices; in isSafeToPromoteArgument() local 356 Indices.reserve(GEP->getNumIndices()); in isSafeToPromoteArgument() 360 Indices.push_back(CI->getSExtValue()); in isSafeToPromoteArgument() 367 MarkIndicesSafe(Indices, SafeToUnconditionallyLoad); in isSafeToPromoteArgument() 368 Indices.clear(); in isSafeToPromoteArgument() 556 IndicesVector Indices; in DoPromotion() local 557 Indices.reserve(User->getNumOperands() - 1); in DoPromotion() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 172 IndicesVector Indices; in doPromotion() local 173 Indices.reserve(UI->getNumOperands() - 1); in doPromotion() 179 Indices.push_back(cast<ConstantInt>(*II)->getSExtValue()); in doPromotion() 181 if (Indices.size() == 1 && Indices.front() == 0) in doPromotion() 182 Indices.clear(); in doPromotion() 183 ArgIndices.insert(std::make_pair(SrcTy, Indices)); in doPromotion() 190 OriginalLoads[std::make_pair(&*I, Indices)] = OrigLoad; in doPromotion() 509 static bool prefixIn(const IndicesVector &Indices, in prefixIn() argument 512 Low = Set.upper_bound(Indices); in prefixIn() 520 return Low != Set.end() && isPrefix(*Low, Indices); in prefixIn() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 403 static bool PrefixIn(const IndicesVector &Indices, in PrefixIn() argument 406 Low = Set.upper_bound(Indices); in PrefixIn() 414 return Low != Set.end() && IsPrefix(*Low, Indices); in PrefixIn() 498 IndicesVector Indices; in isSafeToPromoteArgument() local 506 Indices.reserve(GEP->getNumIndices()); in isSafeToPromoteArgument() 510 Indices.push_back(CI->getSExtValue()); in isSafeToPromoteArgument() 517 MarkIndicesSafe(Indices, SafeToUnconditionallyLoad); in isSafeToPromoteArgument() 518 Indices.clear(); in isSafeToPromoteArgument() 707 IndicesVector Indices; in DoPromotion() local 708 Indices.reserve(UI->getNumOperands() - 1); in DoPromotion() [all …]
|
/external/libcxx/test/libcxx/utilities/variant/variant.variant/ |
D | variant_size.pass.cpp | 25 template <size_t ...Indices> 26 struct make_variant_imp<std::integer_sequence<size_t, Indices...>> { 28 using type = std::variant<AlwaysChar<Indices>...>;
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
D | MipsSEISelLowering.cpp | 2533 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_SHF() argument 2537 if (Indices.size() < 4) in lowerVECTOR_SHUFFLE_SHF() 2541 for (unsigned j = i; j < Indices.size(); j += 4) { in lowerVECTOR_SHUFFLE_SHF() 2542 int Idx = Indices[j]; in lowerVECTOR_SHUFFLE_SHF() 2613 SmallVector<int, 16> Indices, in isVECTOR_SHUFFLE_SPLATI() argument 2615 assert((Indices.size() % 2) == 0); in isVECTOR_SHUFFLE_SPLATI() 2618 for (const auto &V : Indices) { in isVECTOR_SHUFFLE_SPLATI() 2625 return fitsRegularPattern<int>(Indices.begin(), 1, Indices.end(), SplatIndex, in isVECTOR_SHUFFLE_SPLATI() 2645 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVEV() argument 2647 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVEV() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsSEISelLowering.cpp | 2442 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_SHF() argument 2446 if (Indices.size() < 4) in lowerVECTOR_SHUFFLE_SHF() 2450 for (unsigned j = i; j < Indices.size(); j += 4) { in lowerVECTOR_SHUFFLE_SHF() 2451 int Idx = Indices[j]; in lowerVECTOR_SHUFFLE_SHF() 2522 SmallVector<int, 16> Indices, in isVECTOR_SHUFFLE_SPLATI() argument 2524 assert((Indices.size() % 2) == 0); in isVECTOR_SHUFFLE_SPLATI() 2527 for (const auto &V : Indices) { in isVECTOR_SHUFFLE_SPLATI() 2534 return fitsRegularPattern<int>(Indices.begin(), 1, Indices.end(), SplatIndex, in isVECTOR_SHUFFLE_SPLATI() 2554 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVEV() argument 2556 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVEV() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | TypeIndexDiscovery.cpp | 462 SmallVectorImpl<TypeIndex> &Indices) { in resolveTypeIndexReferences() argument 463 Indices.clear(); in resolveTypeIndexReferences() 475 Indices.append(Run.begin(), Run.end()); in resolveTypeIndexReferences() 480 SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndices() argument 481 return discoverTypeIndices(Type.RecordData, Indices); in discoverTypeIndices() 485 SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndices() argument 488 resolveTypeIndexReferences(RecordData, Refs, Indices); in discoverTypeIndices() 515 ArrayRef<uint8_t> RecordData, SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndicesInSymbol() argument 519 resolveTypeIndexReferences(RecordData, Refs, Indices); in discoverTypeIndicesInSymbol()
|
D | RecordName.cpp | 77 auto Indices = Args.getIndices(); in visitKnownRecord() local 78 uint32_t Size = Indices.size(); in visitKnownRecord() 81 assert(Indices[I] < CurrentTypeIndex); in visitKnownRecord() 83 Name.append(Types.getTypeName(Indices[I])); in visitKnownRecord() 93 auto Indices = Strings.getIndices(); in visitKnownRecord() local 94 uint32_t Size = Indices.size(); in visitKnownRecord() 97 Name.append(Types.getTypeName(Indices[I])); in visitKnownRecord()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/ |
D | ProfilingUtils.cpp | 118 std::vector<Constant*> Indices(2); in IncrementCounterInBlock() local 119 Indices[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in IncrementCounterInBlock() 120 Indices[1] = ConstantInt::get(Type::getInt32Ty(Context), CounterNum); in IncrementCounterInBlock() 122 ConstantExpr::getGetElementPtr(CounterArray, Indices); in IncrementCounterInBlock()
|