Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitReader.cpp23 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, in LLVMParseBitcode() argument
25 return LLVMParseBitcodeInContext(LLVMGetGlobalContext(), MemBuf, OutModule, in LLVMParseBitcode()
29 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf, in LLVMParseBitcode2() argument
31 return LLVMParseBitcodeInContext2(LLVMGetGlobalContext(), MemBuf, OutModule); in LLVMParseBitcode2()
35 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext() argument
38 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext()
58 LLVMMemoryBufferRef MemBuf, in LLVMParseBitcodeInContext2() argument
60 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2()
78 LLVMMemoryBufferRef MemBuf, in LLVMGetBitcodeModuleInContext() argument
81 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DBitReader.h39 LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule,
44 LLVMBool LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
49 LLVMMemoryBufferRef MemBuf,
53 LLVMMemoryBufferRef MemBuf,
61 LLVMMemoryBufferRef MemBuf,
72 LLVMMemoryBufferRef MemBuf,
76 LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
79 LLVMBool LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM);
H A DObject.h76 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf,
208 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf);
H A DIRReader.h39 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
H A DCore.h4659 const char *LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf);
4660 size_t LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf);
4661 void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf);
/freebsd/contrib/llvm-project/llvm/tools/llvm-bcanalyzer/
H A Dllvm-bcanalyzer.cpp95 std::unique_ptr<MemoryBuffer> MemBuf = std::move(*MemBufOrErr); in openBitcodeFile() local
97 if (MemBuf->getBufferSize() & 3) in openBitcodeFile()
100 return std::move(MemBuf); in openBitcodeFile()
/freebsd/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp206 Expected<MemoryBufferRef> MemBuf = C.getMemoryBufferRef(); in loadArFile() local
207 if (Error E = MemBuf.takeError()) { in loadArFile()
216 MemBuf.get().getBufferStart()), in loadArFile()
218 MemBuf.get().getBufferEnd()))) { in loadArFile()
229 M = parseIR(MemBuf.get(), ParseErr, Context); in loadArFile()
231 M = getLazyIRModule(MemoryBuffer::getMemBuffer(MemBuf.get(), false), in loadArFile()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp65 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf, in LLVMCreateBinary() argument
70 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext)); in LLVMCreateBinary()
181 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf) { in LLVMCreateObjectFile() argument
182 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile()
/freebsd/contrib/llvm-project/llvm/lib/IRReader/
H A DIRReader.cpp113 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, in LLVMParseIRInContext() argument
117 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp847 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
852 const char *LineStart = MemBuf->getBufferStart(); in checkAllRulesInBuffer()
855 while (LineStart != MemBuf->getBufferEnd() && isSpace(*LineStart)) in checkAllRulesInBuffer()
858 while (LineStart != MemBuf->getBufferEnd() && *LineStart != '\0') { in checkAllRulesInBuffer()
860 while (LineEnd != MemBuf->getBufferEnd() && *LineEnd != '\r' && in checkAllRulesInBuffer()
881 while (LineStart != MemBuf->getBufferEnd() && isSpace(*LineStart)) in checkAllRulesInBuffer()
1053 MemoryBuffer *MemBuf) const { in checkAllRulesInBuffer()
1054 return Impl->checkAllRulesInBuffer(RulePrefix, MemBuf); in checkAllRulesInBuffer()
H A DRuntimeDyldCheckerImpl.h40 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DDIPrinter.cpp32 std::unique_ptr<MemoryBuffer> MemBuf; member in llvm::symbolize::SourceCode
46 MemBuf = std::move(*BufOrErr); in load()
47 return MemBuf->getBuffer(); in load()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.h1062 MemoryBuffer *MemBuf; variable
1068 : MemBuf(MB), NewSymbolVisibility(NewSymbolVisibility) {} in BinaryELFBuilder()
1112 MemoryBuffer *MemBuf; variable
1117 : MemBuf(MB), NewSymbolVisibility(NewSymbolVisibility) {} in BinaryReader()
1122 MemoryBuffer *MemBuf; variable
1127 ? createFileError(MemBuf->getBufferIdentifier(), std::move(E)) in parseError()
1128 : createFileError(MemBuf->getBufferIdentifier(), LineNo, in parseError()
1138 IHexReader(MemoryBuffer *MB) : MemBuf(MB) {} in IHexReader()
H A DELFObject.cpp1315 reinterpret_cast<const uint8_t *>(MemBuf->getBufferStart()), in addData()
1316 MemBuf->getBufferSize()); in addData()
1323 std::string SanitizedFilename = MemBuf->getBufferIdentifier().str(); in addData()
1958 return BinaryELFBuilder(MemBuf, NewSymbolVisibility).build(); in create()
1966 MemBuf->getBuffer().split(Lines, '\n'); in parse()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyldChecker.h177 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp131 std::unique_ptr<MemoryBuffer> MemBuf; in addObjectFile() local
132 std::tie(ObjFile, MemBuf) = Obj.takeBinary(); in addObjectFile()
134 Buffers.push_back(std::move(MemBuf)); in addObjectFile()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp1137 std::optional<llvm::MemoryBufferRef> MemBuf = getBufferOrNone(FID); in getColumnNumber() local
1139 *Invalid = !MemBuf; in getColumnNumber()
1141 if (!MemBuf) in getColumnNumber()
1145 if (FilePos > MemBuf->getBufferSize()) { in getColumnNumber()
1151 const char *Buf = MemBuf->getBufferStart(); in getColumnNumber()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DCommandLine.cpp1145 MemoryBuffer &MemBuf = *MemBufOrErr.get(); in expandResponseFile() local
1146 StringRef Str(MemBuf.getBufferStart(), MemBuf.getBufferSize()); in expandResponseFile()
1149 ArrayRef<char> BufRef(MemBuf.getBufferStart(), MemBuf.getBufferEnd()); in expandResponseFile()
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DOffloadBundler.cpp1755 std::unique_ptr<MemoryBuffer> MemBuf = MemoryBuffer::getMemBufferCopy( in UnbundleArchive() local
1757 ArchiveBuffers.push_back(std::move(MemBuf)); in UnbundleArchive()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp4453 const char *LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf) { in LLVMGetBufferStart() argument
4454 return unwrap(MemBuf)->getBufferStart(); in LLVMGetBufferStart()
4457 size_t LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf) { in LLVMGetBufferSize() argument
4458 return unwrap(MemBuf)->getBufferSize(); in LLVMGetBufferSize()
4461 void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf) { in LLVMDisposeMemoryBuffer() argument
4462 delete unwrap(MemBuf); in LLVMDisposeMemoryBuffer()
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp4058 for (const auto &MemBuf : llvm::reverse(ChildFormatTextToApply)) { in getStyle() local
4060 parseConfiguration(*MemBuf, Style, AllowUnknownOptions, in getStyle()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DClang.cpp933 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MemBuf = in maybeHasClangPchSignature() local
935 if (!MemBuf) in maybeHasClangPchSignature()
937 llvm::file_magic Magic = llvm::identify_magic((*MemBuf)->getBuffer()); in maybeHasClangPchSignature()
945 llvm::object::ObjectFile::createObjectFile(**MemBuf, Magic); in maybeHasClangPchSignature()