Path: blob/main/contrib/llvm-project/llvm/lib/Target/ARC/MCTargetDesc/ARCInstPrinter.h
35294 views
//===- ARCInstPrinter.h - Convert ARC MCInst to assembly syntax -*- C++ -*-===//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//===----------------------------------------------------------------------===//7///8/// \file9/// This file contains the declaration of the ARCInstPrinter class,10/// which is used to print ARC MCInst to a .s file.11///12//===----------------------------------------------------------------------===//1314#ifndef LLVM_LIB_TARGET_ARC_INSTPRINTER_ARCINSTPRINTER_H15#define LLVM_LIB_TARGET_ARC_INSTPRINTER_ARCINSTPRINTER_H1617#include "llvm/MC/MCInstPrinter.h"1819namespace llvm {2021class ARCInstPrinter : public MCInstPrinter {22public:23ARCInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,24const MCRegisterInfo &MRI)25: MCInstPrinter(MAI, MII, MRI) {}2627// Autogenerated by tblgen.28std::pair<const char *, uint64_t> getMnemonic(const MCInst *MI) override;29void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);30static const char *getRegisterName(MCRegister Reg);3132void printRegName(raw_ostream &OS, MCRegister Reg) const override;33void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,34const MCSubtargetInfo &STI, raw_ostream &O) override;35void printCCOperand(const MCInst *MI, int OpNum, raw_ostream &O);36void printU6(const MCInst *MI, int OpNum, raw_ostream &O);3738private:39void printMemOperandRI(const MCInst *MI, unsigned OpNum, raw_ostream &O);40void printOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O);41void printOperand(const MCInst *MI, uint64_t /*Address*/, unsigned OpNum,42raw_ostream &O) {43printOperand(MI, OpNum, O);44}45void printPredicateOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O);46void printBRCCPredicateOperand(const MCInst *MI, unsigned OpNum,47raw_ostream &O);48void printU6ShiftedBy(unsigned ShiftBy, const MCInst *MI, int OpNum,49raw_ostream &O);50};51} // end namespace llvm5253#endif // LLVM_LIB_TARGET_ARC_INSTPRINTER_ARCINSTPRINTER_H545556