19void MCSPIRVStreamer::emitInstToData(
const MCInst &Inst,
30 DF->setHasInstructions(STI);
31 DF->getContents().append(
Code.begin(),
Code.end());
35 std::unique_ptr<MCAsmBackend> &&MAB,
36 std::unique_ptr<MCObjectWriter> &&OW,
37 std::unique_ptr<MCCodeEmitter> &&CE,
40 std::move(OW), std::move(CE));
static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")
MCCodeEmitter & getEmitter() const
void setRelaxAll(bool Value)
virtual void encodeInstruction(const MCInst &Inst, raw_ostream &OS, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
EncodeInstruction - Encode the given Inst to bytes on the output stream OS.
Context object for machine code objects.
Fragment for data and encoded instructions.
Instances of this class represent a single low-level machine instruction.
MCDataFragment * getOrCreateDataFragment(const MCSubtargetInfo *STI=nullptr)
Get a data fragment to write into, creating a new one if the current fragment is not a data fragment.
MCAssembler & getAssembler()
Streaming machine code generation interface.
Generic base class for all target subtargets.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
This is an optimization pass for GlobalISel generic memory operations.
MCStreamer * createSPIRVStreamer(MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&CE, bool RelaxAll)