Home
last modified time | relevance | path

Searched refs:OffloadBinary (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DOffloadBinary.h63 class OffloadBinary : public Binary {
81 LLVM_ABI static Expected<std::unique_ptr<OffloadBinary>>
112 uint32_t Version = OffloadBinary::Version; // Version identifier.
134 OffloadBinary(MemoryBufferRef Source, const Header *TheHeader, in OffloadBinary() function
146 OffloadBinary(const OffloadBinary &Other) = delete;
160 class OffloadFile : public OwningBinary<OffloadBinary> {
164 OffloadFile(std::unique_ptr<OffloadBinary> Binary, in OffloadFile()
166 : OwningBinary<OffloadBinary>(std::move(Binary), std::move(Buffer)) {} in OffloadFile()
175 auto NewBinaryOrErr = OffloadBinary::create(*Buffer); in copy()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DOffloadBinary.cpp42 if (!isAddrAligned(Align(OffloadBinary::getAlignment()), in extractOffloadFiles()
46 auto BinaryOrErr = OffloadBinary::create(*Buffer); in extractOffloadFiles()
49 OffloadBinary &Binary = **BinaryOrErr; in extractOffloadFiles()
55 auto NewBinaryOrErr = OffloadBinary::create(*BufferCopy); in extractOffloadFiles()
153 if (!isAddrAligned(Align(OffloadBinary::getAlignment()), in extractFromArchive()
170 Expected<std::unique_ptr<OffloadBinary>>
171 OffloadBinary::create(MemoryBufferRef Buf) { in create()
185 if (TheHeader->Version != OffloadBinary::Version) in create()
203 return std::unique_ptr<OffloadBinary>( in create()
204 new OffloadBinary(Buf, TheHeader, TheEntry)); in create()
[all …]
H A DBinary.cpp21 #include "llvm/Object/OffloadBinary.h"
97 return OffloadBinary::create(Buffer); in createBinary()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DOffloadEmitter.cpp22 object::OffloadBinary::OffloadingImage Image{}; in yaml2offload()
41 auto Buffer = object::OffloadBinary::write(Image); in yaml2offload()
43 reinterpret_cast<object::OffloadBinary::Header *>(&Buffer[0]); in yaml2offload()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DOffloadDump.cpp27 static StringRef getImageName(const OffloadBinary &OB) { in getImageName()
44 static void printBinary(const OffloadBinary &OB, uint64_t Index) { in printBinary()
112 void llvm::dumpOffloadSections(const OffloadBinary &OB) { in dumpOffloadSections()
H A DOffloadDump.h18 void dumpOffloadSections(const object::OffloadBinary &OB);
H A Dllvm-objdump.cpp3473 else if (OffloadBinary *OB = dyn_cast<OffloadBinary>(&Binary)) in dumpInput()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp135 Image->setAlignment(Align(object::OffloadBinary::getAlignment())); in createBinDesc()
145 reinterpret_cast<const object::OffloadBinary::Header *>( in createBinDesc()
147 const auto *Entry = reinterpret_cast<const object::OffloadBinary::Entry *>( in createBinDesc()
H A DUtility.cpp108 Entry->setAlignment(Align(object::OffloadBinary::getAlignment())); in emitOffloadingEntry()
140 DummyEntry->setAlignment(Align(object::OffloadBinary::getAlignment())); in getOffloadEntryArray()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp1492 Align(object::OffloadBinary::getAlignment())); in EmbedObject()
/freebsd/lib/clang/libllvm/
H A DMakefile1123 SRCS_MIN+= Object/OffloadBinary.cpp