LLVM 20.0.0git
|
#include "LanaiInstrInfo.h"
#include "LanaiAluCode.h"
#include "LanaiCondCode.h"
#include "MCTargetDesc/LanaiBaseInfo.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/MC/TargetRegistry.h"
#include "llvm/Support/ErrorHandling.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, int64_t ImmValue, MachineInstr *OI) |
static unsigned | flagSettingOpcodeVariant (unsigned OldOpcode) |
static MachineInstr * | canFoldIntoSelect (Register Reg, const MachineRegisterInfo &MRI) |
#define GET_INSTRINFO_CTOR_DTOR |
Definition at line 27 of file LanaiInstrInfo.cpp.
|
static |
Definition at line 457 of file LanaiInstrInfo.cpp.
References llvm::drop_begin(), MI, and MRI.
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 CC, 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::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().