Go to the documentation of this file.
21 std::unique_ptr<MCSPIRVObjectTargetWriter> TargetObjectWriter;
49 constexpr
uint32_t VersionNumber = 0 | (Major << 16) | (Minor << 8);
51 constexpr
uint32_t GeneratorMagicNumber = 0;
68 Asm.writeSectionData(
W.OS, &
S, Layout);
69 return W.OS.tell() - StartOffset;
72 std::unique_ptr<MCObjectWriter>
75 return std::make_unique<SPIRVObjectWriter>(
std::move(MOTW), OS);
This is an optimization pass for GlobalISel generic memory operations.
SPIRVObjectWriter(std::unique_ptr< MCSPIRVObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
Target - Wrapper for Target specific information.
std::unique_ptr< MCObjectWriter > createSPIRVObjectWriter(std::unique_ptr< MCSPIRVObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
Construct a new SPIR-V writer instance.
Adapter to write values to a stream in a particular byte order.
~SPIRVObjectWriter() override
An abstract base class for streams implementations that also support a pwrite operation.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Defines the object file and target independent interfaces used by the assembler backend to write nati...
Instances of this class represent a uniqued identifier for a section in the current translation unit.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Encapsulates the layout of an assembly file at a particular point in time.
Reimplement select in terms of SEL *We would really like to support but we need to prove that the add doesn t need to overflow between the two bit chunks *Implement pre post increment support(e.g. PR935) *Implement smarter const ant generation for binops with large immediates. A few ARMv6T2 ops should be pattern matched
This represents an "assembler immediate".
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...