LLVM 19.0.0git
Macros | Functions
LanaiInstPrinter.cpp File Reference
#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)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "asm-printer"

Definition at line 28 of file LanaiInstPrinter.cpp.

◆ PRINT_ALIAS_INSTR

#define PRINT_ALIAS_INSTR

Definition at line 31 of file LanaiInstPrinter.cpp.

Function Documentation

◆ decIncOperator()

static StringRef decIncOperator ( const MCInst MI)
static

Definition at line 65 of file LanaiInstPrinter.cpp.

References MI.

◆ isPostIncrementForm()

static bool isPostIncrementForm ( const MCInst MI,
int  AddOffset 
)
static

Definition at line 60 of file LanaiInstPrinter.cpp.

References llvm::LPAC::isPostOp(), MI, and usesGivenOffset().

◆ isPreIncrementForm()

static bool isPreIncrementForm ( const MCInst MI,
int  AddOffset 
)
static

Definition at line 55 of file LanaiInstPrinter.cpp.

References llvm::LPAC::isPreOp(), MI, and usesGivenOffset().

◆ printMemoryBaseRegister()

static void printMemoryBaseRegister ( raw_ostream OS,
const unsigned  AluCode,
const MCOperand RegOp 
)
static

◆ printMemoryImmediateOffset()

template<unsigned SizeInBits>
static void printMemoryImmediateOffset ( const MCAsmInfo MAI,
const MCOperand OffsetOp,
raw_ostream OS 
)
static

◆ usesGivenOffset()

static bool usesGivenOffset ( const MCInst MI,
int  AddOffset 
)
static