9#ifndef LLVM_MC_MCSPIRVOBJECTWRITER_H
10#define LLVM_MC_MCSPIRVOBJECTWRITER_H
30 std::unique_ptr<MCSPIRVObjectTargetWriter> TargetObjectWriter;
32 struct VersionInfoType {
55std::unique_ptr<MCObjectWriter>
57 raw_pwrite_stream &OS);
Base class for classes that define behaviour that is specific to both the target and the object forma...
virtual uint64_t writeObject()=0
Write the object file and returns the number of bytes written.
static bool classof(const MCObjectTargetWriter *W)
Triple::ObjectFormatType getFormat() const override
SPIRVObjectWriter(std::unique_ptr< MCSPIRVObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
void setBuildVersion(unsigned Major, unsigned Minor, unsigned Bound)
An abstract base class for streams implementations that also support a pwrite operation.
This is an optimization pass for GlobalISel generic memory operations.
std::unique_ptr< MCObjectWriter > createSPIRVObjectWriter(std::unique_ptr< MCSPIRVObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
Construct a new SPIR-V writer instance.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.
Adapter to write values to a stream in a particular byte order.