| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | Legality.h | 35 IndicesVecT Indices; 38 ShuffleMask(SmallVectorImpl<int> &&Indices) : Indices(std::move(Indices)) {} in ShuffleMask() argument 39 ShuffleMask(std::initializer_list<int> Indices) : Indices(Indices) {} in ShuffleMask() argument 40 explicit ShuffleMask(ArrayRef<int> Indices) : Indices(Indices) {} in ShuffleMask() argument 41 operator ArrayRef<int>() const { return Indices; } 45 IndicesVecT Indices; in getIdentity() local 46 Indices.reserve(Sz); in getIdentity() 47 llvm::append_range(Indices, seq<int>(0, (int)Sz)); in getIdentity() 48 return ShuffleMask(std::move(Indices)); in getIdentity() 53 for (auto [Idx, Elm] : enumerate(Indices)) { in isIdentity() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | ObjCPropertyAttributeOrderFixer.cpp | 50 SmallVector<int> Indices; in sortPropertyAttributes() local 95 if (Ordinal >= Indices.size()) in sortPropertyAttributes() 96 Indices.resize(Ordinal + 1); in sortPropertyAttributes() 97 Indices[Ordinal] = Index++; in sortPropertyAttributes() 111 const auto Index = Indices[Ordinal]; in sortPropertyAttributes() 134 const auto &PropertyEntry = PropertyAttributes[Indices[Ordinal]]; in sortPropertyAttributes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILFlattenArrays.cpp | 86 ConstantInt *genConstFlattenIndices(ArrayRef<Value *> Indices, 89 Value *genInstructionFlattenIndices(ArrayRef<Value *> Indices, 119 ArrayRef<Value *> Indices, ArrayRef<uint64_t> Dims, IRBuilder<> &Builder) { in genConstFlattenIndices() argument 120 assert(Indices.size() == Dims.size() && in genConstFlattenIndices() 125 for (int I = Indices.size() - 1; I >= 0; --I) { in genConstFlattenIndices() 127 ConstantInt *CIndex = dyn_cast<ConstantInt>(Indices[I]); in genConstFlattenIndices() 136 ArrayRef<Value *> Indices, ArrayRef<uint64_t> Dims, IRBuilder<> &Builder) { in genInstructionFlattenIndices() argument 137 if (Indices.size() == 1) in genInstructionFlattenIndices() 138 return Indices[0]; in genInstructionFlattenIndices() 143 for (int I = Indices.size() - 1; I >= 0; --I) { in genInstructionFlattenIndices() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | TypeIndexDiscovery.h | 32 SmallVectorImpl<TypeIndex> &Indices); 34 SmallVectorImpl<TypeIndex> &Indices); 43 SmallVectorImpl<TypeIndex> &Indices);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | Analysis.h | 48 const unsigned *Indices, 53 ArrayRef<unsigned> Indices, 55 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordName.cpp | 81 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 D | TypeIndexDiscovery.cpp | 465 SmallVectorImpl<TypeIndex> &Indices) { in resolveTypeIndexReferences() 466 Indices.clear(); in resolveTypeIndexReferences() 478 Indices.append(Run.begin(), Run.end()); in resolveTypeIndexReferences() 483 SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndices() 484 return discoverTypeIndices(Type.RecordData, Indices); in discoverTypeIndices() 488 SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndices() 491 resolveTypeIndexReferences(RecordData, Refs, Indices); in discoverTypeIndices() 518 ArrayRef<uint8_t> RecordData, SmallVectorImpl<TypeIndex> &Indices) { in discoverTypeIndicesInSymbol() 522 resolveTypeIndexReferences(RecordData, Refs, Indices); in discoverTypeIndicesInSymbol() 464 resolveTypeIndexReferences(ArrayRef<uint8_t> RecordData,ArrayRef<TiReference> Refs,SmallVectorImpl<TypeIndex> & Indices) resolveTypeIndexReferences() argument 482 discoverTypeIndices(const CVType & Type,SmallVectorImpl<TypeIndex> & Indices) discoverTypeIndices() argument 487 discoverTypeIndices(ArrayRef<uint8_t> RecordData,SmallVectorImpl<TypeIndex> & Indices) discoverTypeIndices() argument 517 discoverTypeIndicesInSymbol(ArrayRef<uint8_t> RecordData,SmallVectorImpl<TypeIndex> & Indices) discoverTypeIndicesInSymbol() argument
|
| H A D | TypeHashing.cpp | 53 ArrayRef<TypeIndex> Indices( in hashType() 55 for (TypeIndex TI : Indices) { in hashType()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | X86.cpp | 69 int Indices[4]; in getMaskVecValue() local 71 Indices[i] = i; in getMaskVecValue() 73 MaskVec, MaskVec, ArrayRef(Indices, NumElts), "extract"); in getMaskVecValue() 247 int Indices[8]; in EmitX86MaskedCompareResult() local 249 Indices[i] = i; in EmitX86MaskedCompareResult() 251 Indices[i] = i % NumElts + NumElts; in EmitX86MaskedCompareResult() 253 Cmp, llvm::Constant::getNullValue(Cmp->getType()), Indices); in EmitX86MaskedCompareResult() 1472 int Indices[16]; in EmitX86BuiltinExpr() local 1474 Indices[i] = i + Index; in EmitX86BuiltinExpr() 1476 Value *Res = Builder.CreateShuffleVector(Ops[0], ArrayRef(Indices, NumElts), in EmitX86BuiltinExpr() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | MinimalTypeDumper.cpp | 307 auto Indices = Args.getIndices(); in visitKnownRecord() local 308 if (Indices.empty()) in visitKnownRecord() 311 auto Max = llvm::max_element(Indices); in visitKnownRecord() 314 for (auto I : Indices) in visitKnownRecord() 322 auto Indices = Strings.getIndices(); in visitKnownRecord() local 323 if (Indices.empty()) in visitKnownRecord() 326 auto Max = llvm::max_element(Indices); in visitKnownRecord() 329 for (auto I : Indices) in visitKnownRecord() 492 auto Indices = BI.ArgIndices; in visitKnownRecord() local 493 if (Indices.empty()) in visitKnownRecord() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedAccessPass.cpp | 331 SmallVector<unsigned, 4> Indices; in lowerInterleavedLoad() local 345 Indices.push_back(Index); in lowerInterleavedLoad() 357 Indices.push_back(Index); in lowerInterleavedLoad() 359 Indices.push_back(Index); in lowerInterleavedLoad() 382 for (auto [Idx, ShuffleMaskIdx] : enumerate(Indices)) in lowerInterleavedLoad() 392 if (!TLI->lowerInterleavedLoad(cast<LoadInst>(Load), Shuffles, Indices, in lowerInterleavedLoad() 467 SmallVector<int, 4> Indices; in tryReplaceExtracts() local 468 Shuffle->getShuffleMask(Indices); in tryReplaceExtracts() 469 for (unsigned I = 0; I < Indices.size(); ++I) in tryReplaceExtracts() 470 if (Indices[I] == Index) { in tryReplaceExtracts()
|
| H A D | Analysis.cpp | 34 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 D | ShadowStackGCLowering.cpp | 305 Value *Indices[] = {ConstantInt::get(Type::getInt32Ty(Context), 0), in CreateGEP() local 308 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP() 320 Value *Indices[] = {ConstantInt::get(Type::getInt32Ty(Context), 0), in CreateGEP() local 322 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsSEISelLowering.cpp | 2593 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_SHF() argument 2597 if (Indices.size() < 4) in lowerVECTOR_SHUFFLE_SHF() 2601 for (unsigned j = i; j < Indices.size(); j += 4) { in lowerVECTOR_SHUFFLE_SHF() 2602 int Idx = Indices[j]; in lowerVECTOR_SHUFFLE_SHF() 2674 SmallVector<int, 16> Indices, in isVECTOR_SHUFFLE_SPLATI() argument 2676 assert((Indices.size() % 2) == 0); in isVECTOR_SHUFFLE_SPLATI() 2679 for (const auto &V : Indices) { in isVECTOR_SHUFFLE_SPLATI() 2686 return fitsRegularPattern<int>(Indices.begin(), 1, Indices.end(), SplatIndex, in isVECTOR_SHUFFLE_SPLATI() 2706 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVEV() argument 2708 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVEV() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFPreserveStaticOffset.cpp | 192 SmallVector<Value *> Indices; member 200 Indices.clear(); in reset() 219 Args.append(GEP.Indices.begin(), GEP.Indices.end()); in fillCommonArgs() 276 SmallVector<Value *> Indices; in reconstructGEP() local 277 Indices.append(Call->data_operands_begin() + 6 + Delta, in reconstructGEP() 282 ArrayRef<Value *>(Indices), Call->getName()); in reconstructGEP() 343 Info.Indices.append(First->idx_begin(), First->idx_end()); in foldGEPChainAsStructAccess() 357 Info.Indices.append(GEP->idx_begin() + 1, GEP->idx_end()); in foldGEPChainAsStructAccess() 387 Info.Indices.push_back(ConstantInt::get(C, Offset)); in foldGEPChainAsU8Access()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InterleavedAccess.cpp | 55 ArrayRef<unsigned> Indices; member in __anon8deb9da60111::X86InterleavedAccessGroup 111 : Inst(I), Shuffles(Shuffs), Indices(Ind), Factor(F), Subtarget(STarget), in X86InterleavedAccessGroup() 186 createSequentialMask(Indices[i], SubVecTy->getNumElements(), in decompose() 751 Shuffles[i]->replaceAllUsesWith(TransposedVectors[Indices[i]]); in lowerIntoOptimizedSequence() 805 ArrayRef<unsigned> Indices, unsigned Factor) const { in lowerInterleavedLoad() argument 809 assert(Shuffles.size() == Indices.size() && in lowerInterleavedLoad() 814 X86InterleavedAccessGroup Grp(LI, Shuffles, Indices, Factor, Subtarget, in lowerInterleavedLoad() 833 SmallVector<unsigned, 4> Indices(Mask.take_front(Factor)); in lowerInterleavedStore() local 839 X86InterleavedAccessGroup Grp(SI, Shuffles, Indices, Factor, Subtarget, in lowerInterleavedStore()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | ManualDWARFIndexSet.h | 30 static std::array<T(IndexSet::*), 8> Indices() { in Indices() function 42 return llvm::all_of(Indices(), [&lhs, &rhs](T(IndexSet::*index)) {
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/XRay/ |
| H A D | BlockIndexer.h | 40 Index &Indices; 45 explicit BlockIndexer(Index &I) : Indices(I) {} in BlockIndexer()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyMemIntrinsicResults.cpp | 97 SmallVector<SlotIndex, 4> Indices; in replaceDominatedUses() local 127 Indices.push_back(WhereIdx.getRegSlot()); in replaceDominatedUses() 133 LIS.extendToIndices(*ToLI, Indices); in replaceDominatedUses()
|
| H A D | WebAssemblyFixIrreducibleControlFlow.cpp | 376 DenseMap<MachineBasicBlock *, unsigned> Indices; in makeSingleEntryLoop() local 378 auto Pair = Indices.try_emplace(Entry); in makeSingleEntryLoop() 454 .addImm(Indices[Entry]); in makeSingleEntryLoop() 466 if (Op.isMBB() && Indices.count(Op.getMBB())) in makeSingleEntryLoop()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeEnumTypes.cpp | 52 std::vector<codeview::TypeIndex> Indices) in NativeEnumTypes() argument 53 : Matches(std::move(Indices)), Index(0), Session(PDBSession) {} in NativeEnumTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | FormatVariadic.cpp | 197 SmallVector<bool> Indices(NumExpectedArgs); in parseFormatString() local 200 if (I.Type != ReplacementType::Format || Indices[I.Index]) in parseFormatString() 202 Indices[I.Index] = true; in parseFormatString()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVLegalizePointerCast.cpp | 207 SmallVectorImpl<Value *> &Indices) { in buildGEPIndexChain() argument 208 Indices.push_back(B.getInt32(0)); in buildGEPIndexChain() 214 buildGEPIndexChain(B, Search, ST->getTypeAtIndex(0u), Indices); in buildGEPIndexChain() 216 buildGEPIndexChain(B, Search, AT->getElementType(), Indices); in buildGEPIndexChain() 218 buildGEPIndexChain(B, Search, VT->getElementType(), Indices); in buildGEPIndexChain()
|
| /freebsd/contrib/pkgconf/doc/ |
| H A D | index.rst | 9 Indices and tables
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 893 ArrayRef<Value *> Indices) const { in getIndexedOffsetInType() 897 GTI = gep_type_begin(ElemTy, Indices), in getIndexedOffsetInType() 898 GTE = gep_type_end(ElemTy, Indices); in getIndexedOffsetInType() 973 SmallVector<APInt> Indices; in getGEPIndicesForOffset() local 974 Indices.push_back(getElementIndex(getTypeAllocSize(ElemTy), Offset)); in getGEPIndicesForOffset() 979 Indices.push_back(*Index); in getGEPIndicesForOffset() 982 return Indices; in getGEPIndicesForOffset()
|