LLVM
8.0.1
|
#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"
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 MachineInstr * | canFoldIntoSelect (unsigned Reg, const MachineRegisterInfo &MRI) |
#define GET_INSTRINFO_CTOR_DTOR |
Definition at line 28 of file LanaiInstrInfo.cpp.
|
static |
Definition at line 458 of file LanaiInstrInfo.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineRegisterInfo::getVRegDef(), llvm::MachineRegisterInfo::hasOneNonDBGUse(), llvm::MachineOperand::isCPI(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isFI(), llvm::MachineOperand::isJTI(), llvm::TargetRegisterInfo::isPhysicalRegister(), llvm::MachineInstr::isPredicable(), llvm::MachineOperand::isReg(), llvm::MachineInstr::isSafeToMove(), llvm::MachineOperand::isTied(), llvm::TargetRegisterInfo::isVirtualRegister(), and MI.
Referenced by llvm::LanaiInstrInfo::optimizeSelect().
Definition at line 227 of file LanaiInstrInfo.cpp.
Referenced by llvm::LanaiInstrInfo::optimizeCompareInstr().
|
static |
Definition at line 124 of file LanaiInstrInfo.cpp.
References llvm::LPCC::ICC_CC, llvm::LPCC::ICC_CS, llvm::LPCC::ICC_EQ, llvm::LPCC::ICC_F, llvm::LPCC::ICC_GE, llvm::LPCC::ICC_GT, llvm::LPCC::ICC_HI, llvm::LPCC::ICC_LE, llvm::LPCC::ICC_LS, llvm::LPCC::ICC_LT, llvm::LPCC::ICC_MI, llvm::LPCC::ICC_NE, llvm::LPCC::ICC_PL, llvm::LPCC::ICC_T, llvm::LPCC::ICC_VC, llvm::LPCC::ICC_VS, and llvm_unreachable.
Referenced by llvm::AVRInstrInfo::getRegisterInfo(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::LanaiInstrInfo::optimizeSelect(), and llvm::LanaiInstrInfo::reverseBranchCondition().
|
inlinestatic |
Definition at line 206 of file LanaiInstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Referenced by llvm::LanaiInstrInfo::optimizeCompareInstr().