/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitReader.cpp | 23 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 D | BitReader.h | 39 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 D | Object.h | 76 LLVMBinaryRef LLVMCreateBinary(LLVMMemoryBufferRef MemBuf, 208 LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf);
|
H A D | IRReader.h | 39 LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM,
|
H A D | Core.h | 4659 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 D | llvm-bcanalyzer.cpp | 95 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 D | llvm-link.cpp | 206 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 D | Object.cpp | 65 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 D | IRReader.cpp | 113 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 D | RuntimeDyldChecker.cpp | 847 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 D | RuntimeDyldCheckerImpl.h | 40 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
H A D | DIPrinter.cpp | 32 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 D | ELFObject.h | 1062 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 D | ELFObject.cpp | 1315 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 D | RuntimeDyldChecker.h | 177 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const;
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 131 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 D | SourceManager.cpp | 1137 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 D | CommandLine.cpp | 1145 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 D | OffloadBundler.cpp | 1755 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 D | Core.cpp | 4453 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 D | Format.cpp | 4058 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 D | Clang.cpp | 933 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()
|