LLVM 24.0.0git
PISAInstPrinter.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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/// \file
10/// This file declares the PISA MCInst printer.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAINSTPRINTER_H
15#define LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAINSTPRINTER_H
16
18
19namespace llvm {
20
22public:
24
25 void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,
26 const MCSubtargetInfo &STI, raw_ostream &OS) override;
27 void printRegName(raw_ostream &OS, MCRegister Reg) override;
28 void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
29
30 // Autogenerated by tblgen.
31 std::pair<const char *, uint64_t>
32 getMnemonic(const MCInst &MI) const override;
34 static const char *getRegisterName(MCRegister Reg);
35};
36
37} // namespace llvm
38
39#endif // LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAINSTPRINTER_H
uint64_t uint64_t
IRTranslator LLVM IR MI
Register Reg
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
Instances of this class represent a single low-level machine instruction.
Definition MCInst.h:187
Wrapper class representing physical registers and target specific virtual registers.
Definition MCRegister.h:42
Generic base class for all target subtargets.
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O)
static const char * getRegisterName(MCRegister Reg)
std::pair< const char *, uint64_t > getMnemonic(const MCInst &MI) const override
Returns a pair containing the mnemonic for MI and the number of bits left for further processing by p...
void printRegName(raw_ostream &OS, MCRegister Reg) override
Print the assembler register name.
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS) override
Print the specified MCInst to the specified raw_ostream.
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
This is an optimization pass for GlobalISel generic memory operations.