/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | MemoryBuffer.h | 41 class MemoryBuffer { 46 MemoryBuffer() = default; 55 MemoryBuffer(const MemoryBuffer &) = delete; 56 MemoryBuffer &operator=(const MemoryBuffer &) = delete; 57 virtual ~MemoryBuffer(); 79 static ErrorOr<std::unique_ptr<MemoryBuffer>> 86 static ErrorOr<std::unique_ptr<MemoryBuffer>> 92 static ErrorOr<std::unique_ptr<MemoryBuffer>> 102 static ErrorOr<std::unique_ptr<MemoryBuffer>> 108 static std::unique_ptr<MemoryBuffer> [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | MemoryBuffer.cpp | 41 MemoryBuffer::~MemoryBuffer() { } in ~MemoryBuffer() 45 void MemoryBuffer::init(const char *BufStart, const char *BufEnd, in init() 83 class MemoryBufferMem : public MemoryBuffer { 104 static ErrorOr<std::unique_ptr<MemoryBuffer>> 108 std::unique_ptr<MemoryBuffer> 109 MemoryBuffer::getMemBuffer(StringRef InputData, StringRef BufferName, in getMemBuffer() 113 return std::unique_ptr<MemoryBuffer>(Ret); in getMemBuffer() 116 std::unique_ptr<MemoryBuffer> 117 MemoryBuffer::getMemBuffer(MemoryBufferRef Ref, bool RequiresNullTerminator) { in getMemBuffer() 118 return std::unique_ptr<MemoryBuffer>(getMemBuffer( in getMemBuffer() [all …]
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 41 MemoryBuffer::~MemoryBuffer() { } in ~MemoryBuffer() 45 void MemoryBuffer::init(const char *BufStart, const char *BufEnd, in init() 83 class MemoryBufferMem : public MemoryBuffer { 104 static ErrorOr<std::unique_ptr<MemoryBuffer>> 108 std::unique_ptr<MemoryBuffer> 109 MemoryBuffer::getMemBuffer(StringRef InputData, StringRef BufferName, in getMemBuffer() 113 return std::unique_ptr<MemoryBuffer>(Ret); in getMemBuffer() 116 std::unique_ptr<MemoryBuffer> 117 MemoryBuffer::getMemBuffer(MemoryBufferRef Ref, bool RequiresNullTerminator) { in getMemBuffer() 118 return std::unique_ptr<MemoryBuffer>(getMemBuffer( in getMemBuffer() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MemoryBuffer.h | 40 class MemoryBuffer { 46 MemoryBuffer() = default; 51 MemoryBuffer(const MemoryBuffer &) = delete; 52 MemoryBuffer &operator=(const MemoryBuffer &) = delete; 53 virtual ~MemoryBuffer(); 75 static ErrorOr<std::unique_ptr<MemoryBuffer>> 82 static ErrorOr<std::unique_ptr<MemoryBuffer>> 88 static ErrorOr<std::unique_ptr<MemoryBuffer>> 98 static ErrorOr<std::unique_ptr<MemoryBuffer>> 104 static std::unique_ptr<MemoryBuffer> [all …]
|
/external/llvm/include/llvm/Support/ |
D | MemoryBuffer.h | 36 class MemoryBuffer { 40 MemoryBuffer(const MemoryBuffer &) = delete; 41 MemoryBuffer &operator=(const MemoryBuffer &) = delete; 43 MemoryBuffer() {} in MemoryBuffer() function 47 virtual ~MemoryBuffer(); 71 static ErrorOr<std::unique_ptr<MemoryBuffer>> 78 static ErrorOr<std::unique_ptr<MemoryBuffer>> 88 static ErrorOr<std::unique_ptr<MemoryBuffer>> 94 static std::unique_ptr<MemoryBuffer> 98 static std::unique_ptr<MemoryBuffer> [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 41 MemoryBuffer::~MemoryBuffer() { } in ~MemoryBuffer() 45 void MemoryBuffer::init(const char *BufStart, const char *BufEnd, in init() 87 MemoryBuffer::init(InputData.begin(), InputData.end(), in MemoryBufferMem() 100 MemoryBuffer::BufferKind getBufferKind() const override { in getBufferKind() 101 return MemoryBuffer::MemoryBuffer_Malloc; in getBufferKind() 111 std::unique_ptr<MemoryBuffer> 112 MemoryBuffer::getMemBuffer(StringRef InputData, StringRef BufferName, in getMemBuffer() 115 MemoryBufferMem<MemoryBuffer>(InputData, RequiresNullTerminator); in getMemBuffer() 116 return std::unique_ptr<MemoryBuffer>(Ret); in getMemBuffer() 119 std::unique_ptr<MemoryBuffer> [all …]
|
/external/angle/src/common/ |
D | MemoryBuffer.cpp | 18 MemoryBuffer::~MemoryBuffer() in ~MemoryBuffer() 27 bool MemoryBuffer::resize(size_t size) in resize() 65 void MemoryBuffer::fill(uint8_t datum) in fill() 73 MemoryBuffer::MemoryBuffer(MemoryBuffer &&other) : MemoryBuffer() in MemoryBuffer() function in angle::MemoryBuffer 78 MemoryBuffer &MemoryBuffer::operator=(MemoryBuffer &&other) in operator =() 111 bool ScratchBuffer::get(size_t requestedSize, MemoryBuffer **memoryBufferOut) in get() 117 MemoryBuffer **memoryBufferOut, in getInitialized() 124 MemoryBuffer **memoryBufferOut, in getImpl()
|
D | MemoryBuffer.h | 20 class MemoryBuffer final : NonCopyable 23 MemoryBuffer() = default; 24 ~MemoryBuffer(); 26 MemoryBuffer(MemoryBuffer &&other); 27 MemoryBuffer &operator=(MemoryBuffer &&other); 73 bool get(size_t requestedSize, MemoryBuffer **memoryBufferOut); 76 bool getInitialized(size_t requestedSize, MemoryBuffer **memoryBufferOut, uint8_t initValue); 84 bool getImpl(size_t requestedSize, MemoryBuffer **memoryBufferOut, Optional<uint8_t> initValue); 88 MemoryBuffer mScratchMemory;
|
/external/llvm/unittests/Support/ |
D | LineIteratorTest.cpp | 20 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n" in TEST() 44 std::unique_ptr<MemoryBuffer> Buffer( in TEST() 45 MemoryBuffer::getMemBuffer("line 1\n" in TEST() 73 std::unique_ptr<MemoryBuffer> Buffer( in TEST() 74 MemoryBuffer::getMemBuffer("line 1\n" in TEST() 110 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n" in TEST() 133 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n" in TEST() 170 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer(""); in TEST() 176 Buffer = MemoryBuffer::getMemBuffer("\n\n\n"); in TEST() 180 Buffer = MemoryBuffer::getMemBuffer("# foo\n" in TEST() [all …]
|
D | MemoryBufferTest.cpp | 38 typedef std::unique_ptr<MemoryBuffer> OwningBuffer; 45 OwningBuffer MB1(MemoryBuffer::getMemBuffer(data)); in TEST_F() 49 OwningBuffer MB2(MemoryBuffer::getMemBuffer(data, "one", false)); in TEST_F() 53 OwningBuffer MB3(MemoryBuffer::getMemBuffer(data, "two", true)); in TEST_F() 80 ErrorOr<OwningBuffer> MB = MemoryBuffer::getFile(TestPath.c_str()); in TEST_F() 91 OwningBuffer MBC1(MemoryBuffer::getMemBufferCopy(data)); in TEST_F() 95 OwningBuffer MBC2(MemoryBuffer::getMemBufferCopy(data, "copy")); in TEST_F() 104 OwningBuffer Zero(MemoryBuffer::getNewUninitMemBuffer(0)); in TEST_F() 108 OwningBuffer One(MemoryBuffer::getNewUninitMemBuffer(321)); in TEST_F() 112 OwningBuffer Two(MemoryBuffer::getNewUninitMemBuffer(123, "bla")); in TEST_F() [all …]
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITObjectCacheTest.cpp | 36 std::unique_ptr<MemoryBuffer> getObject(const Module *M) override { in getObject() 37 const MemoryBuffer* BufferFound = getObjectInternal(M); in getObject() 43 return MemoryBuffer::getMemBufferCopy(BufferFound->getBuffer()); in getObject() 54 const MemoryBuffer* getObjectInternal(const Module* M) { in getObjectInternal() 57 StringMap<const MemoryBuffer *>::iterator it = ObjMap.find(ModuleID); in getObjectInternal() 64 MemoryBuffer *copyBuffer(MemoryBufferRef Buf) { in copyBuffer() 66 std::unique_ptr<MemoryBuffer> NewBuffer = in copyBuffer() 67 MemoryBuffer::getMemBufferCopy(Buf.getBuffer()); in copyBuffer() 68 MemoryBuffer *Ret = NewBuffer.get(); in copyBuffer() 73 StringMap<const MemoryBuffer *> ObjMap; [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/ |
D | Parser.cpp | 30 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto() 58 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFile() 59 MemoryBuffer::getFileOrSTDIN(Filename); in parseAssemblyFile() 88 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFileWithIndex() 89 MemoryBuffer::getFileOrSTDIN(Filename); in parseAssemblyFileWithIndex() 114 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseSummaryIndexAssemblyInto() 136 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseSummaryIndexAssemblyFile() 137 MemoryBuffer::getFileOrSTDIN(Filename); in parseSummaryIndexAssemblyFile() 150 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue() 167 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseType() [all …]
|
/external/llvm/lib/AsmParser/ |
D | Parser.cpp | 28 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto() 51 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFile() 52 MemoryBuffer::getFileOrSTDIN(Filename); in parseAssemblyFile() 73 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue() 90 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseType() 102 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseTypeAtBeginning()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | SampleProfReader.h | 245 SampleProfileReaderItaniumRemapper(std::unique_ptr<MemoryBuffer> B, in SampleProfileReaderItaniumRemapper() 261 create(std::unique_ptr<MemoryBuffer> &B, SampleProfileReader &Reader, 284 std::unique_ptr<MemoryBuffer> Buffer; 323 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, 402 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C, 408 MemoryBuffer *getBuffer() const { return Buffer.get(); } in getBuffer() 434 std::unique_ptr<MemoryBuffer> Buffer; 456 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderText() 466 static bool hasFormat(const MemoryBuffer &Buffer); 471 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C, [all …]
|
D | InstrProfReader.h | 136 create(std::unique_ptr<MemoryBuffer> Buffer); 150 std::unique_ptr<MemoryBuffer> DataBuffer; 159 TextInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer_) in TextInstrProfReader() 165 static bool hasFormat(const MemoryBuffer &Buffer); 194 std::unique_ptr<MemoryBuffer> DataBuffer; 214 RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in RawInstrProfReader() 219 static bool hasFormat(const MemoryBuffer &DataBuffer); 433 std::unique_ptr<MemoryBuffer> DataBuffer; 435 std::unique_ptr<MemoryBuffer> RemappingBuffer; 455 std::unique_ptr<MemoryBuffer> DataBuffer, [all …]
|
/external/llvm/test/Bindings/OCaml/ |
D | bitreader.ml | 31 let mb = Llvm.MemoryBuffer.of_file fn in 36 Llvm.MemoryBuffer.dispose mb; 41 (* MemoryBuffer.of_file *) 43 let mb = Llvm.MemoryBuffer.of_file (fn ^ ".bogus") in 44 Llvm.MemoryBuffer.dispose mb; 52 let mb = Llvm.MemoryBuffer.of_file fn in 56 Llvm.MemoryBuffer.dispose mb; 72 let mb = Llvm.MemoryBuffer.of_file fn in 76 Llvm.MemoryBuffer.dispose mb;
|
/external/llvm/include/llvm/ProfileData/ |
D | SampleProfReader.h | 259 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReader() 296 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C); 313 std::unique_ptr<MemoryBuffer> Buffer; 324 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderText() 334 static bool hasFormat(const MemoryBuffer &Buffer); 339 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderBinary() 349 static bool hasFormat(const MemoryBuffer &Buffer); 410 SampleProfileReaderGCC(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderGCC() 420 static bool hasFormat(const MemoryBuffer &Buffer);
|
/external/clang/lib/ARCMigrate/ |
D | FileRemapper.cpp | 66 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> fileBuf = in initFromFile() 67 llvm::MemoryBuffer::getFile(infoFile.c_str()); in initFromFile() 152 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in flushToFile() 173 assert(I->second.is<llvm::MemoryBuffer *>()); in overwriteOriginal() 183 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in overwriteOriginal() 198 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in applyMappings() 207 std::unique_ptr<llvm::MemoryBuffer> memBuf) { in remap() 212 std::unique_ptr<llvm::MemoryBuffer> memBuf) { in remap() 245 if (llvm::MemoryBuffer *oldmem = targ.dyn_cast<llvm::MemoryBuffer *>()) { in resetTarget()
|
/external/angle/src/libANGLE/ |
D | BlobCache.h | 53 angle::MemoryBuffer *compressedData); 56 angle::MemoryBuffer *uncompressedData); 97 void put(const BlobCache::Key &key, angle::MemoryBuffer &&value); 102 angle::MemoryBuffer &&uncompressedValue, 106 void putApplication(const BlobCache::Key &key, const angle::MemoryBuffer &value); 111 angle::MemoryBuffer &&value, 135 angle::MemoryBuffer *uncompressedValueOut); 171 using CacheEntry = std::pair<angle::MemoryBuffer, CacheSource>;
|
D | BlobCache.cpp | 27 angle::MemoryBuffer *compressedData) in CompressBlobCacheData() 59 angle::MemoryBuffer *uncompressedData) in DecompressBlobCacheData() 97 void BlobCache::put(const BlobCache::Key &key, angle::MemoryBuffer &&value) in put() 112 angle::MemoryBuffer &&uncompressedValue, in compressAndPut() 115 angle::MemoryBuffer compressedValue; in compressAndPut() 127 void BlobCache::putApplication(const BlobCache::Key &key, const angle::MemoryBuffer &value) in putApplication() 136 void BlobCache::populate(const BlobCache::Key &key, angle::MemoryBuffer &&value, CacheSource source) in populate() 162 angle::MemoryBuffer *scratchMemory; in get() 219 angle::MemoryBuffer *uncompressedValueOut) in getAndDecompress()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/ |
D | DebugUtils.h | 22 class MemoryBuffer; variable 46 Expected<std::unique_ptr<MemoryBuffer>> 47 operator()(std::unique_ptr<MemoryBuffer> Obj); 50 StringRef getBufferIdentifier(MemoryBuffer &B);
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 75 std::unique_ptr<llvm::MemoryBuffer> Buf = in TEST_F() 76 llvm::MemoryBuffer::getMemBuffer(source); in TEST_F() 129 std::unique_ptr<llvm::MemoryBuffer> Buf = in TEST_F() 130 llvm::MemoryBuffer::getMemBuffer(Source); in TEST_F() 189 std::unique_ptr<llvm::MemoryBuffer> HeaderBuf = in TEST_F() 190 llvm::MemoryBuffer::getMemBuffer(header); in TEST_F() 191 std::unique_ptr<llvm::MemoryBuffer> MainBuf = in TEST_F() 192 llvm::MemoryBuffer::getMemBuffer(main); in TEST_F() 290 std::unique_ptr<llvm::MemoryBuffer> HeaderBuf = in TEST_F() 291 llvm::MemoryBuffer::getMemBuffer(header); in TEST_F() [all …]
|
/external/llvm/bindings/python/llvm/tests/ |
D | test_core.py | 2 from ..core import MemoryBuffer 32 MemoryBuffer(filename=source) 36 MemoryBuffer(filename="/hopefully/this/path/doesnt/exist") 40 m = MemoryBuffer(filename=source) 76 m = parse_bitcode(MemoryBuffer(filename=self.get_test_bc())) 92 m = parse_bitcode(MemoryBuffer(filename=self.get_test_bc())) 114 m = parse_bitcode(MemoryBuffer(filename=self.get_test_bc()))
|
/external/llvm/lib/IRReader/ |
D | IRReader.cpp | 33 getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer, SMDiagnostic &Err, in getLazyIRModule() 54 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule() 55 MemoryBuffer::getFileOrSTDIN(Filename); in getLazyIRFileModule() 87 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile() 88 MemoryBuffer::getFileOrSTDIN(Filename); in parseIRFile() 107 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext()
|
/external/tensorflow/tensorflow/compiler/xla/runtime/ |
D | execution_engine.cc | 43 using llvm::MemoryBuffer; 81 std::unique_ptr<MemoryBuffer> ExecutionEngine::obj_file() const { in obj_file() 82 return obj_file_ ? MemoryBuffer::getMemBuffer(obj_file_->getMemBufferRef()) in obj_file() 156 std::unique_ptr<llvm::MemoryBuffer> getObject(const llvm::Module *m) override; 159 std::unique_ptr<llvm::MemoryBuffer> stealObject(const llvm::Module *m); 162 llvm::DenseMap<const llvm::Module *, std::unique_ptr<llvm::MemoryBuffer>> 169 objs_[m] = llvm::MemoryBuffer::getMemBufferCopy( in notifyObjectCompiled() 173 std::unique_ptr<llvm::MemoryBuffer> ExecutionEngineObjectCache::getObject( in getObject() 177 return llvm::MemoryBuffer::getMemBuffer(it->second->getMemBufferRef()); in getObject() 180 std::unique_ptr<llvm::MemoryBuffer> ExecutionEngineObjectCache::stealObject( in stealObject() [all …]
|