|
LLVM 24.0.0git
|
#include "LoongArchInstrInfo.h"#include "LoongArch.h"#include "LoongArchMachineFunctionInfo.h"#include "LoongArchRegisterInfo.h"#include "MCTargetDesc/LoongArchMCTargetDesc.h"#include "MCTargetDesc/LoongArchMatInt.h"#include "llvm/CodeGen/RegisterScavenging.h"#include "llvm/CodeGen/StackMaps.h"#include "llvm/MC/MCContext.h"#include "llvm/MC/MCInstBuilder.h"#include "llvm/Support/CommandLine.h"#include "LoongArchGenInstrInfo.inc"Go to the source code of this file.
Macros | |
| #define | GET_INSTRINFO_CTOR_DTOR |
Functions | |
| static bool | isJumpTableLoad (const MachineInstr &MI) |
| static int | getJumpTableIndexFromReg (const MachineRegisterInfo &MRI, Register Reg) |
| static int | getJumpTableIndexFromLoadAddr (const MachineRegisterInfo &MRI, Register Reg) |
| static void | parseCondBranch (MachineInstr &LastInst, MachineBasicBlock *&Target, SmallVectorImpl< MachineOperand > &Cond) |
| static unsigned | getOppositeBranchOpc (unsigned Opc) |
Variables | |
| static cl::opt< bool > | DisableRelocSched ("loongarch-disable-reloc-sched", cl::desc("Disable scheduling of instructions with target flags"), cl::init(false), cl::Hidden) |
| #define GET_INSTRINFO_CTOR_DTOR |
Definition at line 32 of file LoongArchInstrInfo.cpp.
|
static |
Definition at line 422 of file LoongArchInstrInfo.cpp.
References getJumpTableIndexFromReg(), llvm::MachineRegisterInfo::getUniqueVRegDef(), MI, and Reg.
Referenced by llvm::LoongArchInstrInfo::getJumpTableIndex(), and llvm::RISCVInstrInfo::getJumpTableIndex().
|
static |
Definition at line 386 of file LoongArchInstrInfo.cpp.
References getJumpTableIndexFromReg(), llvm::MachineRegisterInfo::getUniqueVRegDef(), MI, and Reg.
Referenced by llvm::LoongArchInstrInfo::getJumpTableIndex(), llvm::X86InstrInfo::getJumpTableIndex(), getJumpTableIndexFromLoadAddr(), and getJumpTableIndexFromReg().
Definition at line 913 of file LoongArchInstrInfo.cpp.
References llvm_unreachable, and Opc.
|
static |
Definition at line 377 of file LoongArchInstrInfo.cpp.
References llvm::any_of(), and MI.
Referenced by llvm::LoongArchInstrInfo::getJumpTableIndex(), and llvm::RISCVInstrInfo::getJumpTableIndex().
|
static |
Definition at line 499 of file LoongArchInstrInfo.cpp.
References assert(), Cond, llvm::MachineOperand::CreateImm(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getNumExplicitOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MCInstrDesc::isConditionalBranch().
|
static |
Referenced by llvm::LoongArchInstrInfo::isSafeToMove().