|
LLVM
8.0.1
|
#include "Target/BPF/InstPrinter/BPFInstPrinter.h"


Static Public Member Functions | |
| static const char * | getRegisterName (unsigned RegNo) |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::MCInstPrinter | |
| void | printAnnotation (raw_ostream &OS, StringRef Annot) |
| Utility function for printing annotations. More... | |
Protected Attributes inherited from llvm::MCInstPrinter | |
| raw_ostream * | CommentStream = nullptr |
| A stream that comments can be emitted to if desired. More... | |
| const MCAsmInfo & | MAI |
| const MCInstrInfo & | MII |
| const MCRegisterInfo & | MRI |
| bool | UseMarkup = false |
| True if we are printing marked up assembly. More... | |
| bool | PrintImmHex = false |
| True if we are printing immediates as hex. More... | |
| HexStyle::Style | PrintHexStyle = HexStyle::C |
| Which style to use for printing hexadecimal values. More... | |
Definition at line 20 of file BPFInstPrinter.h.
|
inline |
Definition at line 22 of file BPFInstPrinter.h.
References getRegisterName(), MI, llvm::RISCVFenceField::O, printBrTargetOperand(), printImm64Operand(), printInst(), printInstruction(), printMemOperand(), and printOperand().
Referenced by BPFInstPrinter(), printMemOperand(), and printOperand().
| void BPFInstPrinter::printBrTargetOperand | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | O | ||
| ) |
Definition at line 97 of file BPFInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::RISCVFenceField::O, and printExpr().
Referenced by BPFInstPrinter().
| void BPFInstPrinter::printImm64Operand | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | O | ||
| ) |
Definition at line 86 of file BPFInstPrinter.cpp.
References llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::RISCVFenceField::O, and printExpr().
Referenced by BPFInstPrinter().
|
overridevirtual |
Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Definition at line 28 of file BPFInstPrinter.cpp.
References llvm::MCInstPrinter::printAnnotation(), and printInstruction().
Referenced by BPFInstPrinter().
| void llvm::BPFInstPrinter::printInstruction | ( | const MCInst * | MI, |
| raw_ostream & | O | ||
| ) |
Referenced by BPFInstPrinter(), and printInst().
| void BPFInstPrinter::printMemOperand | ( | const MCInst * | MI, |
| int | OpNo, | ||
| raw_ostream & | O, | ||
| const char * | Modifier = nullptr |
||
| ) |
Definition at line 65 of file BPFInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isImm(), and llvm::MCOperand::isReg().
Referenced by BPFInstPrinter().
| void BPFInstPrinter::printOperand | ( | const MCInst * | MI, |
| unsigned | OpNo, | ||
| raw_ostream & | O, | ||
| const char * | Modifier = nullptr |
||
| ) |
Definition at line 51 of file BPFInstPrinter.cpp.
References assert(), llvm::MCInstPrinter::formatImm(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm::RISCVFenceField::O, and printExpr().
Referenced by BPFInstPrinter().
1.8.13