Home
last modified time | relevance | path

Searched refs:MemBuf (Results 1 – 25 of 33) sorted by relevance

12

/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/
DBitReader.cpp22 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, in LLVMParseBitcode() argument
24 return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule, in LLVMParseBitcode()
29 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext() argument
34 *OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef), in LLVMParseBitcodeInContext()
49 LLVMMemoryBufferRef MemBuf, in LLVMGetBitcodeModuleInContext() argument
54 *OutM = wrap(getLazyBitcodeModule(unwrap(MemBuf), *unwrap(ContextRef), in LLVMGetBitcodeModuleInContext()
66 LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, in LLVMGetBitcodeModule() argument
68 return LLVMGetBitcodeModuleInContext(LLVMGetGlobalContext(), MemBuf, OutM, in LLVMGetBitcodeModule()
74 LLVMMemoryBufferRef MemBuf, in LLVMGetBitcodeModuleProviderInContext() argument
77 return LLVMGetBitcodeModuleInContext(ContextRef, MemBuf, in LLVMGetBitcodeModuleProviderInContext()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitReader.cpp26 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, in LLVMParseBitcode() argument
28 return LLVMParseBitcodeInContext(LLVMGetGlobalContext(), MemBuf, OutModule, in LLVMParseBitcode()
32 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf, in LLVMParseBitcode2() argument
34 return LLVMParseBitcodeInContext2(LLVMGetGlobalContext(), MemBuf, OutModule); in LLVMParseBitcode2()
45 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext() argument
48 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext()
73 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext2() argument
75 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2()
92 LLVMMemoryBufferRef MemBuf, in LLVMGetBitcodeModuleInContext() argument
101 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext()
[all …]
/external/llvm/include/llvm-c/
DBitReader.h40 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
45 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
50 LLVMMemoryBufferRef MemBuf,
54 LLVMMemoryBufferRef MemBuf,
62 LLVMMemoryBufferRef MemBuf,
68 LLVMMemoryBufferRef MemBuf,
72 LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
75 LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
DIRReader.h33 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
DObject.h43 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf);
/external/swiftshader/third_party/LLVM/include/llvm-c/
DBitReader.h32 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
36 LLVMMemoryBufferRef MemBuf,
43 LLVMMemoryBufferRef MemBuf,
47 LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
53 LLVMMemoryBufferRef MemBuf,
58 LLVMBool LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf,
DObject.h36 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf);
/external/llvm/bindings/ocaml/bitreader/
Dbitreader_ocaml.c25 CAMLprim LLVMModuleRef llvm_get_module(LLVMContextRef C, LLVMMemoryBufferRef MemBuf) { in llvm_get_module() argument
28 if (LLVMGetBitcodeModuleInContext2(C, MemBuf, &M)) in llvm_get_module()
35 CAMLprim LLVMModuleRef llvm_parse_bitcode(LLVMContextRef C, LLVMMemoryBufferRef MemBuf) { in llvm_parse_bitcode() argument
38 if (LLVMParseBitcodeInContext2(C, MemBuf, &M)) in llvm_parse_bitcode()
/external/swiftshader/third_party/LLVM/bindings/ocaml/bitreader/
Dbitreader_ocaml.c49 CAMLprim value llvm_get_module(LLVMContextRef C, LLVMMemoryBufferRef MemBuf) { in llvm_get_module() argument
55 if (LLVMGetBitcodeModuleInContext(C, MemBuf, &M, &Message)) in llvm_get_module()
63 LLVMMemoryBufferRef MemBuf) { in llvm_parse_bitcode() argument
69 if (LLVMParseBitcodeInContext(C, MemBuf, &M, &Message)) in llvm_parse_bitcode()
/external/llvm/bindings/ocaml/irreader/
Dirreader_ocaml.c25 LLVMMemoryBufferRef MemBuf) { in llvm_parse_ir() argument
31 if (LLVMParseIRInContext(C, MemBuf, &M, &Message)) in llvm_parse_ir()
/external/llvm/tools/llvm-as-fuzzer/
Dllvm-as-fuzzer.cpp54 std::unique_ptr<MemoryBuffer> MemBuf = MemoryBuffer::getMemBufferCopy(Input); in LLVMFuzzerTestOneInput() local
69 M = parseAssembly(MemBuf->getMemBufferRef(), Err, Context); in LLVMFuzzerTestOneInput()
/external/swiftshader/third_party/LLVM/lib/Object/
DObject.cpp21 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf) { in LLVMCreateObjectFile() argument
22 return wrap(ObjectFile::createObjectFile(unwrap(MemBuf))); in LLVMCreateObjectFile()
/external/swiftshader/third_party/LLVM/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp479 OwningPtr<MemoryBuffer> MemBuf; in AnalyzeBitcode() local
482 MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), MemBuf)) in AnalyzeBitcode()
485 if (MemBuf->getBufferSize() & 3) in AnalyzeBitcode()
488 unsigned char *BufPtr = (unsigned char *)MemBuf->getBufferStart(); in AnalyzeBitcode()
489 unsigned char *EndBufPtr = BufPtr+MemBuf->getBufferSize(); in AnalyzeBitcode()
/external/llvm/lib/IRReader/
DIRReader.cpp103 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, in LLVMParseIRInContext() argument
107 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp701 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
705 const char *LineStart = MemBuf->getBufferStart(); in checkAllRulesInBuffer()
708 while (LineStart != MemBuf->getBufferEnd() && std::isspace(*LineStart)) in checkAllRulesInBuffer()
711 while (LineStart != MemBuf->getBufferEnd() && *LineStart != '\0') { in checkAllRulesInBuffer()
713 while (LineEnd != MemBuf->getBufferEnd() && *LineEnd != '\r' && in checkAllRulesInBuffer()
725 while (LineStart != MemBuf->getBufferEnd() && std::isspace(*LineStart)) in checkAllRulesInBuffer()
929 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
930 return Impl->checkAllRulesInBuffer(RulePrefix, MemBuf); in checkAllRulesInBuffer()
DRuntimeDyldCheckerImpl.h29 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp696 std::unique_ptr<MemoryBuffer> &MemBuf, in openBitcodeFile() argument
705 MemBuf = std::move(MemBufOrErr.get()); in openBitcodeFile()
707 if (MemBuf->getBufferSize() & 3) in openBitcodeFile()
710 const unsigned char *BufPtr = (const unsigned char *)MemBuf->getBufferStart(); in openBitcodeFile()
711 const unsigned char *EndBufPtr = BufPtr + MemBuf->getBufferSize(); in openBitcodeFile()
716 if (MemBuf->getBufferSize() < BWH_HeaderSize) in openBitcodeFile()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c2353 LLVMMemoryBufferRef MemBuf; in llvm_memorybuffer_of_file() local
2356 &MemBuf, &Message)) in llvm_memorybuffer_of_file()
2359 CAMLreturn((value) MemBuf); in llvm_memorybuffer_of_file()
2366 LLVMMemoryBufferRef MemBuf; in llvm_memorybuffer_of_stdin() local
2368 if (LLVMCreateMemoryBufferWithSTDIN(&MemBuf, &Message)) in llvm_memorybuffer_of_stdin()
2371 return MemBuf; in llvm_memorybuffer_of_stdin()
2376 LLVMMemoryBufferRef MemBuf; in llvm_memorybuffer_of_string() local
2384 MemBuf = LLVMCreateMemoryBufferWithMemoryRangeCopy( in llvm_memorybuffer_of_string()
2387 return MemBuf; in llvm_memorybuffer_of_string()
2391 CAMLprim value llvm_memorybuffer_as_string(LLVMMemoryBufferRef MemBuf) { in llvm_memorybuffer_as_string() argument
[all …]
/external/llvm/tools/dsymutil/
DBinaryHolder.cpp192 for (auto MemBuf : *ErrOrMemBufferRefs) { in GetObjectFiles()
193 auto ErrOrObjectFile = object::ObjectFile::createObjectFile(MemBuf); in GetObjectFiles()
DBinaryHolder.h79 void changeBackingMemoryBuffer(std::unique_ptr<MemoryBuffer> &&MemBuf);
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.h47 llvm::MemoryBuffer *MemBuf);
/external/llvm/include/llvm/ExecutionEngine/
DRuntimeDyldChecker.h88 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
/external/llvm/lib/Object/
DObject.cpp62 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf) { in LLVMCreateObjectFile() argument
63 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp133 std::unique_ptr<MemoryBuffer> MemBuf; in addObjectFile() local
134 std::tie(ObjFile, MemBuf) = Obj.takeBinary(); in addObjectFile()
136 Buffers.push_back(std::move(MemBuf)); in addObjectFile()
/external/swiftshader/third_party/LLVM/bindings/ocaml/llvm/
Dllvm_ocaml.c1969 LLVMMemoryBufferRef MemBuf; in llvm_memorybuffer_of_file() local
1972 &MemBuf, &Message)) in llvm_memorybuffer_of_file()
1975 CAMLreturn((value) MemBuf); in llvm_memorybuffer_of_file()
1982 LLVMMemoryBufferRef MemBuf; in llvm_memorybuffer_of_stdin() local
1984 if (LLVMCreateMemoryBufferWithSTDIN(&MemBuf, &Message)) in llvm_memorybuffer_of_stdin()
1987 return MemBuf; in llvm_memorybuffer_of_stdin()
1991 CAMLprim value llvm_memorybuffer_dispose(LLVMMemoryBufferRef MemBuf) { in llvm_memorybuffer_dispose() argument
1992 LLVMDisposeMemoryBuffer(MemBuf); in llvm_memorybuffer_dispose()

12