Home
last modified time | relevance | path

Searched refs:Indices (Results 1 – 25 of 151) sorted by relevance

1234567

/llvm-project-15.0.7/llvm/unittests/DebugInfo/CodeView/
H A DTypeIndexDiscoveryTest.cpp39 template <typename... Indices>
97 ArrayRef<TypeIndex> Indices( in checkOneTypeReference()
99 if (llvm::any_of(Indices, in checkOneTypeReference()
106 template <typename... Indices>
112 template <typename... Indices>
565 Callees.Indices.push_back(TypeIndex(1)); in TEST_F()
566 Callees.Indices.push_back(TypeIndex(2)); in TEST_F()
567 Callees.Indices.push_back(TypeIndex(3)); in TEST_F()
569 Callers.Indices.push_back(TypeIndex(4)); in TEST_F()
570 Callers.Indices.push_back(TypeIndex(5)); in TEST_F()
[all …]
H A DRandomAccessVisitorTest.cpp68 Indices.push_back(Index); in visitTypeBegin()
78 assert(Indices.size() == RawRecords.size()); in count()
79 assert(Indices.size() == VisitedRecords.size()); in count()
80 return Indices.size(); in count()
82 std::vector<TypeIndex> Indices; member in __anon4c709ac60111::MockCallbacks
107 GlobalState->Indices.push_back(Builder.writeLeafType(AR)); in SetUpTestCase()
113 {GlobalState->Indices.back(), ulittle32_t(Offset)}); in SetUpTestCase()
142 if (TI != TestState->Callbacks.Indices[VisitationOrder]) in ValidateVisitedRecord()
163 std::vector<TypeIndex> Indices; member
182 uint32_t Count = Indices.size(); in createPartialOffsets()
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dmetafunctions.cpp149 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;
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DAnalysis.h48 const unsigned *Indices,
53 ArrayRef<unsigned> Indices,
55 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp342 SmallVector<unsigned, 4> Indices; in lowerInterleavedLoad() local
356 Indices.push_back(Index); in lowerInterleavedLoad()
368 Indices.push_back(Index); in lowerInterleavedLoad()
370 Indices.push_back(Index); in lowerInterleavedLoad()
384 if (!TLI->lowerInterleavedLoad(LI, Shuffles, Indices, Factor)) { in lowerInterleavedLoad()
457 SmallVector<int, 4> Indices; in tryReplaceExtracts() local
458 Shuffle->getShuffleMask(Indices); in tryReplaceExtracts()
459 for (unsigned I = 0; I < Indices.size(); ++I) in tryReplaceExtracts()
460 if (Indices[I] == Index) { in tryReplaceExtracts()
H A DAnalysis.cpp34 const unsigned *Indices, in ComputeLinearIndex() argument
38 if (Indices && Indices == IndicesEnd) in ComputeLinearIndex()
45 if (Indices && *Indices == I.index()) in ComputeLinearIndex()
46 return ComputeLinearIndex(ET, Indices + 1, IndicesEnd, CurIndex); in ComputeLinearIndex()
49 assert(!Indices && "Unexpected out of bound"); in ComputeLinearIndex()
58 if (Indices) { in ComputeLinearIndex()
59 assert(*Indices < NumElts && "Unexpected out of bound"); in ComputeLinearIndex()
62 CurIndex += EltLinearOffset* *Indices; in ComputeLinearIndex()
63 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
H A DShadowStackGCLowering.cpp265 Value *Indices[] = {ConstantInt::get(Type::getInt32Ty(Context), 0), in CreateGEP() local
268 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
278 Value *Indices[] = {ConstantInt::get(Type::getInt32Ty(Context), 0), in CreateGEP() local
280 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeIndexDiscovery.h31 SmallVectorImpl<TypeIndex> &Indices);
33 SmallVectorImpl<TypeIndex> &Indices);
42 SmallVectorImpl<TypeIndex> &Indices);
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DMinimalTypeDumper.cpp305 auto Indices = Args.getIndices(); in visitKnownRecord() local
306 if (Indices.empty()) in visitKnownRecord()
309 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord()
312 for (auto I : Indices) in visitKnownRecord()
321 if (Indices.empty()) in visitKnownRecord()
324 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord()
327 for (auto I : Indices) in visitKnownRecord()
490 auto Indices = BI.ArgIndices; in visitKnownRecord() local
491 if (Indices.empty()) in visitKnownRecord()
494 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/variant/variant.variant/
H A Dvariant_size.pass.cpp25 template <size_t ...Indices>
26 struct make_variant_imp<std::integer_sequence<size_t, Indices...>> {
28 using type = std::variant<AlwaysChar<Indices>...>;
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DRecordName.cpp81 auto Indices = Args.getIndices(); in visitKnownRecord() local
82 uint32_t Size = Indices.size(); in visitKnownRecord()
85 if (Indices[I] < CurrentTypeIndex) in visitKnownRecord()
86 Name.append(Types.getTypeName(Indices[I])); in visitKnownRecord()
88 Name.append("<unknown 0x" + utohexstr(Indices[I].getIndex()) + ">"); in visitKnownRecord()
98 auto Indices = Strings.getIndices(); in visitKnownRecord() local
99 uint32_t Size = Indices.size(); in visitKnownRecord()
102 Name.append(Types.getTypeName(Indices[I])); in visitKnownRecord()
H A DTypeIndexDiscovery.cpp464 SmallVectorImpl<TypeIndex> &Indices) { in resolveTypeIndexReferences() argument
465 Indices.clear(); in resolveTypeIndexReferences()
477 Indices.append(Run.begin(), Run.end()); in resolveTypeIndexReferences()
482 SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndices() argument
483 return discoverTypeIndices(Type.RecordData, Indices); in discoverTypeIndices()
487 SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndices() argument
490 resolveTypeIndexReferences(RecordData, Refs, Indices); in discoverTypeIndices()
517 ArrayRef<uint8_t> RecordData, SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndicesInSymbol() argument
521 resolveTypeIndexReferences(RecordData, Refs, Indices); in discoverTypeIndicesInSymbol()
H A DTypeHashing.cpp53 ArrayRef<TypeIndex> Indices( in hashType()
55 for (TypeIndex TI : Indices) { in hashType()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A Dthread.h39 template <typename FPtr, typename... Args, size_t... Indices>
41 std::index_sequence<Indices...>) { in Apply() argument
42 std::move(std::get<0>(Callee))(std::move(std::get<Indices + 1>(Callee))...); in Apply()
49 std::make_index_sequence<std::tuple_size<CalleeTuple>() - 1> Indices{}; in GenericThreadProxy()
50 Apply(*Callee.get(), Indices); in GenericThreadProxy()
H A DHashBuilder.h328 template <typename... Ts, std::size_t... Indices>
330 std::index_sequence<Indices...>) { in addTupleHelper() argument
331 add(std::get<Indices>(Arg)...); in addTupleHelper()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp2550 if (Indices.size() < 4) in lowerVECTOR_SHUFFLE_SHF()
2555 int Idx = Indices[j]; in lowerVECTOR_SHUFFLE_SHF()
2632 for (const auto &V : Indices) { in isVECTOR_SHUFFLE_SPLATI()
2639 return fitsRegularPattern<int>(Indices.begin(), 1, Indices.end(), SplatIndex, in isVECTOR_SHUFFLE_SPLATI()
2666 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVEV()
2712 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVOD()
2854 const auto &Mid = Indices.begin() + Indices.size() / 2; in lowerVECTOR_SHUFFLE_PCKEV()
2897 const auto &Mid = Indices.begin() + Indices.size() / 2; in lowerVECTOR_SHUFFLE_PCKOD()
2940 int Idx = Indices[i]; in lowerVECTOR_SHUFFLE_VSHF()
2948 for (int Idx : Indices) in lowerVECTOR_SHUFFLE_VSHF()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Dstl_extras.h37 using Indices = std::make_index_sequence< in decltype() local
41 Indices{}); in decltype()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp58 ArrayRef<unsigned> Indices; member in __anondaf74ed60111::X86InterleavedAccessGroup
114 : Inst(I), Shuffles(Shuffs), Indices(Ind), Factor(F), Subtarget(STarget), in X86InterleavedAccessGroup()
189 createSequentialMask(Indices[i], SubVecTy->getNumElements(), in decompose()
758 Shuffles[i]->replaceAllUsesWith(TransposedVectors[Indices[i]]); in lowerIntoOptimizedSequence()
812 ArrayRef<unsigned> Indices, unsigned Factor) const { in lowerInterleavedLoad() argument
816 assert(Shuffles.size() == Indices.size() && in lowerInterleavedLoad()
821 X86InterleavedAccessGroup Grp(LI, Shuffles, Indices, Factor, Subtarget, in lowerInterleavedLoad()
839 SmallVector<unsigned, 4> Indices; in lowerInterleavedStore() local
842 Indices.push_back(Mask[i]); in lowerInterleavedStore()
848 X86InterleavedAccessGroup Grp(SI, Shuffles, Indices, Factor, Subtarget, in lowerInterleavedStore()
/llvm-project-15.0.7/llvm/include/llvm/XRay/
H A DBlockIndexer.h39 Index &Indices;
44 explicit BlockIndexer(Index &I) : Indices(I) {} in BlockIndexer()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMemIntrinsicResults.cpp97 SmallVector<SlotIndex, 4> Indices; in replaceDominatedUses() local
127 Indices.push_back(WhereIdx.getRegSlot()); in replaceDominatedUses()
133 LIS.extendToIndices(*ToLI, Indices); in replaceDominatedUses()
H A DWebAssemblyFixIrreducibleControlFlow.cpp376 DenseMap<MachineBasicBlock *, unsigned> Indices; in makeSingleEntryLoop() local
378 auto Pair = Indices.insert(std::make_pair(Entry, 0)); in makeSingleEntryLoop()
454 .addImm(Indices[Entry]); in makeSingleEntryLoop()
466 if (Op.isMBB() && Indices.count(Op.getMBB())) in makeSingleEntryLoop()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeEnumTypes.cpp54 std::vector<codeview::TypeIndex> Indices) in NativeEnumTypes() argument
55 : Matches(std::move(Indices)), Index(0), Session(PDBSession) {} in NativeEnumTypes()
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm_ocaml.c757 const unsigned *Indices = LLVMGetIndices(Instr); in llvm_indices() local
760 Op_val(indices)[i] = Val_int(Indices[i]); in llvm_indices()
993 return LLVMConstGEP(ConstantVal, (LLVMValueRef *)Op_val(Indices), in llvm_const_gep()
994 Wosize_val(Indices)); in llvm_const_gep()
999 value Indices) { in llvm_const_gep2() argument
1001 Wosize_val(Indices)); in llvm_const_gep2()
1007 Wosize_val(Indices)); in llvm_const_in_bounds_gep()
2062 Wosize_val(Indices), String_val(Name)); in llvm_build_gep()
2069 (LLVMValueRef *)Op_val(Indices), Wosize_val(Indices), in llvm_build_gep2()
2077 (LLVMValueRef *)Op_val(Indices), in llvm_build_in_bounds_gep()
[all …]
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/
H A DClusteringTest.cpp25 static const auto HasPoints = [](const std::vector<int> &Indices) { in __anon56ec65d00202() argument
27 UnorderedElementsAreArray(Indices)); in __anon56ec65d00202()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp299 SmallVector<Value *, 8> Indices; in replace() local
300 Indices.append(GEP->idx_begin(), GEP->idx_end()); in replace()
302 GetElementPtrInst::Create(GEP->getSourceElementType(), V, Indices); in replace()
659 Value *Indices[2] = { in unpackLoadToAggregate() local
663 auto *Ptr = IC.Builder.CreateInBoundsGEP(ST, Addr, makeArrayRef(Indices), in unpackLoadToAggregate()
705 Value *Indices[2] = { in unpackLoadToAggregate() local
709 auto *Ptr = IC.Builder.CreateInBoundsGEP(AT, Addr, makeArrayRef(Indices), in unpackLoadToAggregate()
1182 Value *Indices[2] = { in unpackStoreToAggregate() local
1186 auto *Ptr = IC.Builder.CreateInBoundsGEP(ST, Addr, makeArrayRef(Indices), in unpackStoreToAggregate()
1228 Value *Indices[2] = { in unpackStoreToAggregate() local
[all …]

1234567