reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/ArrayRef.h
  184     ArrayRef<T> slice(size_t N) const { return slice(N, size() - N); }
  189       return slice(N, size() - N);
  195       return slice(0, size() - N);
include/llvm/CodeGen/LiveIntervals.h
  357       return getRegMaskSlots().slice(P.first, P.second);
  368       return getRegMaskBits().slice(P.first, P.second);
include/llvm/Object/Minidump.h
   40     return getData().slice(Stream.Location.RVA, Stream.Location.DataSize);
include/llvm/Support/BinaryByteStream.h
   45     Buffer = Data.slice(Offset, Size);
  153     Buffer = makeArrayRef(Data).slice(Offset, Size);
lib/Analysis/ConstantFolding.cpp
  775              SrcElemTy, Ops.slice(1, i - 1)))) &&
 1050         return ConstantFoldCall(Call, F, Ops.slice(0, Ops.size() - 1), TLI);
lib/Analysis/InstructionSimplify.cpp
 4188     if (InsertValueIdxs.slice(0, NumCommonIdxs) ==
 4189         Idxs.slice(0, NumCommonIdxs)) {
lib/Bitcode/Reader/BitcodeReader.cpp
 5894           ArrayRef<uint64_t>(Record).slice(RefListStartIndex, NumRefs));
 5980           ArrayRef<uint64_t>(Record).slice(RefListStartIndex, NumRefs));
 6039           ArrayRef<uint64_t>(Record).slice(RefListStartIndex, NumRefs));
 6375         F.Mods.push_back({Stream.getBitcodeBytes().slice(
lib/Bitcode/Reader/MetadataLoader.cpp
  597         ArrayRef<uint64_t> Args = SubExpr.slice(1, HistoricSize-1);
lib/Bitcode/Writer/ValueEnumerator.h
  205     return makeArrayRef(MDs).slice(NumModuleMDs, NumMDStrings);
lib/CodeGen/AsmPrinter/DebugLocStream.h
  113         .slice(Lists[LI].EntryOffset, getNumEntries(LI));
  119         .slice(Entries[EI].ByteOffset, getNumBytes(EI));
  124         .slice(Entries[EI].CommentOffset, getNumComments(EI));
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
18319               ExtractVT, SDLoc(N), V->ops().slice(IdxVal, NumElems));
18430       llvm::all_of(Mask.slice(NumElemsPerConcat, NumElemsPerConcat),
18434                               Mask.slice(0, NumElemsPerConcat));
18443     ArrayRef<int> SubMask = Mask.slice(Begin, NumElemsPerConcat);
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
 4109   ArrayRef<int> NewMask = SV->getMask().slice(0, VT.getVectorNumElements());
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 9589     auto ExtractedTFs = ArrayRef<SDValue>(Vals).slice(SliceIdx, Limit);
lib/DebugInfo/CodeView/TypeHashing.cpp
   46     ArrayRef<uint8_t> PreData = RecordData.slice(Off, PreLen);
   50     auto RefData = RecordData.slice(Ref.Offset, Ref.Count * sizeof(TypeIndex));
lib/ExecutionEngine/Interpreter/Interpreter.cpp
   93       ArgValues.slice(0, std::min(ArgValues.size(), ArgCount));
lib/FuzzMutate/IRMutator.cpp
  116   auto InstsBefore = makeArrayRef(Insts).slice(0, IP);
lib/IR/AutoUpgrade.cpp
  709       ArrayRef<Type *> ParamTypes = F->getFunctionType()->params().slice(0, 3);
  717       ArrayRef<Type *> ParamTypes = F->getFunctionType()->params().slice(0, 3);
lib/Object/Minidump.cpp
  107   return Data.slice(Offset, Size);
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  818       makeArrayRef(Filenames).slice(R.FilenamesBegin, R.FilenamesSize),
lib/Support/BinaryStreamRef.cpp
   99     Buffer = Buffer.slice(0, MaxLength);
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
  277   Bytes = Bytes_.slice(0, MaxInstBytesNum);
  333     Bytes = Bytes_.slice(0, MaxInstBytesNum);
  367     Bytes = Bytes_.slice(0, MaxInstBytesNum);
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
 1793       if (XorPow2(SM.Mask.slice(J, I), I) != X)
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
  361       SDValue W = buildVector32(Values.slice(i, OpsPerWord), dl, PartVT, DAG);
lib/Target/X86/X86ISelLowering.cpp
 5192   return llvm::all_of(Mask.slice(Pos, Size),
 5272   return llvm::all_of(Mask.slice(Pos, Size),
 5477                               Vec->ops().slice(IdxVal, ElemsPerChunk));
 9820         DAG.getBuildVector(HVT, dl, Op->ops().slice(0, NumElems / 2));
 9822         HVT, dl, Op->ops().slice(NumElems / 2, NumElems /2));
 9981                              Ops.slice(0, NumOperands/2));
10070                              Ops.slice(0, NumOperands/2));
10742   if (isAnyInRange(Mask.slice(Split, Size - Split), TruncatedVectorStart,
11631   ArrayRef<int> StubMask = Mask.slice(ZeroLo, Len);
14520   ArrayRef<int> LoMask = Mask.slice(0, Mask.size() / 2);
17003     for (int M : Mask.slice(0, NumElements / 2))
40540                                       StoredVal->ops().slice(0, 32));
40543                                       StoredVal->ops().slice(32, 32));
40819         ArrayRef<int> Mask = ArrayRef<int>(SrcShuffleMask).slice(0, NumElts);
44640         InVec.getNode()->ops().slice(IdxVal, VT.getVectorNumElements()));
lib/Transforms/Scalar/MergeICmps.cpp
  700     return mergeComparisons(makeArrayRef(Comparisons_).slice(I, Num),
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  597   return std::make_pair(Chain.slice(0, NumLeft), Chain.slice(NumLeft));
  723   return Chain.slice(0, ChainIdx);
 1005     return vectorizeStoreChain(Chain.slice(0, TargetVF),
 1155     return vectorizeLoadChain(Chain.slice(0, TargetVF), InstructionsProcessed) |
lib/Transforms/Vectorize/SLPVectorizer.cpp
 5349     ArrayRef<Value *> Operands = Chain.slice(i, VF);
 5569       ArrayRef<Value *> Ops = VL.slice(I, OpsWidth);
tools/clang/lib/AST/ExprConstant.cpp
 5055                                       Path.slice(0, PathLength))) {
tools/clang/lib/CodeGen/CGBuiltin.cpp
 6948     return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(0, 1), nullptr,
 6953     return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(0, 2), nullptr,
 6958     return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(0, 3), nullptr,
 6963     return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(0, 4), nullptr,
 6969         packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 1), nullptr, Ops[2],
 6981     return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 2), Ops[0],
 6987         packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 3), nullptr, Ops[4],
 7000     return packTBLDVectorList(CGF, makeArrayRef(Ops).slice(1, 4), Ops[0],
tools/clang/lib/CodeGen/CGExprConstant.cpp
  525       CGM, makeArrayRef(Elems).slice(First, Length),
  526       makeArrayRef(Offsets).slice(First, Length), Offset, getSize(DesiredTy),
tools/lld/ELF/EhFrame.cpp
  101   StringRef s = toStringRef(d.slice(0, end - d.begin()));
tools/lld/ELF/InputFiles.cpp
  375   return makeArrayRef(this->symbols).slice(1, this->firstGlobal - 1);
tools/lld/ELF/InputSection.cpp
 1253     pieces.emplace_back(i, xxHash64(data.slice(i, entSize)), !isAlloc);
tools/lld/ELF/InputSection.h
  259     return {toStringRef(data().slice(begin, end - begin)), pieces[i].hash};
tools/lld/ELF/Writer.cpp
 1316   for (InputSection *isec : makeArrayRef(unorderedSections).slice(0, insPt))
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  335       pages.back().entries = remainingInfos.slice(0, entriesInPage);
tools/lld/lib/ReaderWriter/MachO/File.h
   45     ArrayRef<uint8_t> content = inSection->content.slice(sectionOffset,
   67     ArrayRef<uint8_t> content = inSection->content.slice(sectionOffset,
tools/lld/wasm/InputChunks.h
  165     return file->codeSection->Content.slice(getInputSectionOffset(),
tools/lldb/source/Host/common/Editline.cpp
  905     PrintCompletion(output_file, results.slice(cur_pos, next_size), max_len);
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
   53       GetData().slice(module->CvRecord.RVA, module->CvRecord.DataSize);
  107   return GetData().slice(location.RVA, location.DataSize);
  381                                GetData().slice(base_rva, range_size));
  410   return range->range_ref.slice(offset, overlap);
tools/llvm-objcopy/COFF/Reader.cpp
  122         Sym.AuxData.push_back(AuxData.slice(I * SymSize, sizeof(AuxSymbol)));
tools/llvm-objdump/llvm-objdump.cpp
  728       dumpBytes(Bytes.slice(0, 4), OS);
 1056       dumpBytes(Bytes.slice(Index, 4), outs());
 1062       dumpBytes(Bytes.slice(Index, 2), outs());
 1068       dumpBytes(Bytes.slice(Index, 1), outs());
 1351       DisAsm->onSymbolStart(SymbolName, Size, Bytes.slice(Start, End - Start),
 1395                   countSkippableZeroBytes(Bytes.slice(Index, MaxOffset))) {
 1422                       Bytes.slice(Index, Size),
tools/llvm-readobj/ELFDumper.cpp
  290     return Table.slice(0, Size);
 2472   return GotEntries.slice(Skip, LocalNum - Skip);
 2480   return GotEntries.slice(LocalNum, GlobalNum);
 2489   return GotEntries.slice(LocalNum + GlobalNum, OtherNum);
 2528   return PltEntries.slice(2, PltEntries.size() - 2);
 5151       W.printBinary("Magic", makeArrayRef(E->e_ident).slice(ELF::EI_MAG0, 4));
unittests/ADT/ArrayRefTest.cpp
   91   EXPECT_EQ(AR.size() - 1, AR.slice(1, AR.size() - 1).size());
  183   ArrayRef<int> AR1b = AR1a.slice(2, 4);
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp
  497   BufferRef = BufferRef.slice(Offset, Layout.SB->BlockSize);
unittests/Support/BinaryStreamTest.cpp
  206     EXPECT_EQ(makeArrayRef(InputData).slice(2, 1), Buffer);
  208     EXPECT_EQ(makeArrayRef(InputData).slice(0, 4), Buffer);
  226     EXPECT_EQ(makeArrayRef(InputData).slice(2, 1), Buffer);
  244       EXPECT_EQ(makeArrayRef(InputData).slice(3, 1), Buffer);
utils/TableGen/CodeGenRegisters.h
  236       return makeArrayRef(RegUnitLaneMasks).slice(0, NativeRegUnits.count());
utils/TableGen/CodeGenSchedule.cpp
   85     auto Generics = Instructions.slice(0, NumGeneric);
   86     auto Pseudos = Instructions.slice(NumGeneric, NumPseudos);