41 #define DEBUG_TYPE "asm-printer" 51 std::unique_ptr<MCStreamer> Streamer)
53 MCInstLowering(&OutContext, *
this) {}
55 StringRef getPassName()
const override {
return "ARC Assembly Printer"; }
76 MCInstLowering.Lower(MI, TmpInst);
77 EmitToStreamer(*OutStreamer, TmpInst);
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
This class represents lattice values for constants.
This class is used to lower an MachineInstr into an MCInst.
A raw_ostream that writes to an SmallVector or SmallString.
Target & getTheARCTarget()
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
RegisterAsmPrinter - Helper template for registering a target specific assembly printer, for use in the target machine initialization function.
Instances of this class represent a single low-level machine instruction.
This file contains the declaration of the ARCInstPrinter class, which is used to print ARC MCInst to ...
This class is intended to be used as a driving class for all asm writers.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void LLVMInitializeARCAsmPrinter()
Representation of each machine instruction.
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.