Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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.h206 Expected<ArrayRef<uint8_t>> Slice = in getDataSliceAs() local
208 if (!Slice) in getDataSliceAs()
209 return Slice.takeError(); in getDataSliceAs()
210 return ArrayRef<T>(reinterpret_cast<const T *>(Slice->data()), Count); in getDataSliceAs()
/llvm-project-15.0.7/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()
244 buildFatArchList(ArrayRef<Slice> Slices) { in buildFatArchList()
314 Error object::writeUniversalBinary(ArrayRef<Slice> Slices, in writeUniversalBinary()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp122 Expected<Slice> ArchiveOrSlice = Slice::create(A, &LLVMCtx); in createSliceFromArchive()
129 Expected<Slice> IROrErr = Slice::create(IRO, Align); in createSliceFromIR()
399 Expected<Slice> SliceOrErr = Slice::create(**IROrError, O.getAlign()); in printBinaryArchs()
533 for (auto &Slice : Slices) { in updateAlignments() local
555 static SmallVector<Slice, 2>
590 Expected<Slice> SliceOrErr = Slice::create(*IRO, 0); in buildSlices()
656 static StringMap<Slice>
659 StringMap<Slice> Slices; in buildReplacementSlices()
668 Slice S(*O); in buildReplacementSlices()
677 Slices, [](StringMapEntry<Slice> &E) -> Slice & { return E.getValue(); }); in buildReplacementSlices()
[all …]
/llvm-project-15.0.7/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;
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dobjc2-write-barrier-3.m8 struct Slice { struct
12 typedef struct Slice Slice; typedef
37 Slice *slice;
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp145 class Slice { class
157 Slice() = default;
494 for (Slice &S : P) in advance()
1889 for (const Slice &S : P) in isVectorPromotionViable()
2102 for (const Slice &S : P) in isIntegerWideningViable()
3784 Slice *S; in presplitLoadsAndStores()
3804 for (Slice &S : P) { in presplitLoadsAndStores()
4332 for (Slice &S : P) { in rewritePartition()
4426 for (Slice &S : AS) in splitAlloca()
4431 for (Slice &S : AS) { in splitAlloca()
[all …]
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp647 for (auto Slice : Obj.objects()) { in macho2yaml() local
649 arch.cputype = Slice.getCPUType(); in macho2yaml()
650 arch.cpusubtype = Slice.getCPUSubType(); in macho2yaml()
651 arch.offset = Slice.getOffset(); in macho2yaml()
652 arch.size = Slice.getSize(); in macho2yaml()
653 arch.align = Slice.getAlign(); in macho2yaml()
654 arch.reserved = Slice.getReserved(); in macho2yaml()
657 auto SliceObj = Slice.getAsObjectFile(); in macho2yaml()
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Dprevent-hoisting.ll29 …2]]]], [16 x i32], i8**, i32*, i32***, i32**, i32, i32, i32, i32, %struct.Slice*, %struct.macroblo…
30 %struct.Slice = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.datapartition*, %struct…
80 %12 = getelementptr inbounds %struct.Slice, %struct.Slice* null, i32 0, i32 9
/llvm-project-15.0.7/polly/test/CodeGen/
H A Dtwo-loops-right-after-each-other-2.ll6 …****, i32***, i32***, i32***, i32****, i32****, %struct.Picture*, %struct.Slice*, %struct.macroblo…
7 %struct.Picture = type { i32, i32, [100 x %struct.Slice*], i32, float, float, float }
8 %struct.Slice = type { i32, i32, i32, i32, i32, i32, %struct.datapartition*, %struct.MotionInfoCont…
H A Derror_block_contains_invalid_memory_access.ll5 …2]]]], [16 x i32], i8**, i32*, i32***, i32**, i32, i32, i32, i32, %struct.Slice.8.29.50.239.344.55…
6 %struct.Slice.8.29.50.239.344.554.596.848.995.1205.2066.2150.2171.2234.2255.2276.2318 = type { i32,…
/llvm-project-15.0.7/llvm/tools/llvm-libtool-darwin/
H A Dllvm-libtool-darwin.cpp539 static Expected<SmallVector<Slice, 2>>
542 SmallVector<Slice, 2> Slices; in buildSlices()
546 Expected<Slice> ArchiveSlice = Slice::create(A, &LLVMCtx); in buildSlices()
631 Expected<SmallVector<Slice, 2>> Slices = buildSlices(LLVMCtx, OutputBinaries); in createStaticLibrary()
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A D2008-05-19-LiveIntervalsBug.ll8 …****, i32***, i32***, i32***, i32****, i32****, %struct.Picture*, %struct.Slice*, %struct.Macroblo…
11 %struct.Picture = type { i32, i32, [100 x %struct.Slice*], i32, float, float, float }
12 …%struct.Slice = type { i32, i32, i32, i32, i32, i32, %struct.DataPartition*, %struct.MotionInfoCon…
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Dslicing.rst21 use(d); // Slice.
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSelectOptimize.cpp182 void getExclBackwardsSlice(Instruction *I, std::stack<Instruction *> &Slice,
713 std::stack<Instruction *> &Slice, in getExclBackwardsSlice() argument
742 Slice.push(II); in getExclBackwardsSlice()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp4231 Slice.Array = nullptr; in getConstantDataArrayInfo()
4232 Slice.Offset = 0; in getConstantDataArrayInfo()
4272 Slice.Array = Array; in getConstantDataArrayInfo()
4273 Slice.Offset = Offset; in getConstantDataArrayInfo()
4284 ConstantDataArraySlice Slice; in getConstantStringInfo() local
4288 if (Slice.Array == nullptr) { in getConstantStringInfo()
4299 if (Slice.Length == 1) { in getConstantStringInfo()
4311 Str = Str.substr(Slice.Offset); in getConstantStringInfo()
4370 ConstantDataArraySlice Slice; in GetStringLengthH() local
4374 if (Slice.Array == nullptr) in GetStringLengthH()
[all …]
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSmallStringTest.cpp140 TEST_F(SmallStringTest, Slice) { in TEST_F() argument
/llvm-project-15.0.7/mlir/test/Transforms/
H A Dloop-fusion-slice-computation.mlir40 // Slice loop bounds should be adjusted such that the load/store are for the
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueTracking.h329 bool getConstantDataArrayInfo(const Value *V, ConstantDataArraySlice &Slice,
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp819 ConstantDataArraySlice Slice; in optimizeStringLength() local
820 if (getConstantDataArrayInfo(GEP->getOperand(0), Slice, CharSize)) { in optimizeStringLength()
822 if (Slice.Array == nullptr) { in optimizeStringLength()
826 for (uint64_t I = 0, E = Slice.Length; I < E; ++I) { in optimizeStringLength()
827 if (Slice.Array->getElementAsInteger(I + Slice.Offset) == 0) { in optimizeStringLength()
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp478 SmallVector<Slice, 2> Slices; in executeObjcopyOnMachOUniversalBinary()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp5999 ArrayRef<Value *> Slice = VL.slice(Cnt, VF); in getEntryCost() local
6000 if (!VectorizedLoads.count(Slice.front()) && in getEntryCost()
6001 !VectorizedLoads.count(Slice.back()) && allSameBlock(Slice)) { in getEntryCost()
6005 canVectorizeLoads(Slice, Slice.front(), *TTI, *DL, *SE, *LI, in getEntryCost()
6016 VectorizedLoads.insert(Slice.begin(), Slice.end()); in getEntryCost()
10219 ArrayRef<Value *> Slice = makeArrayRef(Operands).slice(Cnt, Size); in vectorizeStores() local
10220 if (!VectorizedStores.count(Slice.front()) && in vectorizeStores()
10221 !VectorizedStores.count(Slice.back()) && in vectorizeStores()
10222 vectorizeStoreChain(Slice, R, Cnt, MinVF)) { in vectorizeStores()
10224 VectorizedStores.insert(Slice.begin(), Slice.end()); in vectorizeStores()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp6629 const ConstantDataArraySlice &Slice) { in getMemsetStringVal() argument
6631 if (Slice.Array == nullptr) { in getMemsetStringVal()
6650 unsigned NumBytes = std::min(NumVTBytes, unsigned(Slice.Length)); in getMemsetStringVal()
6655 Val |= (uint64_t)(unsigned char)Slice[i] << i*8; in getMemsetStringVal()
6658 Val |= (uint64_t)(unsigned char)Slice[i] << (NumVTBytes-i-1)*8; in getMemsetStringVal()
6708 return getConstantDataArrayInfo(G->getGlobal(), Slice, 8, in isMemSrcFromConstant()
6777 ConstantDataArraySlice Slice; in getMemcpyLoadsAndStores() local
6779 bool CopyFromConstant = !isVol && isMemSrcFromConstant(Src, Slice); in getMemcpyLoadsAndStores()
6780 bool isZeroConstant = CopyFromConstant && Slice.Array == nullptr; in getMemcpyLoadsAndStores()
6848 if (SrcOff < Slice.Length) { in getMemcpyLoadsAndStores()
[all …]

12