LLVM  6.0.0svn
Macros | Functions
LanaiInstrInfo.cpp File Reference
#include "Lanai.h"
#include "LanaiInstrInfo.h"
#include "LanaiMachineFunctionInfo.h"
#include "LanaiTargetMachine.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include "LanaiGenInstrInfo.inc"
Include dependency graph for LanaiInstrInfo.cpp:

Go to the source code of this file.

Macros

#define GET_INSTRINFO_CTOR_DTOR
 

Functions

static LPCC::CondCode getOppositeCondition (LPCC::CondCode CC)
 
static bool isRedundantFlagInstr (MachineInstr *CmpI, unsigned SrcReg, unsigned SrcReg2, int ImmValue, MachineInstr *OI)
 
static unsigned flagSettingOpcodeVariant (unsigned OldOpcode)
 
static MachineInstrcanFoldIntoSelect (unsigned Reg, const MachineRegisterInfo &MRI)
 

Macro Definition Documentation

◆ GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 28 of file LanaiInstrInfo.cpp.

Function Documentation

◆ canFoldIntoSelect()

static MachineInstr* canFoldIntoSelect ( unsigned  Reg,
const MachineRegisterInfo MRI 
)
static

◆ flagSettingOpcodeVariant()

static unsigned flagSettingOpcodeVariant ( unsigned  OldOpcode)
inlinestatic

Definition at line 227 of file LanaiInstrInfo.cpp.

Referenced by llvm::LanaiInstrInfo::optimizeCompareInstr().

◆ getOppositeCondition()

static LPCC::CondCode getOppositeCondition ( LPCC::CondCode  CC)
static

◆ isRedundantFlagInstr()

static bool isRedundantFlagInstr ( MachineInstr CmpI,
unsigned  SrcReg,
unsigned  SrcReg2,
int  ImmValue,
MachineInstr OI 
)
inlinestatic