Home
last modified time | relevance | path

Searched refs:MemoryBuffer (Results 1 – 25 of 175) sorted by relevance

1234567

/external/llvm/include/llvm/Support/
DMemoryBuffer.h38 class MemoryBuffer {
42 MemoryBuffer(const MemoryBuffer &) LLVM_DELETED_FUNCTION;
43 MemoryBuffer &operator=(const MemoryBuffer &) LLVM_DELETED_FUNCTION;
45 MemoryBuffer() {} in MemoryBuffer() function
49 virtual ~MemoryBuffer();
69 static error_code getFile(StringRef Filename, OwningPtr<MemoryBuffer> &result,
73 OwningPtr<MemoryBuffer> &result,
81 OwningPtr<MemoryBuffer> &Result,
87 OwningPtr<MemoryBuffer> &Result,
93 static MemoryBuffer *getMemBuffer(StringRef InputData,
[all …]
DCompression.h21 class MemoryBuffer; variable
46 OwningPtr<MemoryBuffer> &CompressedBuffer,
50 OwningPtr<MemoryBuffer> &UncompressedBuffer,
/external/llvm/lib/Support/
DMemoryBuffer.cpp50 MemoryBuffer::~MemoryBuffer() { } in ~MemoryBuffer()
54 void MemoryBuffer::init(const char *BufStart, const char *BufEnd, in init()
88 class MemoryBufferMem : public MemoryBuffer {
107 MemoryBuffer *MemoryBuffer::getMemBuffer(StringRef InputData, in getMemBuffer()
117 MemoryBuffer *MemoryBuffer::getMemBufferCopy(StringRef InputData, in getMemBufferCopy()
119 MemoryBuffer *Buf = getNewUninitMemBuffer(InputData.size(), BufferName); in getMemBufferCopy()
130 MemoryBuffer *MemoryBuffer::getNewUninitMemBuffer(size_t Size, in getNewUninitMemBuffer()
155 MemoryBuffer *MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) { in getNewMemBuffer()
156 MemoryBuffer *SB = getNewUninitMemBuffer(Size, BufferName); in getNewMemBuffer()
167 error_code MemoryBuffer::getFileOrSTDIN(StringRef Filename, in getFileOrSTDIN()
[all …]
DCompression.cpp51 OwningPtr<MemoryBuffer> &CompressedBuffer, in compress()
60 CompressedBuffer.reset(MemoryBuffer::getMemBufferCopy( in compress()
69 OwningPtr<MemoryBuffer> &UncompressedBuffer, in uncompress()
76 UncompressedBuffer.reset(MemoryBuffer::getMemBufferCopy( in uncompress()
87 OwningPtr<MemoryBuffer> &CompressedBuffer, in compress()
92 OwningPtr<MemoryBuffer> &UncompressedBuffer, in uncompress()
/external/llvm/unittests/Support/
DMemoryBufferTest.cpp39 typedef OwningPtr<MemoryBuffer> OwningBuffer;
46 OwningBuffer MB1(MemoryBuffer::getMemBuffer(data)); in TEST_F()
50 OwningBuffer MB2(MemoryBuffer::getMemBuffer(data, "one", false)); in TEST_F()
54 OwningBuffer MB3(MemoryBuffer::getMemBuffer(data, "two", true)); in TEST_F()
70 OwningBuffer MBC1(MemoryBuffer::getMemBufferCopy(data)); in TEST_F()
74 OwningBuffer MBC2(MemoryBuffer::getMemBufferCopy(data, "copy")); in TEST_F()
83 OwningBuffer Zero(MemoryBuffer::getNewUninitMemBuffer(0)); in TEST_F()
87 OwningBuffer One(MemoryBuffer::getNewUninitMemBuffer(321)); in TEST_F()
91 OwningBuffer Two(MemoryBuffer::getNewUninitMemBuffer(123, "bla")); in TEST_F()
95 OwningBuffer Three(MemoryBuffer::getNewMemBuffer(321, data)); in TEST_F()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITObjectCacheTest.cpp31 SmallVectorImpl<MemoryBuffer *>::iterator it, end; in ~TestObjectCache()
39 virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) { in notifyObjectCompiled()
48 virtual MemoryBuffer* getObject(const Module* M) { in getObject()
49 const MemoryBuffer* BufferFound = getObjectInternal(M); in getObject()
55 return MemoryBuffer::getMemBufferCopy(BufferFound->getBuffer()); in getObject()
66 const MemoryBuffer* getObjectInternal(const Module* M) { in getObjectInternal()
69 StringMap<const MemoryBuffer *>::iterator it = ObjMap.find(ModuleID); in getObjectInternal()
76 MemoryBuffer *copyBuffer(const MemoryBuffer *Buf) { in copyBuffer()
78 MemoryBuffer *NewBuffer = MemoryBuffer::getMemBufferCopy(Buf->getBuffer()); in copyBuffer()
83 StringMap<const MemoryBuffer *> ObjMap;
[all …]
/external/llvm/test/Bindings/Ocaml/
Dbitreader.ml24 let mb = Llvm.MemoryBuffer.of_file fn in
29 Llvm.MemoryBuffer.dispose mb;
34 (* MemoryBuffer.of_file *)
36 let mb = Llvm.MemoryBuffer.of_file (fn ^ ".bogus") in
37 Llvm.MemoryBuffer.dispose mb;
45 let mb = Llvm.MemoryBuffer.of_file fn in
49 Llvm.MemoryBuffer.dispose mb;
65 let mb = Llvm.MemoryBuffer.of_file fn in
69 Llvm.MemoryBuffer.dispose mb;
/external/llvm/include/llvm/ExecutionEngine/
DObjectBuffer.h35 ObjectBuffer(MemoryBuffer* Buf) : Buffer(Buf) {} in ObjectBuffer()
41 MemoryBuffer *getMemBuffer() const { in getMemBuffer()
42 return MemoryBuffer::getMemBuffer(Buffer->getBuffer(), "", false); in getMemBuffer()
51 OwningPtr<MemoryBuffer> Buffer;
69 Buffer.reset(MemoryBuffer::getMemBuffer(StringRef(SV.data(), SV.size()), in flush()
/external/clang/lib/ARCMigrate/
DFileRemapper.cpp69 OwningPtr<llvm::MemoryBuffer> fileBuf; in initFromFile()
70 if (llvm::MemoryBuffer::getFile(infoFile.c_str(), fileBuf)) in initFromFile()
156 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in flushToFile()
177 assert(I->second.is<llvm::MemoryBuffer *>()); in overwriteOriginal()
190 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in overwriteOriginal()
205 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in applyMappings()
219 llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>(); in transferMappingsAndClear()
229 void FileRemapper::remap(StringRef filePath, llvm::MemoryBuffer *memBuf) { in remap()
233 void FileRemapper::remap(const FileEntry *file, llvm::MemoryBuffer *memBuf) { in remap()
266 if (llvm::MemoryBuffer *oldmem = targ.dyn_cast<llvm::MemoryBuffer *>()) { in resetTarget()
/external/llvm/lib/IRReader/
DIRReader.cpp29 Module *llvm::getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err, in getLazyIRModule()
50 OwningPtr<MemoryBuffer> File; in getLazyIRFileModule()
51 if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename, File)) { in getLazyIRFileModule()
60 Module *llvm::ParseIR(MemoryBuffer *Buffer, SMDiagnostic &Err, in ParseIR()
81 OwningPtr<MemoryBuffer> File; in ParseIRFile()
82 if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename, File)) { in ParseIRFile()
/external/llvm/lib/AsmParser/
DParser.cpp25 Module *llvm::ParseAssembly(MemoryBuffer *F, in ParseAssembly()
45 OwningPtr<MemoryBuffer> File; in ParseAssemblyFile()
46 if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename, File)) { in ParseAssemblyFile()
57 MemoryBuffer *F = in ParseAssemblyString()
58 MemoryBuffer::getMemBuffer(StringRef(AsmString, strlen(AsmString)), in ParseAssemblyString()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp72 MemoryBuffer *buf = MemoryBuffer::getMemBuffer(source); in TEST_F()
124 MemoryBuffer *Buf = MemoryBuffer::getMemBuffer(Source); in TEST_F()
182 MemoryBuffer *headerBuf = MemoryBuffer::getMemBuffer(header); in TEST_F()
183 MemoryBuffer *mainBuf = MemoryBuffer::getMemBuffer(main); in TEST_F()
280 MemoryBuffer *headerBuf = MemoryBuffer::getMemBuffer(header); in TEST_F()
281 MemoryBuffer *mainBuf = MemoryBuffer::getMemBuffer(main); in TEST_F()
/external/llvm/tools/llvm-cov/
Dllvm-cov.cpp47 OwningPtr<MemoryBuffer> GCNO_Buff; in main()
48 if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputGCNO, GCNO_Buff)) { in main()
59 OwningPtr<MemoryBuffer> GCDA_Buff; in main()
60 if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputGCDA, GCDA_Buff)) { in main()
/external/llvm/tools/yaml2obj/
Dyaml2obj.h17 class MemoryBuffer; variable
19 int yaml2coff(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf);
20 int yaml2elf(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf);
/external/clang/include/clang/ARCMigrate/
DFileRemapper.h20 class MemoryBuffer; variable
35 typedef llvm::PointerUnion<const FileEntry *, llvm::MemoryBuffer *> Target;
55 void remap(StringRef filePath, llvm::MemoryBuffer *memBuf);
64 void remap(const FileEntry *file, llvm::MemoryBuffer *memBuf);
/external/llvm/include/llvm/Object/
DBinary.h22 class MemoryBuffer; variable
35 MemoryBuffer *Data;
37 Binary(unsigned int Type, MemoryBuffer *Source);
119 error_code createBinary(MemoryBuffer *Source, OwningPtr<Binary> &Result);
/external/llvm/utils/FileUpdate/
DFileUpdate.cpp47 OwningPtr<MemoryBuffer> In; in main()
48 if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) { in main()
55 OwningPtr<MemoryBuffer> Out; in main()
56 MemoryBuffer::getFile(OutputFilename.c_str(), Out); in main()
/external/llvm/include/llvm/Bitcode/
DReaderWriter.h21 class MemoryBuffer; variable
33 Module *getLazyBitcodeModule(MemoryBuffer *Buffer,
51 std::string getBitcodeTargetTriple(MemoryBuffer *Buffer,
58 Module *ParseBitcodeFile(MemoryBuffer *Buffer, LLVMContext &Context,
/external/llvm/include/llvm/IRReader/
DIRReader.h23 class MemoryBuffer; variable
31 Module *getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err,
45 Module *ParseIR(MemoryBuffer *Buffer, SMDiagnostic &Err, LLVMContext &Context);
/external/llvm/lib/Object/
DBinary.cpp33 Binary::Binary(unsigned int Type, MemoryBuffer *Source) in Binary()
45 error_code object::createBinary(MemoryBuffer *Source, in createBinary()
47 OwningPtr<MemoryBuffer> scopedSource(Source); in createBinary()
112 OwningPtr<MemoryBuffer> File; in createBinary()
113 if (error_code ec = MemoryBuffer::getFileOrSTDIN(Path, File)) in createBinary()
DObjectFile.cpp26 ObjectFile::ObjectFile(unsigned int Type, MemoryBuffer *source) in ObjectFile()
40 ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) { in createObjectFile()
78 OwningPtr<MemoryBuffer> File; in createObjectFile()
79 if (MemoryBuffer::getFile(ObjectPath, File)) in createObjectFile()
/external/llvm/bindings/python/llvm/tests/
Dtest_core.py3 from ..core import MemoryBuffer
18 MemoryBuffer(filename=source)
22 MemoryBuffer(filename="/hopefully/this/path/doesnt/exist")
/external/clang/include/clang/Lex/
DHeaderMap.h21 class MemoryBuffer; variable
37 const llvm::MemoryBuffer *FileBuffer;
40 HeaderMap(const llvm::MemoryBuffer *File, bool BSwap) in HeaderMap()
DPreprocessorOptions.h25 class MemoryBuffer; variable
105 std::vector<std::pair<std::string, const llvm::MemoryBuffer *> >
160 typedef std::vector<std::pair<std::string, const llvm::MemoryBuffer *> >::
162 typedef std::vector<std::pair<std::string, const llvm::MemoryBuffer *> >::
201 void addRemappedFile(StringRef From, const llvm::MemoryBuffer * To) { in addRemappedFile()
/external/llvm/include/llvm/MC/MCParser/
DAsmLexer.h23 class MemoryBuffer; variable
31 const MemoryBuffer *CurBuf;
45 void setBuffer(const MemoryBuffer *buf, const char *ptr = NULL);

1234567