Path: blob/main/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGNUInstPrinter.cpp
213845 views
//===- SystemZGNUInstPrinter.cpp - Convert SystemZ MCInst to GNU assembly -===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "SystemZGNUInstPrinter.h"9#include "llvm/MC/MCInst.h"10#include "llvm/MC/MCRegister.h"11#include "llvm/Support/raw_ostream.h"1213using namespace llvm;1415#define DEBUG_TYPE "asm-printer"1617#include "SystemZGenGNUAsmWriter.inc"1819void SystemZGNUInstPrinter::printFormattedRegName(const MCAsmInfo *MAI,20MCRegister Reg,21raw_ostream &O) {22const char *RegName = getRegisterName(Reg);23markup(O, Markup::Register) << '%' << RegName;24}2526void SystemZGNUInstPrinter::printInst(const MCInst *MI, uint64_t Address,27StringRef Annot,28const MCSubtargetInfo &STI,29raw_ostream &O) {30printInstruction(MI, Address, O);31printAnnotation(O, Annot);32}333435