/external/llvm/include/llvm/Support/ |
MemoryBuffer.h | 1 //===--- MemoryBuffer.h - Memory Buffer Interface ---------------*- C++ -*-===// 10 // This file defines the MemoryBuffer interface. 36 class MemoryBuffer { 40 MemoryBuffer(const MemoryBuffer &) = delete; 41 MemoryBuffer &operator=(const MemoryBuffer &) = delete; 43 MemoryBuffer() {} 47 virtual ~MemoryBuffer(); 63 /// Open the specified file as a MemoryBuffer, returning a new MemoryBuffe [all...] |
LineIterator.h | 19 class MemoryBuffer; 34 const MemoryBuffer *Buffer; 46 explicit line_iterator(const MemoryBuffer &Buffer, bool SkipBlanks = true,
|
SpecialCaseList.h | 56 class MemoryBuffer; 68 static std::unique_ptr<SpecialCaseList> create(const MemoryBuffer *MB, 96 bool parse(const MemoryBuffer *MB, std::string &Error);
|
/external/llvm/tools/llvm-mc/ |
Disassembler.h | 22 class MemoryBuffer; 35 MemoryBuffer &Buffer,
|
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
BitReader_2_7.h | 31 class MemoryBuffer; 40 using llvm::MemoryBuffer; 48 getLazyBitcodeModule(std::unique_ptr<MemoryBuffer> &&Buffer,
|
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
BitReader_3_0.h | 31 class MemoryBuffer; 40 using llvm::MemoryBuffer; 48 getLazyBitcodeModule(std::unique_ptr<MemoryBuffer> &&Buffer,
|
/external/llvm/include/llvm/ExecutionEngine/ |
ObjectCache.h | 13 #include "llvm/Support/MemoryBuffer.h" 32 /// Returns a pointer to a newly allocated MemoryBuffer that contains the 35 virtual std::unique_ptr<MemoryBuffer> getObject(const Module* M) = 0;
|
RuntimeDyldChecker.h | 18 class MemoryBuffer; 84 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
|
/external/llvm/tools/llvm-dwarfdump/fuzzer/ |
llvm-dwarfdump-fuzzer.cpp | 18 #include "llvm/Support/MemoryBuffer.h" 24 std::unique_ptr<MemoryBuffer> Buff = MemoryBuffer::getMemBuffer(
|
/frameworks/compile/mclinker/include/mcld/Support/ |
MemoryArea.h | 15 #include <llvm/Support/MemoryBuffer.h> 43 std::unique_ptr<llvm::MemoryBuffer> m_pMemoryBuffer;
|
/external/llvm/lib/Support/ |
MemoryBuffer.cpp | 1 //===--- MemoryBuffer.cpp - Memory Buffer implementation ------------------===// 10 // This file implements the MemoryBuffer interface. 14 #include "llvm/Support/MemoryBuffer.h" 38 // MemoryBuffer implementation itself. 41 MemoryBuffer::~MemoryBuffer() { } 43 /// init - Initialize this MemoryBuffer as a reference to externally allocated 45 void MemoryBuffer::init(const char *BufStart, const char *BufEnd, 82 /// MemoryBufferMem - Named MemoryBuffer pointing to a block of memory. 83 class MemoryBufferMem : public MemoryBuffer { [all...] |
/external/llvm/unittests/Support/ |
LineIteratorTest.cpp | 11 #include "llvm/Support/MemoryBuffer.h" 20 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n" 44 std::unique_ptr<MemoryBuffer> Buffer( 45 MemoryBuffer::getMemBuffer("line 1\n" 73 std::unique_ptr<MemoryBuffer> Buffer( 74 MemoryBuffer::getMemBuffer("line 1\n" 110 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n" 133 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n [all...] |
MemoryBufferTest.cpp | 1 //===- llvm/unittest/Support/MemoryBufferTest.cpp - MemoryBuffer tests ----===// 10 // This file implements unit tests for the MemoryBuffer support class. 15 #include "llvm/Support/MemoryBuffer.h" 33 /// MemoryBuffer::getOpenFileSlice to map it. 35 /// anew before using MemoryBuffer. 38 typedef std::unique_ptr<MemoryBuffer> OwningBuffer; 45 OwningBuffer MB1(MemoryBuffer::getMemBuffer(data)); 49 OwningBuffer MB2(MemoryBuffer::getMemBuffer(data, "one", false)); 53 OwningBuffer MB3(MemoryBuffer::getMemBuffer(data, "two", true)); 69 // terminated correctly by MemoryBuffer [all...] |
/external/clang/include/clang/Lex/ |
HeaderMap.h | 22 class MemoryBuffer; 38 std::unique_ptr<const llvm::MemoryBuffer> FileBuffer; 41 HeaderMap(std::unique_ptr<const llvm::MemoryBuffer> File, bool BSwap)
|
/external/clang/lib/Lex/ |
ScratchBuffer.cpp | 16 #include "llvm/Support/MemoryBuffer.h" 30 /// getToken - Splat the specified text into a temporary MemoryBuffer and 69 std::unique_ptr<llvm::MemoryBuffer> OwnBuf = 70 llvm::MemoryBuffer::getNewMemBuffer(RequestLen, "<scratch space>"); 71 llvm::MemoryBuffer &Buf = *OwnBuf;
|
/external/mesa3d/src/gallium/drivers/r600/ |
llvm_wrapper.cpp | 5 #include <llvm/Support/MemoryBuffer.h> 15 llvm::MemoryBuffer* buffer = llvm::MemoryBuffer::getMemBufferCopy(str);
|
/frameworks/compile/mclinker/lib/Support/ |
MemoryArea.cpp | 23 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer> > buffer_or_error = 24 llvm::MemoryBuffer::getFile(pFilename, 36 llvm::MemoryBuffer::getMemBuffer(mem,
|
/external/llvm/lib/AsmParser/ |
Parser.cpp | 18 #include "llvm/Support/MemoryBuffer.h" 28 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); 51 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = 52 MemoryBuffer::getFileOrSTDIN(Filename); 73 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
|
/external/llvm/bindings/python/llvm/tests/ |
test_bitreader.py | 3 from ..core import MemoryBuffer 13 m = parse_bitcode(MemoryBuffer(filename=source))
|
/external/llvm/test/Bindings/OCaml/ |
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/clang/include/clang/ARCMigrate/ |
FileRemapper.h | 20 class MemoryBuffer; 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/llvm/include/llvm/ProfileData/ |
SampleProfReader.h | 198 #include "llvm/Support/MemoryBuffer.h" 234 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) 271 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C); 285 std::unique_ptr<MemoryBuffer> Buffer; 290 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) 300 static bool hasFormat(const MemoryBuffer &Buffer); 305 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) 315 static bool hasFormat(const MemoryBuffer &Buffer); 370 SampleProfileReaderGCC(std::unique_ptr<MemoryBuffer> B, LLVMContext &C) 380 static bool hasFormat(const MemoryBuffer &Buffer) [all...] |
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
MCJITObjectCacheTest.cpp | 36 std::unique_ptr<MemoryBuffer> getObject(const Module *M) override { 37 const MemoryBuffer* BufferFound = getObjectInternal(M); 43 return MemoryBuffer::getMemBufferCopy(BufferFound->getBuffer()); 54 const MemoryBuffer* getObjectInternal(const Module* M) { 57 StringMap<const MemoryBuffer *>::iterator it = ObjMap.find(ModuleID); 64 MemoryBuffer *copyBuffer(MemoryBufferRef Buf) { 66 std::unique_ptr<MemoryBuffer> NewBuffer = 67 MemoryBuffer::getMemBufferCopy(Buf.getBuffer()); 68 MemoryBuffer *Ret = NewBuffer.get(); 73 StringMap<const MemoryBuffer *> ObjMap [all...] |
/external/llvm/bindings/python/llvm/ |
bit_reader.py | 6 from .core import MemoryBuffer 17 """Input is .core.MemoryBuffer""" 27 library.LLVMParseBitcode2.argtypes = [MemoryBuffer, POINTER(c_object_p)]
|
/external/llvm/tools/llvm-as-fuzzer/ |
llvm-as-fuzzer.cpp | 22 #include "llvm/Support/MemoryBuffer.h" 54 std::unique_ptr<MemoryBuffer> MemBuf = MemoryBuffer::getMemBufferCopy(Input);
|