1//===-- VEInstPrinter.h - Convert VE MCInst to assembly syntax ------------===// 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//===----------------------------------------------------------------------===// 8// 9// This class prints an VE MCInst to a .s file. 10// 11//===----------------------------------------------------------------------===// 12 13#ifndef LLVM_LIB_TARGET_VE_INSTPRINTER_VEINSTPRINTER_H 14#define LLVM_LIB_TARGET_VE_INSTPRINTER_VEINSTPRINTER_H 15 16#include "llvm/MC/MCInstPrinter.h" 17 18namespace llvm { 19 20class VEInstPrinter : public MCInstPrinter { 21public: 22 VEInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, 23 const MCRegisterInfo &MRI) 24 : MCInstPrinter(MAI, MII, MRI) {} 25 26 void printRegName(raw_ostream &OS, unsigned RegNo) const override; 27 void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, 28 const MCSubtargetInfo &STI, raw_ostream &OS) override; 29 30 // Autogenerated by tblgen. 31 bool printAliasInstr(const MCInst *, const MCSubtargetInfo &, raw_ostream &); 32 void printInstruction(const MCInst *, uint64_t, const MCSubtargetInfo &, 33 raw_ostream &); 34 static const char *getRegisterName(unsigned RegNo); 35 36 void printOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, 37 raw_ostream &OS); 38 void printMemASXOperand(const MCInst *MI, int opNum, 39 const MCSubtargetInfo &STI, raw_ostream &OS, 40 const char *Modifier = nullptr); 41 void printMemASOperand(const MCInst *MI, int opNum, 42 const MCSubtargetInfo &STI, raw_ostream &OS, 43 const char *Modifier = nullptr); 44 void printCCOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, 45 raw_ostream &OS); 46}; 47} // namespace llvm 48 49#endif 50