9#ifndef LLVM_MC_MCSPIRVOBJECTWRITER_H
10#define LLVM_MC_MCSPIRVOBJECTWRITER_H
33 std::unique_ptr<MCSPIRVObjectTargetWriter> TargetObjectWriter;
35 struct VersionInfoType {
53 uint64_t writeObject(MCAssembler &Asm)
override;
54 void writeHeader(
const MCAssembler &Asm);
62std::unique_ptr<MCObjectWriter>
64 raw_pwrite_stream &
OS);
PowerPC TLS Dynamic Call Fixup
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Base class for classes that define behaviour that is specific to both the target and the object forma...
Defines the object file and target independent interfaces used by the assembler backend to write nati...
MCSPIRVObjectTargetWriter()
static bool classof(const MCObjectTargetWriter *W)
Triple::ObjectFormatType getFormat() const override
This represents an "assembler immediate".
SPIRVObjectWriter(std::unique_ptr< MCSPIRVObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
void setBuildVersion(unsigned Major, unsigned Minor, unsigned Bound)
Target - Wrapper for Target specific information.
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.