Home
last modified time | relevance | path

Searched refs:WritableMemoryBuffer (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/llvm/lib/Support/
DMemoryBuffer.cpp125 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
127 auto Buf = WritableMemoryBuffer::getNewUninitMemBuffer(InputData.size(), BufferName); in getMemBufferCopyImpl()
173 constexpr sys::fs::mapped_file_region::mapmode Mapmode<WritableMemoryBuffer> =
224 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
272 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
273 WritableMemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile()
275 return getFileAux<WritableMemoryBuffer>(Filename, FileSize, FileSize, 0, in getFile()
280 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
281 WritableMemoryBuffer::getFileSlice(const Twine &Filename, uint64_t MapSize, in getFileSlice()
283 return getFileAux<WritableMemoryBuffer>(Filename, -1, MapSize, Offset, false, in getFileSlice()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DMemoryBuffer.cpp125 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
127 auto Buf = WritableMemoryBuffer::getNewUninitMemBuffer(InputData.size(), BufferName); in getMemBufferCopyImpl()
210 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
258 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
259 WritableMemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile()
261 return getFileAux<WritableMemoryBuffer>(Filename, FileSize, FileSize, 0, in getFile()
266 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
267 WritableMemoryBuffer::getFileSlice(const Twine &Filename, uint64_t MapSize, in getFileSlice()
269 return getFileAux<WritableMemoryBuffer>(Filename, -1, MapSize, Offset, false, in getFileSlice()
273 std::unique_ptr<WritableMemoryBuffer>
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DMemoryBuffer.h161 class WritableMemoryBuffer : public MemoryBuffer {
163 WritableMemoryBuffer() = default;
182 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
187 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
194 static std::unique_ptr<WritableMemoryBuffer>
200 static std::unique_ptr<WritableMemoryBuffer>
/external/llvm-project/lldb/include/lldb/Utility/
DDataBufferLLVM.h19 class WritableMemoryBuffer; variable
40 explicit DataBufferLLVM(std::unique_ptr<llvm::WritableMemoryBuffer> Buffer);
42 std::unique_ptr<llvm::WritableMemoryBuffer> Buffer;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMemoryBuffer.h155 class WritableMemoryBuffer : public MemoryBuffer {
157 WritableMemoryBuffer() = default;
179 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
184 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
191 static std::unique_ptr<WritableMemoryBuffer>
197 static std::unique_ptr<WritableMemoryBuffer>
/external/llvm-project/llvm/unittests/Support/
DMemoryBufferTest.cpp199 OwningBuffer Zero(WritableMemoryBuffer::getNewUninitMemBuffer(0)); in TEST_F()
203 OwningBuffer One(WritableMemoryBuffer::getNewUninitMemBuffer(321)); in TEST_F()
207 OwningBuffer Two(WritableMemoryBuffer::getNewUninitMemBuffer(123, "bla")); in TEST_F()
211 OwningBuffer Three(WritableMemoryBuffer::getNewMemBuffer(321, data)); in TEST_F()
217 OwningBuffer Four(WritableMemoryBuffer::getNewMemBuffer(123, "zeros")); in TEST_F()
329 WritableMemoryBuffer::getFileSlice(TestPath.str(), 0x6000, 0x2000); in TEST_F()
333 WritableMemoryBuffer &MB = **MBOrError; in TEST_F()
/external/llvm-project/clang/lib/Lex/
DScratchBuffer.cpp76 std::unique_ptr<llvm::WritableMemoryBuffer> OwnBuf = in AllocScratchBuffer()
77 llvm::WritableMemoryBuffer::getNewMemBuffer(RequestLen, in AllocScratchBuffer()
DPreprocessor.cpp436 auto NewBuffer = llvm::WritableMemoryBuffer::getNewUninitMemBuffer( in SetCodeCompletionPoint()
/external/llvm-project/llvm/tools/llvm-objcopy/
DBuffer.h53 std::unique_ptr<WritableMemoryBuffer> Buf;
62 std::unique_ptr<WritableMemoryBuffer> releaseMemoryBuffer();
DBuffer.cpp64 Buf = WritableMemoryBuffer::getNewMemBuffer(Size, getName()); in allocate()
74 std::unique_ptr<WritableMemoryBuffer> MemBuffer::releaseMemoryBuffer() { in releaseMemoryBuffer()
/external/llvm-project/flang/lib/Parser/
Dsource.cpp112 auto bufOr{llvm::WritableMemoryBuffer::getFile(path)}; in Open()
135 llvm::WritableMemoryBuffer::getNewUninitMemBuffer(inbuf->getBufferSize()); in ReadStandardInput()
146 auto tmp_buf{llvm::WritableMemoryBuffer::getNewUninitMemBuffer( in ReadFile()
/external/llvm-project/lldb/source/Utility/
DDataBufferLLVM.cpp18 std::unique_ptr<llvm::WritableMemoryBuffer> MemBuffer) in DataBufferLLVM()
/external/llvm-project/flang/include/flang/Parser/
Dsource.h67 std::unique_ptr<llvm::WritableMemoryBuffer> buf_;
/external/llvm-project/lldb/source/Host/common/
DFileSystem.cpp307 std::unique_ptr<llvm::WritableMemoryBuffer> buffer; in CreateDataBuffer()
310 llvm::WritableMemoryBuffer::getFile(*external_path, -1, is_volatile); in CreateDataBuffer()
315 auto buffer_or_error = llvm::WritableMemoryBuffer::getFileSlice( in CreateDataBuffer()
/external/llvm-project/lldb/source/Plugins/Process/FreeBSDRemote/
DNativeProcessFreeBSD.cpp564 std::unique_ptr<WritableMemoryBuffer> buf = in PopulateMemoryRegionCache()
565 llvm::WritableMemoryBuffer::getNewMemBuffer(len); in PopulateMemoryRegionCache()
838 std::unique_ptr<WritableMemoryBuffer> buf = in GetAuxvData()
839 llvm::WritableMemoryBuffer::getNewMemBuffer(auxv_size); in GetAuxvData()
/external/llvm-project/lld/COFF/
DDriverUtils.cpp455 static std::unique_ptr<WritableMemoryBuffer>
462 return WritableMemoryBuffer::getNewMemBuffer(resSize, config->outputFile + in createMemoryBufferForManifestRes()
502 std::unique_ptr<WritableMemoryBuffer> res = in createManifestRes()
/external/llvm-project/lldb/source/Plugins/Process/NetBSD/
DNativeProcessNetBSD.cpp891 ErrorOr<std::unique_ptr<WritableMemoryBuffer>> buf = in GetAuxvData()
892 llvm::WritableMemoryBuffer::getNewMemBuffer(auxv_size); in GetAuxvData()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DWindowsResource.cpp621 std::unique_ptr<WritableMemoryBuffer> OutputBuffer;
647 OutputBuffer = WritableMemoryBuffer::getNewMemBuffer( in WindowsResourceCOFFWriter()
/external/llvm-project/llvm/lib/Object/
DWindowsResource.cpp621 std::unique_ptr<WritableMemoryBuffer> OutputBuffer;
647 OutputBuffer = WritableMemoryBuffer::getNewMemBuffer( in WindowsResourceCOFFWriter()
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOObjcopy.cpp466 std::unique_ptr<WritableMemoryBuffer> OutputBuffer = in executeObjcopyOnMachOUniversalBinary()
/external/llvm-project/llvm/unittests/ProfileData/
DInstrProfTest.cpp1051 auto RawProfile = WritableMemoryBuffer::getNewUninitMemBuffer(LargeSize); in TEST()
1058 auto IndexedProfile = WritableMemoryBuffer::getNewUninitMemBuffer(LargeSize); in TEST()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/
DJitManager.cpp798 pBuf = llvm::WritableMemoryBuffer::getNewUninitMemBuffer(size_t(header.GetObjectSize())); in getObject()