Home
last modified time | relevance | path

Searched refs:Slice (Results 1 – 20 of 20) sorted by relevance

/openbsd-src/gnu/llvm/llvm/include/llvm/Object/
H A DMachOUniversalWriter.h34 class Slice {
45 Slice(const IRObjectFile &IRO, uint32_t CPUType, uint32_t CPUSubType,
49 explicit Slice(const MachOObjectFile &O);
51 Slice(const MachOObjectFile &O, uint32_t Align);
56 Slice(const Archive &A, uint32_t CPUType, uint32_t CPUSubType,
59 static Expected<Slice> create(const Archive &A,
62 static Expected<Slice> create(const IRObjectFile &IRO, uint32_t Align);
86 friend bool operator<(const Slice &Lhs, const Slice &Rhs) {
100 Error writeUniversalBinary(ArrayRef<Slice> Slices, StringRef OutputFileName);
102 Error writeUniversalBinaryToStream(ArrayRef<Slice> Slices, raw_ostream &Out);
H A DMinidump.h207 Expected<ArrayRef<uint8_t>> Slice = in getDataSliceAs() local
209 if (!Slice) in getDataSliceAs()
210 return Slice.takeError(); in getDataSliceAs()
211 return ArrayRef<T>(reinterpret_cast<const T *>(Slice->data()), Count); in getDataSliceAs()
/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DMachOUniversalWriter.cpp85 Slice::Slice(const Archive &A, uint32_t CPUType, uint32_t CPUSubType, in Slice() function in Slice
90 Slice::Slice(const MachOObjectFile &O, uint32_t Align) in Slice() function in Slice
96 Slice::Slice(const IRObjectFile &IRO, uint32_t CPUType, uint32_t CPUSubType, in Slice() function in Slice
101 Slice::Slice(const MachOObjectFile &O) : Slice(O, calculateAlignment(O)) {} in Slice() function in Slice
120 Expected<Slice> Slice::create(const Archive &A, LLVMContext *LLVMCtx) { in create()
216 Slice ArchiveSlice(*(MFO), MFO->is64Bit() ? 3 : 2); in create()
222 Expected<Slice> ArchiveSliceOrErr = Slice::create(*IRFO, 0); in create()
230 Expected<Slice> Slice::create(const IRObjectFile &IRO, uint32_t Align) { in create()
240 return Slice{IRO, CPUType, CPUSubType, std::move(ArchName), Align}; in create()
244 buildFatArchList(ArrayRef<Slice> Slices) { in buildFatArchList()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp126 static Slice createSliceFromArchive(LLVMContext &LLVMCtx, const Archive &A) { in createSliceFromArchive()
127 Expected<Slice> ArchiveOrSlice = Slice::create(A, &LLVMCtx); in createSliceFromArchive()
133 static Slice createSliceFromIR(const IRObjectFile &IRO, unsigned Align) { in createSliceFromIR()
134 Expected<Slice> IROrErr = Slice::create(IRO, Align); in createSliceFromIR()
331 const auto S = B->isMachO() ? Slice(*cast<MachOObjectFile>(B)) in readInputBinaries()
392 OS << Slice(*(MachOObjOrError->get())).getArchString() << " "; in printBinaryArchs()
399 Expected<Slice> SliceOrErr = Slice::create(**IROrError, O.getAlign()); in printBinaryArchs()
424 OS << Slice(*MachO).getArchString() << " \n"; in printBinaryArchs()
430 Expected<Slice> SliceOrErr = createSliceFromIR(*IR, 0); in printBinaryArchs()
518 static void checkArchDuplicates(ArrayRef<Slice> Slices) { in checkArchDuplicates()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DLEB128.h144 uint64_t Slice = *p & 0x7f; variable
145 if ((Shift >= 64 && Slice != 0) || Slice << Shift >> Shift != Slice) {
152 Value += Slice << Shift;
179 uint64_t Slice = Byte & 0x7f; variable
180 if ((Shift >= 64 && Slice != (Value < 0 ? 0x7f : 0x00)) ||
181 (Shift == 63 && Slice != 0 && Slice != 0x7f)) {
188 Value |= Slice << Shift;
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DCRC.cpp92 ArrayRef<uint8_t> Slice = Data.take_front(UINT32_MAX); in crc32() local
93 CRC = ::crc32(CRC, (const Bytef *)Slice.data(), (uInt)Slice.size()); in crc32()
94 Data = Data.drop_front(Slice.size()); in crc32()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DSROA.cpp255 class Slice { class
267 Slice() = default;
269 Slice(uint64_t BeginOffset, uint64_t EndOffset, Use *U, bool IsSplittable) in Slice() function in __anon4aa1d6df0111::Slice
290 bool operator<(const Slice &RHS) const { in operator <()
303 friend LLVM_ATTRIBUTE_UNUSED bool operator<(const Slice &LHS, in operator <()
308 const Slice &RHS) { in operator <()
312 bool operator==(const Slice &RHS) const { in operator ==()
316 bool operator!=(const Slice &RHS) const { return !operator==(RHS); } in operator !=()
341 using iterator = SmallVectorImpl<Slice>::iterator;
347 using const_iterator = SmallVectorImpl<Slice>::const_iterator;
[all …]
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp686 for (auto Slice : Obj.objects()) { in macho2yaml() local
688 arch.cputype = Slice.getCPUType(); in macho2yaml()
689 arch.cpusubtype = Slice.getCPUSubType(); in macho2yaml()
690 arch.offset = Slice.getOffset(); in macho2yaml()
691 arch.size = Slice.getSize(); in macho2yaml()
692 arch.align = Slice.getAlign(); in macho2yaml()
693 arch.reserved = Slice.getReserved(); in macho2yaml()
696 auto SliceObj = Slice.getAsObjectFile(); in macho2yaml()
/openbsd-src/gnu/llvm/llvm/tools/llvm-libtool-darwin/
H A Dllvm-libtool-darwin.cpp552 static Expected<SmallVector<Slice, 2>>
555 SmallVector<Slice, 2> Slices; in buildSlices()
559 Expected<Slice> ArchiveSlice = Slice::create(A, &LLVMCtx); in buildSlices()
644 Expected<SmallVector<Slice, 2>> Slices = buildSlices(LLVMCtx, OutputBinaries); in createStaticLibrary()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/
H A DLinePrinter.cpp209 BinaryStreamRef Slice(*S); in formatMsfStreamData() local
212 Substream.StreamData = Slice.drop_front(Offset).keep_front(Size); in formatMsfStreamData()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DSelectOptimize.cpp182 void getExclBackwardsSlice(Instruction *I, std::stack<Instruction *> &Slice,
755 std::stack<Instruction *> &Slice, in getExclBackwardsSlice() argument
791 Slice.push(II); in getExclBackwardsSlice()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DValueTracking.cpp4296 ConstantDataArraySlice &Slice, in getConstantDataArrayInfo() argument
4339 Slice.Array = nullptr; in getConstantDataArrayInfo()
4340 Slice.Offset = 0; in getConstantDataArrayInfo()
4345 Slice.Length = Length < Offset ? 0 : Length - Offset; in getConstantDataArrayInfo()
4380 Slice.Array = Array; in getConstantDataArrayInfo()
4381 Slice.Offset = Offset; in getConstantDataArrayInfo()
4382 Slice.Length = NumElts - Offset; in getConstantDataArrayInfo()
4392 ConstantDataArraySlice Slice; in getConstantStringInfo() local
4393 if (!getConstantDataArrayInfo(V, Slice, 8)) in getConstantStringInfo()
4396 if (Slice.Array == nullptr) { in getConstantStringInfo()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DValueTracking.h321 bool getConstantDataArrayInfo(const Value *V, ConstantDataArraySlice &Slice,
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp941 ConstantDataArraySlice Slice; in optimizeStringLength() local
942 if (getConstantDataArrayInfo(GEP->getOperand(0), Slice, CharSize)) { in optimizeStringLength()
944 if (Slice.Array == nullptr) { in optimizeStringLength()
948 for (uint64_t I = 0, E = Slice.Length; I < E; ++I) { in optimizeStringLength()
949 if (Slice.Array->getElementAsInteger(I + Slice.Offset) == 0) { in optimizeStringLength()
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp478 SmallVector<Slice, 2> Slices; in executeObjcopyOnMachOUniversalBinary()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4096 ArrayRef<int> Slice = ArrayRef(NewMask).slice(0, Sz); in reorderNodeWithReuses() local
4097 SmallVector<unsigned> NewOrder(Slice.begin(), Slice.end()); in reorderNodeWithReuses()
6823 ArrayRef<Value *> Slice = VL.slice(Cnt, VF); in getEntryCost() local
6824 if (!VectorizedLoads.count(Slice.front()) && in getEntryCost()
6825 !VectorizedLoads.count(Slice.back()) && allSameBlock(Slice)) { in getEntryCost()
6829 canVectorizeLoads(Slice, Slice.front(), *TTI, *DL, *SE, *LI, in getEntryCost()
6840 VectorizedLoads.insert(Slice.begin(), Slice.end()); in getEntryCost()
11561 ArrayRef<Value *> Slice = ArrayRef(Operands).slice(Cnt, Size); in vectorizeStores() local
11562 if (!VectorizedStores.count(Slice.front()) && in vectorizeStores()
11563 !VectorizedStores.count(Slice.back()) && in vectorizeStores()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp6858 const ConstantDataArraySlice &Slice) { in getMemsetStringVal() argument
6860 if (Slice.Array == nullptr) { in getMemsetStringVal()
6879 unsigned NumBytes = std::min(NumVTBytes, unsigned(Slice.Length)); in getMemsetStringVal()
6884 Val |= (uint64_t)(unsigned char)Slice[i] << i*8; in getMemsetStringVal()
6887 Val |= (uint64_t)(unsigned char)Slice[i] << (NumVTBytes-i-1)*8; in getMemsetStringVal()
6923 static bool isMemSrcFromConstant(SDValue Src, ConstantDataArraySlice &Slice) { in isMemSrcFromConstant() argument
6937 return getConstantDataArrayInfo(G->getGlobal(), Slice, 8, in isMemSrcFromConstant()
7006 ConstantDataArraySlice Slice; in getMemcpyLoadsAndStores() local
7008 bool CopyFromConstant = !isVol && isMemSrcFromConstant(Src, Slice); in getMemcpyLoadsAndStores()
7009 bool isZeroConstant = CopyFromConstant && Slice.Array == nullptr; in getMemcpyLoadsAndStores()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp3383 Decl *Slice = instantiateUnresolvedUsingDecl(D, true); in instantiateUnresolvedUsingDecl() local
3384 if (!Slice) in instantiateUnresolvedUsingDecl()
3390 Expansions.push_back(cast<NamedDecl>(Slice)); in instantiateUnresolvedUsingDecl()
/openbsd-src/usr.sbin/unbound/doc/
H A Dunbound.doxygen306 # Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice
319 # Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice,
/openbsd-src/games/fortune/datfiles/
H A Dfortunes4924 Slice him up before he slays you.