1 //===-- SystemZAsmPrinter.h - SystemZ LLVM assembly printer ----*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
11 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
13 #include "SystemZTargetMachine.h"
14 #include "llvm/CodeGen/AsmPrinter.h"
15 #include "llvm/Support/Compiler.h"
19 class MachineBasicBlock;
24 class LLVM_LIBRARY_VISIBILITY SystemZAsmPrinter : public AsmPrinter {
26 SystemZAsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
27 : AsmPrinter(TM, std::move(Streamer)) {}
29 // Override AsmPrinter.
30 StringRef getPassName() const override { return "SystemZ Assembly Printer"; }
31 void EmitInstruction(const MachineInstr *MI) override;
32 void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) override;
33 bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
34 unsigned AsmVariant, const char *ExtraCode,
35 raw_ostream &OS) override;
36 bool PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
37 unsigned AsmVariant, const char *ExtraCode,
38 raw_ostream &OS) override;
40 } // end namespace llvm