/external/llvm-project/llvm/unittests/Support/ |
D | FileOutputBufferTest.cpp | 33 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/ |
D | FileOutputBufferTest.cpp | 30 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/ |
D | FileOutputBuffer.h | 31 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/ |
D | FileOutputBuffer.cpp | 30 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()
|
D | CMakeLists.txt | 55 FileOutputBuffer.cpp
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | FileOutputBuffer.h | 30 class FileOutputBuffer { 50 static Expected<std::unique_ptr<FileOutputBuffer>> 75 virtual ~FileOutputBuffer() {} in ~FileOutputBuffer() 82 FileOutputBuffer(StringRef Path) : FinalPath(Path) {} in FileOutputBuffer() function
|
D | BinaryByteStream.h | 209 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/ |
D | FileOutputBuffer.h | 28 class FileOutputBuffer { 48 static Expected<std::unique_ptr<FileOutputBuffer>> 73 virtual ~FileOutputBuffer() {} in ~FileOutputBuffer() 80 FileOutputBuffer(StringRef Path) : FinalPath(Path) {} in FileOutputBuffer() function
|
D | BinaryByteStream.h | 209 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/ |
D | FileOutputBuffer.cpp | 34 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/ |
D | FileOutputBuffer.cpp | 34 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/ |
D | tensor_bundle.h | 86 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();
|
D | tensor_bundle.cc | 228 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/ |
D | Buffer.cpp | 38 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in allocate() 39 FileOutputBuffer::create(getName(), Size, FileOutputBuffer::F_executable); in allocate()
|
D | Buffer.h | 39 std::unique_ptr<FileOutputBuffer> Buf;
|
/external/llvm-project/llvm/tools/llvm-mt/ |
D | llvm-mt.cpp | 145 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/ |
D | WasmObjcopy.cpp | 28 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/ |
D | llvm-cvtres.cpp | 194 FileOutputBuffer::create(OutputFile, OutputBuffer->getBufferSize()); in main() 197 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr); in main()
|
/external/llvm-project/lld/Common/ |
D | Filesystem.cpp | 128 return errorToErrorCode(FileOutputBuffer::create(path, 1).takeError()); in tryCreateFile()
|
/external/llvm-project/lld/MachO/ |
D | Writer.cpp | 56 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/ |
D | MachOObjcopy.cpp | 255 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/ |
D | ErrorHandler.h | 121 std::unique_ptr<llvm::FileOutputBuffer> outputBuffer;
|
/external/llvm/tools/llvm-pdbdump/ |
D | llvm-pdbdump.cpp | 75 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/ |
D | ELFObjHandler.cpp | 668 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/ |
D | Writer.cpp | 107 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()
|