2013-05-06 16:15:19 +00:00
|
|
|
//===-- SystemZAsmPrinter.h - SystemZ LLVM assembly printer ----*- C++ -*--===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
|
|
|
|
#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
|
2013-05-06 16:15:19 +00:00
|
|
|
|
|
|
|
#include "SystemZTargetMachine.h"
|
|
|
|
#include "llvm/CodeGen/AsmPrinter.h"
|
|
|
|
#include "llvm/Support/Compiler.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class MCStreamer;
|
|
|
|
class MachineBasicBlock;
|
|
|
|
class MachineInstr;
|
|
|
|
class Module;
|
|
|
|
class raw_ostream;
|
|
|
|
|
|
|
|
class LLVM_LIBRARY_VISIBILITY SystemZAsmPrinter : public AsmPrinter {
|
|
|
|
public:
|
2015-01-18 20:29:04 +00:00
|
|
|
SystemZAsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
|
2015-02-19 01:26:28 +00:00
|
|
|
: AsmPrinter(TM, std::move(Streamer)) {}
|
2013-05-06 16:15:19 +00:00
|
|
|
|
|
|
|
// Override AsmPrinter.
|
2014-03-06 12:03:36 +00:00
|
|
|
const char *getPassName() const override {
|
2013-05-06 16:15:19 +00:00
|
|
|
return "SystemZ Assembly Printer";
|
|
|
|
}
|
2014-03-06 12:03:36 +00:00
|
|
|
void EmitInstruction(const MachineInstr *MI) override;
|
|
|
|
void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) override;
|
|
|
|
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
|
|
|
unsigned AsmVariant, const char *ExtraCode,
|
|
|
|
raw_ostream &OS) override;
|
|
|
|
bool PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
|
|
|
|
unsigned AsmVariant, const char *ExtraCode,
|
|
|
|
raw_ostream &OS) override;
|
2013-05-06 16:15:19 +00:00
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|