ΒΆllvm::MCStreamer* createAsmStreamer(
    llvm::MCContext& Ctx,
    std::unique_ptr<formatted_raw_ostream> OS,
    bool isVerboseAsm,
    bool useDwarfDirectory,
    llvm::MCInstPrinter* InstPrint,
    std::unique_ptr<MCCodeEmitter>&& CE,
    std::unique_ptr<MCAsmBackend>&& TAB,
    bool ShowInst)

Description

Create a machine code streamer which will print out assembly for the native target, suitable for compiling with a native assembler.

Declared at: llvm/include/llvm/MC/TargetRegistry.h:86

Parameters

llvm::MCContext& Ctx
std::unique_ptr<formatted_raw_ostream> OS
bool isVerboseAsm
bool useDwarfDirectory
llvm::MCInstPrinter* InstPrint
- If given, the instruction printer to use. If not given the MCInst representation will be printed. This method takes ownership of InstPrint.
std::unique_ptr<MCCodeEmitter>&& CE
- If given, a code emitter to use to show the instruction encoding inline with the assembly. This method takes ownership of \p CE.
std::unique_ptr<MCAsmBackend>&& TAB
- If given, a target asm backend to use to show the fixup information in conjunction with encoding information. This method takes ownership of \p TAB.
bool ShowInst
- Whether to show the MCInst representation inline with the assembly.