1 //===- SystemZGNUInstPrinter.cpp - Convert SystemZ MCInst to GNU assembly -===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "SystemZGNUInstPrinter.h"
10 #include "llvm/MC/MCInst.h"
11 #include "llvm/MC/MCRegister.h"
12 #include "llvm/Support/raw_ostream.h"
16 #define DEBUG_TYPE "asm-printer"
18 #include "SystemZGenGNUAsmWriter.inc"
20 void SystemZGNUInstPrinter::printFormattedRegName(const MCAsmInfo
*MAI
,
23 const char *RegName
= getRegisterName(Reg
);
24 markup(O
, Markup::Register
) << '%' << RegName
;
27 void SystemZGNUInstPrinter::printInst(const MCInst
*MI
, uint64_t Address
,
29 const MCSubtargetInfo
&STI
,
31 printInstruction(MI
, Address
, O
);
32 printAnnotation(O
, Annot
);