/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 …]
|
D | SpecialCaseList.h | 56 class MemoryBuffer; variable 68 static std::unique_ptr<SpecialCaseList> create(const MemoryBuffer *MB, 96 bool parse(const MemoryBuffer *MB, std::string &Error);
|
D | LineIterator.h | 19 class MemoryBuffer; variable 34 const MemoryBuffer *Buffer; 46 explicit line_iterator(const MemoryBuffer &Buffer, bool SkipBlanks = true,
|
/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 { 100 static ErrorOr<std::unique_ptr<MemoryBuffer>> 104 std::unique_ptr<MemoryBuffer> 105 MemoryBuffer::getMemBuffer(StringRef InputData, StringRef BufferName, in getMemBuffer() 109 return std::unique_ptr<MemoryBuffer>(Ret); in getMemBuffer() 112 std::unique_ptr<MemoryBuffer> 113 MemoryBuffer::getMemBuffer(MemoryBufferRef Ref, bool RequiresNullTerminator) { in getMemBuffer() 114 return std::unique_ptr<MemoryBuffer>(getMemBuffer( in getMemBuffer() [all …]
|
D | FileUtilities.cpp | 179 ErrorOr<std::unique_ptr<MemoryBuffer>> F1OrErr = MemoryBuffer::getFile(NameA); in DiffFilesWithTolerance() 185 MemoryBuffer &F1 = *F1OrErr.get(); in DiffFilesWithTolerance() 187 ErrorOr<std::unique_ptr<MemoryBuffer>> F2OrErr = MemoryBuffer::getFile(NameB); in DiffFilesWithTolerance() 193 MemoryBuffer &F2 = *F2OrErr.get(); in DiffFilesWithTolerance()
|
/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/llvm/test/Bindings/OCaml/ |
D | bitreader.ml | 27 let mb = Llvm.MemoryBuffer.of_file fn in 32 Llvm.MemoryBuffer.dispose mb; 37 (* MemoryBuffer.of_file *) 39 let mb = Llvm.MemoryBuffer.of_file (fn ^ ".bogus") in 40 Llvm.MemoryBuffer.dispose mb; 48 let mb = Llvm.MemoryBuffer.of_file fn in 52 Llvm.MemoryBuffer.dispose mb; 68 let mb = Llvm.MemoryBuffer.of_file fn in 72 Llvm.MemoryBuffer.dispose mb;
|
/external/llvm/include/llvm/ProfileData/ |
D | SampleProfReader.h | 234 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReader() 271 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C); 285 std::unique_ptr<MemoryBuffer> Buffer; 290 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderText() 300 static bool hasFormat(const MemoryBuffer &Buffer); 305 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderBinary() 315 static bool hasFormat(const MemoryBuffer &Buffer); 370 SampleProfileReaderGCC(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) in SampleProfileReaderGCC() 380 static bool hasFormat(const MemoryBuffer &Buffer);
|
D | InstrProfReader.h | 104 create(std::unique_ptr<MemoryBuffer> Buffer); 118 std::unique_ptr<MemoryBuffer> DataBuffer; 127 TextInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer_) in TextInstrProfReader() 131 static bool hasFormat(const MemoryBuffer &Buffer); 155 std::unique_ptr<MemoryBuffer> DataBuffer; 173 RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in RawInstrProfReader() 176 static bool hasFormat(const MemoryBuffer &DataBuffer); 336 std::unique_ptr<MemoryBuffer> DataBuffer; 347 IndexedInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in IndexedInstrProfReader() 351 static bool hasFormat(const MemoryBuffer &DataBuffer); [all …]
|
/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/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()
|
/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/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 76 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(source); in TEST_F() 129 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source); in TEST_F() 188 std::unique_ptr<MemoryBuffer> HeaderBuf = MemoryBuffer::getMemBuffer(header); in TEST_F() 189 std::unique_ptr<MemoryBuffer> MainBuf = MemoryBuffer::getMemBuffer(main); in TEST_F() 287 std::unique_ptr<MemoryBuffer> HeaderBuf = MemoryBuffer::getMemBuffer(header); in TEST_F() 288 std::unique_ptr<MemoryBuffer> MainBuf = MemoryBuffer::getMemBuffer(main); in TEST_F()
|
D | VirtualFileSystemTest.cpp | 27 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 558 FS.addFile("c:/windows/system128/foo.cpp", 0, MemoryBuffer::getMemBuffer("")); in TEST_F() 565 FS.addFile("d:/windows/foo.cpp", 0, MemoryBuffer::getMemBuffer("")); in TEST_F() 571 FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F() 572 NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F() 585 auto Buf = MemoryBuffer::getMemBuffer("a"); in TEST_F() 593 FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F() 594 FS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c")); in TEST_F() 595 FS.addFile("./d/../d", 0, MemoryBuffer::getMemBuffer("d")); in TEST_F() 596 NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F() [all …]
|
/external/clang/include/clang/ARCMigrate/ |
D | FileRemapper.h | 20 class MemoryBuffer; variable 35 typedef llvm::PointerUnion<const FileEntry *, llvm::MemoryBuffer *> Target; 55 void remap(StringRef filePath, std::unique_ptr<llvm::MemoryBuffer> memBuf); 62 void remap(const FileEntry *file, std::unique_ptr<llvm::MemoryBuffer> memBuf);
|
/external/clang/include/clang/Frontend/ |
D | ASTUnit.h | 43 class MemoryBuffer; variable 245 createForMemoryBuffer(const llvm::MemoryBuffer *Buffer); 277 std::unique_ptr<llvm::MemoryBuffer> SavedMainFileBuffer; 282 std::unique_ptr<llvm::MemoryBuffer> PreambleBuffer; 428 std::unique_ptr<llvm::MemoryBuffer> OverrideMainBuffer); 431 llvm::MemoryBuffer *Buffer; 432 std::unique_ptr<llvm::MemoryBuffer> Owner; 435 ComputedPreamble(llvm::MemoryBuffer *Buffer, in ComputedPreamble() 436 std::unique_ptr<llvm::MemoryBuffer> Owner, unsigned Size, in ComputedPreamble() 447 std::unique_ptr<llvm::MemoryBuffer> getMainBufferWithPrecompiledPreamble( [all …]
|
/external/llvm/unittests/Bitcode/ |
D | BitReaderTest.cpp | 58 std::unique_ptr<MemoryBuffer> Buffer = in getLazyModuleFromAssembly() 59 MemoryBuffer::getMemBuffer(Mem.str(), "test", false); in getLazyModuleFromAssembly() 66 std::unique_ptr<MemoryBuffer> Buffer; 78 BufferDataStreamer(std::unique_ptr<MemoryBuffer> Buffer) in BufferDataStreamer() 86 std::unique_ptr<MemoryBuffer> Buffer = in getStreamedModuleFromAssembly() 87 MemoryBuffer::getMemBuffer(Mem.str(), "test", false); in getStreamedModuleFromAssembly() 109 auto MemoryBuf = MemoryBuffer::getMemBuffer(Input); in TEST()
|
/external/llvm/lib/LTO/ |
D | LTOModule.cpp | 73 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile() 74 MemoryBuffer::getFile(Path); in isBitcodeFile() 83 bool LTOModule::isBitcodeForTarget(MemoryBuffer *Buffer, in isBitcodeForTarget() 94 std::string LTOModule::getProducerString(MemoryBuffer *Buffer) { in getProducerString() 106 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile() 107 MemoryBuffer::getFile(path); in createFromFile() 110 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in createFromFile() 124 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice() 125 MemoryBuffer::getOpenFileSlice(fd, path, map_size, offset); in createFromOpenFileSlice() 128 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in createFromOpenFileSlice() [all …]
|
/external/clang/include/clang/Lex/ |
D | HeaderMap.h | 22 class MemoryBuffer; variable 38 std::unique_ptr<const llvm::MemoryBuffer> FileBuffer; 41 HeaderMap(std::unique_ptr<const llvm::MemoryBuffer> File, bool BSwap) in HeaderMap()
|
/external/llvm/include/llvm/Object/ |
D | Binary.h | 142 std::unique_ptr<MemoryBuffer> Buf; 146 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf); 150 std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>> takeBinary(); 158 std::unique_ptr<MemoryBuffer> Buf) in OwningBinary() 175 std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>>
|
/external/clang/lib/Lex/ |
D | ScratchBuffer.cpp | 69 std::unique_ptr<llvm::MemoryBuffer> OwnBuf = in AllocScratchBuffer() 70 llvm::MemoryBuffer::getNewMemBuffer(RequestLen, "<scratch space>"); in AllocScratchBuffer() 71 llvm::MemoryBuffer &Buf = *OwnBuf; in AllocScratchBuffer()
|
/external/clang/tools/arcmt-test/ |
D | arcmt-test.cpp | 211 ErrorOr<std::unique_ptr<MemoryBuffer>> file1 = MemoryBuffer::getFile(fname1); in filesCompareEqual() 215 ErrorOr<std::unique_ptr<MemoryBuffer>> file2 = MemoryBuffer::getFile(fname2); in filesCompareEqual() 240 ErrorOr<std::unique_ptr<MemoryBuffer>> inputBuf = std::error_code(); in verifyTransformedFiles() 242 inputBuf = MemoryBuffer::getSTDIN(); in verifyTransformedFiles() 244 inputBuf = MemoryBuffer::getFile(RemappingsFile); in verifyTransformedFiles()
|