9#ifndef LLVM_MC_MCSPIRVOBJECTWRITER_H
10#define LLVM_MC_MCSPIRVOBJECTWRITER_H
30 std::unique_ptr<MCSPIRVObjectTargetWriter> TargetObjectWriter;
32 struct VersionInfoType {
43 void setBuildVersion(
unsigned Major,
unsigned Minor,
unsigned Bound);
55LLVM_ABI std::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...
static bool classof(const MCObjectTargetWriter *W)
Triple::ObjectFormatType getFormat() const override
SPIRVObjectWriter(std::unique_ptr< MCSPIRVObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
An abstract base class for streams implementations that also support a pwrite operation.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI 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.