[flang][cuda] Adding atomicadd as a cudadevice intrinsic and converting it LLVM diale...
[llvm-project.git] / llvm / lib / Target / SystemZ / MCTargetDesc / SystemZGNUInstPrinter.cpp
blob72b7bd60276a7a8f4814fb286d655ea5550c4568
1 //===- SystemZGNUInstPrinter.cpp - Convert SystemZ MCInst to GNU assembly -===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #include "SystemZGNUInstPrinter.h"
10 #include "llvm/MC/MCInst.h"
11 #include "llvm/MC/MCRegister.h"
12 #include "llvm/Support/raw_ostream.h"
14 using namespace llvm;
16 #define DEBUG_TYPE "asm-printer"
18 #include "SystemZGenGNUAsmWriter.inc"
20 void SystemZGNUInstPrinter::printFormattedRegName(const MCAsmInfo *MAI,
21 MCRegister Reg,
22 raw_ostream &O) {
23 const char *RegName = getRegisterName(Reg);
24 markup(O, Markup::Register) << '%' << RegName;
27 void SystemZGNUInstPrinter::printInst(const MCInst *MI, uint64_t Address,
28 StringRef Annot,
29 const MCSubtargetInfo &STI,
30 raw_ostream &O) {
31 printInstruction(MI, Address, O);
32 printAnnotation(O, Annot);