LLVM 22.0.0git
M68kInstrInfo.cpp File Reference

This file contains the M68k declaration of the TargetInstrInfo class. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "M68k-instr-info"
#define GET_INSTRINFO_CTOR_DTOR
#define DEBUG_TYPE   "m68k-create-global-base-reg"
#define PASS_NAME   "M68k PIC Global Base Reg Initialization"

Functions

static M68k::CondCode getCondFromBranchOpc (unsigned BrOpc)
static bool Expand2AddrUndef (MachineInstrBuilder &MIB, const MCInstrDesc &Desc)
 Expand a single-def pseudo instruction to a two-addr instruction with two undef reads of the register being defined.

Detailed Description

This file contains the M68k declaration of the TargetInstrInfo class.

Definition in file M68kInstrInfo.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE [1/2]

#define DEBUG_TYPE   "M68k-instr-info"

Definition at line 37 of file M68kInstrInfo.cpp.

◆ DEBUG_TYPE [2/2]

#define DEBUG_TYPE   "m68k-create-global-base-reg"

Definition at line 37 of file M68kInstrInfo.cpp.

◆ GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 39 of file M68kInstrInfo.cpp.

◆ PASS_NAME

#define PASS_NAME   "M68k PIC Global Base Reg Initialization"

Definition at line 925 of file M68kInstrInfo.cpp.

Function Documentation

◆ Expand2AddrUndef()

bool Expand2AddrUndef ( MachineInstrBuilder & MIB,
const MCInstrDesc & Desc )
static

Expand a single-def pseudo instruction to a two-addr instruction with two undef reads of the register being defined.

This is used for mapping: d0 = SETCS_C32d to: d0 = SUBX32dd d0<undef>, d0<undef>

Definition at line 639 of file M68kInstrInfo.cpp.

References llvm::MachineInstrBuilder::addReg(), assert(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), Reg, llvm::MachineInstr::setDesc(), and llvm::RegState::Undef.

Referenced by llvm::M68kInstrInfo::expandPostRAPseudo(), and llvm::X86InstrInfo::expandPostRAPseudo().

◆ getCondFromBranchOpc()