Lines Matching full:binary
9 // This file contains the binary format used for budingling device metadata with
11 // file to create a fat binary and read by the linker. This is intended to be a
13 // complex it should be moved to a standard binary format like msgpack or ELF.
23 #include "llvm/Object/Binary.h"
52 /// A simple binary serialization of an offloading file. We use this format to
61 class OffloadBinary : public Binary {
66 /// The current version of the binary used for backwards compatibility.
78 /// Attempt to parse the offloading binary stored in \p Data.
81 /// Serialize the contents of \p File to a binary buffer to be read later.
98 // Iterator over all the key and value pairs in the binary.
105 static bool classof(const Binary *V) { return V->isOffloadFile(); }
110 uint64_t Size; // Size in bytes of this entire binary.
121 uint64_t ImageOffset; // Offset in bytes of the actual binary image.
122 uint64_t ImageSize; // Size in bytes of the binary image.
133 : Binary(Binary::ID_Offload, Source), Buffer(Source.getBufferStart()),
145 /// Map from keys to offsets in the binary.
149 /// Location of the header within the binary.
151 /// Location of the metadata entries within the binary.
155 /// A class to contain the binary information for a single OffloadBinary that
161 OffloadFile(std::unique_ptr<OffloadBinary> Binary,
163 : OwningBinary<OffloadBinary>(std::move(Binary), std::move(Buffer)) {}
172 assert(NewBinaryOrErr && "Failed to parse a copy of the binary?");