Home
last modified time | relevance | path

Searched refs:FileOutputBuffer (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm-project/llvm/unittests/Support/
DFileOutputBufferTest.cpp33 TEST(FileOutputBuffer, Test) { in TEST() argument
45 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
46 FileOutputBuffer::create(File1, 8192); in TEST()
48 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
67 Expected<std::unique_ptr<FileOutputBuffer>> Buffer2OrErr = in TEST()
68 FileOutputBuffer::create(File2, 8192); in TEST()
70 std::unique_ptr<FileOutputBuffer> &Buffer2 = *Buffer2OrErr; in TEST()
84 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
85 FileOutputBuffer::create(File3, 8192000); in TEST()
87 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
[all …]
/external/llvm/unittests/Support/
DFileOutputBufferTest.cpp30 TEST(FileOutputBuffer, Test) { in TEST() argument
42 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
43 FileOutputBuffer::create(File1, 8192); in TEST()
45 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
64 ErrorOr<std::unique_ptr<FileOutputBuffer>> Buffer2OrErr = in TEST()
65 FileOutputBuffer::create(File2, 8192); in TEST()
67 std::unique_ptr<FileOutputBuffer> &Buffer2 = *Buffer2OrErr; in TEST()
81 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
82 FileOutputBuffer::create(File3, 8192000); in TEST()
84 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
[all …]
/external/llvm/include/llvm/Support/
DFileOutputBuffer.h31 class FileOutputBuffer {
41 static ErrorOr<std::unique_ptr<FileOutputBuffer>>
74 ~FileOutputBuffer();
77 FileOutputBuffer(const FileOutputBuffer &) = delete;
78 FileOutputBuffer &operator=(const FileOutputBuffer &) = delete;
80 FileOutputBuffer(std::unique_ptr<llvm::sys::fs::mapped_file_region> R,
/external/llvm/lib/Support/
DFileOutputBuffer.cpp30 FileOutputBuffer::FileOutputBuffer(std::unique_ptr<mapped_file_region> R, in FileOutputBuffer() function in llvm::FileOutputBuffer
34 FileOutputBuffer::~FileOutputBuffer() { in ~FileOutputBuffer()
38 ErrorOr<std::unique_ptr<FileOutputBuffer>>
39 FileOutputBuffer::create(StringRef FilePath, size_t Size, unsigned Flags) { in create()
99 std::unique_ptr<FileOutputBuffer> Buf( in create()
100 new FileOutputBuffer(std::move(MappedFile), FilePath, TempFilePath)); in create()
104 std::error_code FileOutputBuffer::commit() { in commit()
DCMakeLists.txt55 FileOutputBuffer.cpp
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DFileOutputBuffer.h30 class FileOutputBuffer {
50 static Expected<std::unique_ptr<FileOutputBuffer>>
75 virtual ~FileOutputBuffer() {} in ~FileOutputBuffer()
82 FileOutputBuffer(StringRef Path) : FinalPath(Path) {} in FileOutputBuffer() function
DBinaryByteStream.h209 StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer, in StreamImpl()
231 std::unique_ptr<FileOutputBuffer> FileBuffer;
235 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer, in FileBufferByteStream()
/external/llvm-project/llvm/include/llvm/Support/
DFileOutputBuffer.h28 class FileOutputBuffer {
48 static Expected<std::unique_ptr<FileOutputBuffer>>
73 virtual ~FileOutputBuffer() {} in ~FileOutputBuffer()
80 FileOutputBuffer(StringRef Path) : FinalPath(Path) {} in FileOutputBuffer() function
DBinaryByteStream.h209 StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer, in StreamImpl()
231 std::unique_ptr<FileOutputBuffer> FileBuffer;
235 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer, in FileBufferByteStream()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DFileOutputBuffer.cpp34 class OnDiskBuffer : public FileOutputBuffer {
38 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
76 class InMemoryBuffer : public FileOutputBuffer {
80 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
127 static Expected<std::unique_ptr<FileOutputBuffer>>
165 Expected<std::unique_ptr<FileOutputBuffer>>
166 FileOutputBuffer::create(StringRef Path, size_t Size, unsigned Flags) { in create()
/external/llvm-project/llvm/lib/Support/
DFileOutputBuffer.cpp34 class OnDiskBuffer : public FileOutputBuffer {
38 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
76 class InMemoryBuffer : public FileOutputBuffer {
80 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
127 static Expected<std::unique_ptr<FileOutputBuffer>>
165 Expected<std::unique_ptr<FileOutputBuffer>>
166 FileOutputBuffer::create(StringRef Path, size_t Size, unsigned Flags) { in create()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.h86 class FileOutputBuffer; variable
155 std::unique_ptr<FileOutputBuffer> out_;
317 class FileOutputBuffer {
319 FileOutputBuffer(WritableFile* file, size_t buffer_size) in FileOutputBuffer() function
324 ~FileOutputBuffer();
Dtensor_bundle.cc228 Status WriteTensor(const Tensor& val, FileOutputBuffer* out, in WriteTensor()
243 Status WriteStringTensor(const Tensor& val, FileOutputBuffer* out, in WriteStringTensor()
295 Status WriteVariantTensor(const Tensor& val, FileOutputBuffer* out, in WriteVariantTensor()
393 Status PadAlignment(FileOutputBuffer* out, int alignment, int64* size) { in PadAlignment()
433 out_ = std::unique_ptr<FileOutputBuffer>( in BundleWriter()
434 new FileOutputBuffer(wrapper.release(), 8 << 20 /* 8MB write buffer */)); in BundleWriter()
1141 FileOutputBuffer::~FileOutputBuffer() { delete file_; } in ~FileOutputBuffer()
1143 Status FileOutputBuffer::Append(StringPiece data) { in Append()
1173 Status FileOutputBuffer::Close() { in Close()
1178 Status FileOutputBuffer::FlushBuffer() { in FlushBuffer()
/external/llvm-project/llvm/tools/llvm-objcopy/
DBuffer.cpp38 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in allocate()
39 FileOutputBuffer::create(getName(), Size, FileOutputBuffer::F_executable); in allocate()
DBuffer.h39 std::unique_ptr<FileOutputBuffer> Buf;
/external/llvm-project/llvm/tools/llvm-mt/
Dllvm-mt.cpp145 Expected<std::unique_ptr<FileOutputBuffer>> FileOrErr = in main()
146 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in main()
149 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/external/llvm-project/llvm/tools/llvm-objcopy/wasm/
DWasmObjcopy.cpp28 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in dumpSectionToFile()
29 FileOutputBuffer::create(Filename, Contents.size()); in dumpSectionToFile()
32 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr); in dumpSectionToFile()
/external/llvm-project/llvm/tools/llvm-cvtres/
Dllvm-cvtres.cpp194 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in main()
197 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
/external/llvm-project/lld/Common/
DFilesystem.cpp128 return errorToErrorCode(FileOutputBuffer::create(path, 1).takeError()); in tryCreateFile()
/external/llvm-project/lld/MachO/
DWriter.cpp56 std::unique_ptr<FileOutputBuffer> &buffer;
646 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
647 FileOutputBuffer::create(config->outputFile, fileOff, in openFile()
648 FileOutputBuffer::F_executable); in openFile()
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOObjcopy.cpp255 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in dumpSectionToFile()
256 FileOutputBuffer::create(Filename, Sec->Content.size()); in dumpSectionToFile()
259 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr); in dumpSectionToFile()
/external/llvm-project/lld/include/lld/Common/
DErrorHandler.h121 std::unique_ptr<llvm::FileOutputBuffer> outputBuffer;
/external/llvm/tools/llvm-pdbdump/
Dllvm-pdbdump.cpp75 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer) in FileBufferByteStream()
87 std::unique_ptr<FileOutputBuffer> FileBuffer;
317 auto OutFileOrError = FileOutputBuffer::create( in yamlToPdb()
/external/llvm-project/llvm/lib/InterfaceStub/
DELFObjHandler.cpp668 Expected<std::unique_ptr<FileOutputBuffer>> BufOrError = in writeELFBinaryToFile()
669 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile()
677 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufOrError); in writeELFBinaryToFile()
/external/llvm-project/lld/wasm/
DWriter.cpp107 std::unique_ptr<FileOutputBuffer> buffer;
1335 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr = in openFile()
1336 FileOutputBuffer::create(config->outputFile, fileSize, in openFile()
1337 FileOutputBuffer::F_executable); in openFile()

12