LLVM API Documentation
#include <AArch64InstPrinter.h>
Definition at line 26 of file AArch64InstPrinter.h.
AArch64InstPrinter::AArch64InstPrinter | ( | const MCAsmInfo & | MAI, |
const MCInstrInfo & | MII, | ||
const MCRegisterInfo & | MRI, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 35 of file AArch64InstPrinter.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), and llvm::MCInstPrinter::setAvailableFeatures().
static const char* llvm::AArch64InstPrinter::getRegisterName | ( | unsigned | RegNo, |
unsigned | AltIdx = AArch64::NoRegAltName |
||
) | [static] |
Reimplemented in llvm::AArch64AppleInstPrinter.
Referenced by getRegName(), printAMIndexedWB(), printAMNoIndex(), printExtendedRegister(), printInst(), printOperand(), printPostIncOperand(), printRegName(), printShiftedRegister(), printSysAlias(), printVectorList(), and printVRegOperand().
virtual StringRef llvm::AArch64InstPrinter::getRegName | ( | unsigned | RegNo | ) | const [inline, virtual] |
Reimplemented in llvm::AArch64AppleInstPrinter.
Definition at line 39 of file AArch64InstPrinter.h.
References getRegisterName().
void AArch64InstPrinter::printAddSubImm | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 939 of file AArch64InstPrinter.cpp.
References llvm::MCInstPrinter::CommentStream, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::AArch64_AM::getShiftValue(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and printShifter().
void AArch64InstPrinter::printAdrpLabel | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1243 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCOperand::isImm().
virtual bool llvm::AArch64InstPrinter::printAliasInstr | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) | [virtual] |
Reimplemented in llvm::AArch64AppleInstPrinter.
Referenced by printInst().
void AArch64InstPrinter::printAlignedLabel | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1219 of file AArch64InstPrinter.cpp.
References llvm::dyn_cast(), llvm::MCExpr::EvaluateAsAbsolute(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and llvm::raw_ostream::write_hex().
void AArch64InstPrinter::printAMIndexedWB | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
unsigned | Scale, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1074 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isExpr(), and llvm::MCOperand::isImm().
Referenced by printAMIndexedWB().
void llvm::AArch64InstPrinter::printAMIndexedWB | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [inline, protected] |
Definition at line 88 of file AArch64InstPrinter.h.
References printAMIndexedWB().
void AArch64InstPrinter::printAMNoIndex | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1052 of file AArch64InstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and getRegisterName().
void AArch64InstPrinter::printArithExtend | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 997 of file AArch64InstPrinter.cpp.
References llvm::AArch64_AM::getArithExtendType(), llvm::AArch64_AM::getArithShiftValue(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::AArch64_AM::getShiftExtendName(), llvm::AArch64_AM::UXTW, and llvm::AArch64_AM::UXTX.
Referenced by printExtendedRegister().
void AArch64InstPrinter::printBarrierOption | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1258 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), Name, and llvm::AArch64NamedImmMapper::toString().
void AArch64InstPrinter::printCondCode | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1040 of file AArch64InstPrinter.cpp.
References llvm::AArch64CC::getCondCodeName(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
virtual void llvm::AArch64InstPrinter::printCustomAliasOperand | ( | const MCInst * | MI, |
unsigned | OpIdx, | ||
unsigned | PrintMethodIdx, | ||
raw_ostream & | O | ||
) | [virtual] |
Reimplemented in llvm::AArch64AppleInstPrinter.
void AArch64InstPrinter::printExtendedRegister | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 991 of file AArch64InstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), and printArithExtend().
void AArch64InstPrinter::printFPImmOperand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1098 of file AArch64InstPrinter.cpp.
References llvm::format(), llvm::MCOperand::getFPImm(), llvm::AArch64_AM::getFPImmFloat(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCOperand::isFPImm().
void AArch64InstPrinter::printHexImm | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 905 of file AArch64InstPrinter.cpp.
References llvm::format(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void AArch64InstPrinter::printImmScale | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1058 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void AArch64InstPrinter::printImplicitlyTypedVectorList | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Print a list of vector registers where the type suffix is implicit (i.e. attached to the instruction rather than the registers).
Definition at line 1196 of file AArch64InstPrinter.cpp.
References printVectorList().
void AArch64InstPrinter::printInst | ( | const MCInst * | MI, |
raw_ostream & | OS, | ||
StringRef | Annot | ||
) | [override, virtual] |
printInst - Print the specified MCInst to the specified raw_ostream.
Implements llvm::MCInstPrinter.
Reimplemented in llvm::AArch64AppleInstPrinter.
Definition at line 55 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::getWRegFromXReg(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), printAliasInstr(), llvm::MCInstPrinter::printAnnotation(), printInstruction(), and printSysAlias().
virtual void llvm::AArch64InstPrinter::printInstruction | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) | [virtual] |
Reimplemented in llvm::AArch64AppleInstPrinter.
Referenced by printInst().
void AArch64InstPrinter::printInverseCondCode | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1046 of file AArch64InstPrinter.cpp.
References llvm::AArch64CC::getCondCodeName(), llvm::MCOperand::getImm(), llvm::AArch64CC::getInvertedCondCode(), and llvm::MCInst::getOperand().
void AArch64InstPrinter::printLogicalImm32 | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 960 of file AArch64InstPrinter.cpp.
References llvm::AArch64_AM::decodeLogicalImmediate(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::raw_ostream::write_hex().
void AArch64InstPrinter::printLogicalImm64 | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 967 of file AArch64InstPrinter.cpp.
References llvm::AArch64_AM::decodeLogicalImmediate(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::raw_ostream::write_hex().
void AArch64InstPrinter::printMemExtend | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O, | ||
char | SrcRegKind, | ||
unsigned | Width | ||
) | [protected] |
Definition at line 1023 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::Log2_32().
Referenced by printMemExtend().
void llvm::AArch64InstPrinter::printMemExtend | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [inline, protected] |
Definition at line 70 of file AArch64InstPrinter.h.
References printMemExtend().
void AArch64InstPrinter::printMRSSystemRegister | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1275 of file AArch64InstPrinter.cpp.
References llvm::MCInstPrinter::getAvailableFeatures(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), Name, and llvm::StringRef::upper().
void AArch64InstPrinter::printMSRSystemRegister | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1287 of file AArch64InstPrinter.cpp.
References llvm::MCInstPrinter::getAvailableFeatures(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), Name, and llvm::StringRef::upper().
void AArch64InstPrinter::printOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 891 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::MCOperand::isReg().
void AArch64InstPrinter::printPostIncOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
unsigned | Imm, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 911 of file AArch64InstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), llvm::MCOperand::isReg(), and llvm_unreachable.
Referenced by printPostIncOperand().
void llvm::AArch64InstPrinter::printPostIncOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | [inline, protected] |
Definition at line 53 of file AArch64InstPrinter.h.
References printPostIncOperand().
void AArch64InstPrinter::printPrefetchOp | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1087 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), Name, and llvm::AArch64NamedImmMapper::toString().
void AArch64InstPrinter::printRegName | ( | raw_ostream & | OS, |
unsigned | RegNo | ||
) | const [override, virtual] |
printRegName - Print the assembler register name.
Reimplemented from llvm::MCInstPrinter.
Definition at line 50 of file AArch64InstPrinter.cpp.
References getRegisterName().
void AArch64InstPrinter::printShiftedRegister | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 985 of file AArch64InstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), and printShifter().
void AArch64InstPrinter::printShifter | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 974 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::AArch64_AM::getShiftExtendName(), llvm::AArch64_AM::getShiftType(), llvm::AArch64_AM::getShiftValue(), and llvm::AArch64_AM::LSL.
Referenced by printAddSubImm(), and printShiftedRegister().
void AArch64InstPrinter::printSIMDType10Operand | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1311 of file AArch64InstPrinter.cpp.
References llvm::AArch64_AM::decodeAdvSIMDModImmType10(), llvm::format(), llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
bool AArch64InstPrinter::printSysAlias | ( | const MCInst * | MI, |
raw_ostream & | O | ||
) | [protected] |
Definition at line 668 of file AArch64InstPrinter.cpp.
References llvm::HexStyle::Asm, llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), and llvm::StringRef::npos.
Referenced by printInst().
void AArch64InstPrinter::printSysCROperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 932 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCOperand::isImm().
void AArch64InstPrinter::printSystemPStateField | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1299 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), Name, llvm::StringRef::str(), and llvm::AArch64NamedImmMapper::toString().
void AArch64InstPrinter::printTypedVectorList | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1203 of file AArch64InstPrinter.cpp.
References llvm::itostr(), and printVectorList().
void AArch64InstPrinter::printUImm12Offset | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
unsigned | Scale, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1063 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), and llvm::MCOperand::isImm().
Referenced by printUImm12Offset().
void llvm::AArch64InstPrinter::printUImm12Offset | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [inline, protected] |
Definition at line 83 of file AArch64InstPrinter.h.
References printUImm12Offset().
void AArch64InstPrinter::printVectorIndex | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 1214 of file AArch64InstPrinter.cpp.
References llvm::MCOperand::getImm(), and llvm::MCInst::getOperand().
void AArch64InstPrinter::printVectorList | ( | const MCInst * | MI, |
unsigned | OpNum, | ||
raw_ostream & | O, | ||
StringRef | LayoutSuffix | ||
) | [protected] |
Definition at line 1153 of file AArch64InstPrinter.cpp.
References llvm::MCRegisterClass::contains(), llvm::MCRegisterInfo::getMatchingSuperReg(), getNextVectorRegister(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCRegisterInfo::getRegClass(), getRegisterName(), llvm::MCRegisterInfo::getSubReg(), and llvm::MCInstPrinter::MRI.
Referenced by printImplicitlyTypedVectorList(), llvm::AArch64AppleInstPrinter::printInst(), and printTypedVectorList().
void AArch64InstPrinter::printVRegOperand | ( | const MCInst * | MI, |
unsigned | OpNo, | ||
raw_ostream & | O | ||
) | [protected] |
Definition at line 924 of file AArch64InstPrinter.cpp.
References llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), getRegisterName(), and llvm::MCOperand::isReg().