LLVM 20.0.0git
|
#include "LanaiInstPrinter.h"
#include "LanaiMCExpr.h"
#include "LanaiAluCode.h"
#include "LanaiCondCode.h"
#include "MCTargetDesc/LanaiMCTargetDesc.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
#include "LanaiGenAsmWriter.inc"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "asm-printer" |
#define | PRINT_ALIAS_INSTR |
Functions | |
static bool | usesGivenOffset (const MCInst *MI, int AddOffset) |
static bool | isPreIncrementForm (const MCInst *MI, int AddOffset) |
static bool | isPostIncrementForm (const MCInst *MI, int AddOffset) |
static StringRef | decIncOperator (const MCInst *MI) |
static void | printMemoryBaseRegister (raw_ostream &OS, const unsigned AluCode, const MCOperand &RegOp) |
template<unsigned SizeInBits> | |
static void | printMemoryImmediateOffset (const MCAsmInfo &MAI, const MCOperand &OffsetOp, raw_ostream &OS) |
#define DEBUG_TYPE "asm-printer" |
Definition at line 28 of file LanaiInstPrinter.cpp.
#define PRINT_ALIAS_INSTR |
Definition at line 31 of file LanaiInstPrinter.cpp.
Definition at line 65 of file LanaiInstPrinter.cpp.
References MI.
Definition at line 60 of file LanaiInstPrinter.cpp.
References llvm::LPAC::isPostOp(), MI, and usesGivenOffset().
Definition at line 55 of file LanaiInstPrinter.cpp.
References llvm::LPAC::isPreOp(), MI, and usesGivenOffset().
|
static |
Definition at line 213 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCOperand::getReg(), llvm::LanaiInstPrinter::getRegisterName(), llvm::LPAC::isPostOp(), llvm::LPAC::isPreOp(), llvm::MCOperand::isReg(), and OS.
Referenced by llvm::LanaiInstPrinter::printMemRiOperand(), and llvm::LanaiInstPrinter::printMemSplsOperand().
|
static |
Definition at line 226 of file LanaiInstPrinter.cpp.
References assert(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), OS, and llvm::MCExpr::print().
Definition at line 48 of file LanaiInstPrinter.cpp.
References llvm::LPAC::ADD, llvm::LPAC::encodeLanaiAluCode(), and MI.
Referenced by isPostIncrementForm(), and isPreIncrementForm().