Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/Bitcode/Reader/
DBitReader.cpp24 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, in LLVMParseBitcode() argument
26 return LLVMParseBitcodeInContext(LLVMGetGlobalContext(), MemBuf, OutModule, in LLVMParseBitcode()
30 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf, in LLVMParseBitcode2() argument
32 return LLVMParseBitcodeInContext2(LLVMGetGlobalContext(), MemBuf, OutModule); in LLVMParseBitcode2()
36 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext() argument
39 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext()
59 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext2() argument
61 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2()
79 LLVMMemoryBufferRef MemBuf, in LLVMGetBitcodeModuleInContext() argument
82 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitReader.cpp24 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, in LLVMParseBitcode() argument
26 return LLVMParseBitcodeInContext(LLVMGetGlobalContext(), MemBuf, OutModule, in LLVMParseBitcode()
30 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf, in LLVMParseBitcode2() argument
32 return LLVMParseBitcodeInContext2(LLVMGetGlobalContext(), MemBuf, OutModule); in LLVMParseBitcode2()
36 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext() argument
39 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext()
59 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext2() argument
61 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2()
79 LLVMMemoryBufferRef MemBuf, in LLVMGetBitcodeModuleInContext() argument
82 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext()
[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);
/external/llvm-project/llvm/include/llvm-c/
DBitReader.h39 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
44 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
49 LLVMMemoryBufferRef MemBuf,
53 LLVMMemoryBufferRef MemBuf,
61 LLVMMemoryBufferRef MemBuf,
67 LLVMMemoryBufferRef MemBuf,
71 LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
74 LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
DObject.h74 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf,
206 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DBitReader.h39 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
44 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
49 LLVMMemoryBufferRef MemBuf,
53 LLVMMemoryBufferRef MemBuf,
61 LLVMMemoryBufferRef MemBuf,
67 LLVMMemoryBufferRef MemBuf,
71 LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
74 LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
DObject.h74 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf,
206 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf);
/external/llvm-project/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/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/llvm-project/llvm/tools/obj2yaml/
Dobj2yaml.cpp44 MemoryBufferRef MemBuf = Buffer->getMemBufferRef(); in dumpInput() local
45 if (file_magic::archive == identify_magic(MemBuf.getBuffer())) in dumpInput()
46 return archive2yaml(outs(), MemBuf); in dumpInput()
49 createBinary(MemBuf, /*Context=*/nullptr); in dumpInput()
/external/llvm-project/llvm/tools/dsymutil/
DSymbolMap.cpp126 auto &MemBuf = **ErrOrMemBuffer; in Load() local
127 StringRef Data(MemBuf.getBufferStart(), in Load()
128 MemBuf.getBufferEnd() - MemBuf.getBufferStart()); in Load()
/external/llvm-project/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/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-project/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp78 std::unique_ptr<MemoryBuffer> MemBuf = std::move(*MemBufOrErr); in openBitcodeFile() local
80 if (MemBuf->getBufferSize() & 3) in openBitcodeFile()
83 return std::move(MemBuf); in openBitcodeFile()
/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/llvm-project/llvm/tools/llvm-as-fuzzer/
Dllvm-as-fuzzer.cpp53 std::unique_ptr<MemoryBuffer> MemBuf = MemoryBuffer::getMemBufferCopy(Input); in LLVMFuzzerTestOneInput() local
68 M = parseAssembly(MemBuf->getMemBufferRef(), Err, Context); in LLVMFuzzerTestOneInput()
/external/llvm-project/llvm/tools/llvm-link/
Dllvm-link.cpp172 Expected<MemoryBufferRef> MemBuf = C.getMemoryBufferRef(); in loadArFile() local
173 if (Error E = MemBuf.takeError()) { in loadArFile()
182 (MemBuf.get().getBufferStart()), in loadArFile()
184 (MemBuf.get().getBufferEnd()))) { in loadArFile()
191 std::unique_ptr<Module> M = parseIR(MemBuf.get(), ParseErr, Context); in loadArFile()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DObject.cpp64 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf, in LLVMCreateBinary() argument
69 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext)); in LLVMCreateBinary()
178 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf) { in LLVMCreateObjectFile() argument
179 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
/external/llvm-project/llvm/lib/Object/
DObject.cpp64 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf, in LLVMCreateBinary() argument
69 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext)); in LLVMCreateBinary()
178 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf) { in LLVMCreateObjectFile() argument
179 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
/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-project/llvm/lib/IRReader/
DIRReader.cpp111 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, in LLVMParseIRInContext() argument
115 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IRReader/
DIRReader.cpp116 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, in LLVMParseIRInContext() argument
120 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp703 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
707 const char *LineStart = MemBuf->getBufferStart(); in checkAllRulesInBuffer()
710 while (LineStart != MemBuf->getBufferEnd() && std::isspace(*LineStart)) in checkAllRulesInBuffer()
713 while (LineStart != MemBuf->getBufferEnd() && *LineStart != '\0') { in checkAllRulesInBuffer()
715 while (LineEnd != MemBuf->getBufferEnd() && *LineEnd != '\r' && in checkAllRulesInBuffer()
727 while (LineStart != MemBuf->getBufferEnd() && std::isspace(*LineStart)) in checkAllRulesInBuffer()
867 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
868 return Impl->checkAllRulesInBuffer(RulePrefix, MemBuf); in checkAllRulesInBuffer()
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp704 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
709 const char *LineStart = MemBuf->getBufferStart(); in checkAllRulesInBuffer()
712 while (LineStart != MemBuf->getBufferEnd() && isSpace(*LineStart)) in checkAllRulesInBuffer()
715 while (LineStart != MemBuf->getBufferEnd() && *LineStart != '\0') { in checkAllRulesInBuffer()
717 while (LineEnd != MemBuf->getBufferEnd() && *LineEnd != '\r' && in checkAllRulesInBuffer()
738 while (LineStart != MemBuf->getBufferEnd() && isSpace(*LineStart)) in checkAllRulesInBuffer()
878 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
879 return Impl->checkAllRulesInBuffer(RulePrefix, MemBuf); in checkAllRulesInBuffer()

123