LLVM  14.0.0git
Macros | Functions
M68kInstrInfo.cpp File Reference
#include "M68kInstrInfo.h"
#include "M68kInstrBuilder.h"
#include "M68kMachineFunction.h"
#include "M68kTargetMachine.h"
#include "MCTargetDesc/M68kMCCodeEmitter.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/CodeGen/LivePhysRegs.h"
#include "llvm/CodeGen/LiveVariables.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include <functional>
#include "M68kGenInstrInfo.inc"
Include dependency graph for M68kInstrInfo.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "M68k-instr-info"
 
#define GET_INSTRINFO_CTOR_DTOR
 

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. More...
 

Detailed Description

This file contains the M68k declaration of the TargetInstrInfo class.

Definition in file M68kInstrInfo.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "M68k-instr-info"

Definition at line 34 of file M68kInstrInfo.cpp.

◆ GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 36 of file M68kInstrInfo.cpp.

Function Documentation

◆ Expand2AddrUndef()

static 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 559 of file M68kInstrInfo.cpp.

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

Referenced by llvm::M68kInstrInfo::expandPostRAPseudo().

◆ getCondFromBranchOpc()

static M68k::CondCode getCondFromBranchOpc ( unsigned  BrOpc)
static