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) {
39 std::move(OW), std::move(CE));
static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")
MCCodeEmitter & getEmitter() const
virtual void encodeInstruction(const MCInst &Inst, SmallVectorImpl< char > &CB, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
Encode the given Inst to bytes and append to CB.
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.
NodeAddr< CodeNode * > Code
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)