LLVM: lib/Target/LoongArch/LoongArchInstrInfo.cpp File Reference (original) (raw)

#include "[LoongArchInstrInfo.h](LoongArchInstrInfo%5F8h%5Fsource.html)"
#include "[LoongArch.h](LoongArch%5F8h%5Fsource.html)"
#include "[LoongArchMachineFunctionInfo.h](LoongArchMachineFunctionInfo%5F8h%5Fsource.html)"
#include "[LoongArchRegisterInfo.h](LoongArchRegisterInfo%5F8h%5Fsource.html)"
#include "[MCTargetDesc/LoongArchMCTargetDesc.h](LoongArchMCTargetDesc%5F8h%5Fsource.html)"
#include "[MCTargetDesc/LoongArchMatInt.h](LoongArchMatInt%5F8h%5Fsource.html)"
#include "[llvm/CodeGen/RegisterScavenging.h](RegisterScavenging%5F8h%5Fsource.html)"
#include "[llvm/CodeGen/StackMaps.h](StackMaps%5F8h%5Fsource.html)"
#include "[llvm/MC/MCInstBuilder.h](MCInstBuilder%5F8h%5Fsource.html)"
#include "LoongArchGenInstrInfo.inc"

Go to the source code of this file.

Macros
#define GET_INSTRINFO_CTOR_DTOR
Functions
static void parseCondBranch (MachineInstr &LastInst, MachineBasicBlock *&Target, SmallVectorImpl< MachineOperand > &Cond)
static unsigned getOppositeBranchOpc (unsigned Opc)

Macro Definition Documentation

GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 25 of file LoongArchInstrInfo.cpp.

Function Documentation

getOppositeBranchOpc()

unsigned getOppositeBranchOpc ( unsigned Opc) static

Definition at line 682 of file LoongArchInstrInfo.cpp.

References llvm_unreachable, and Opc.

parseCondBranch()

void parseCondBranch ( MachineInstr & LastInst, MachineBasicBlock *& Target, SmallVectorImpl< MachineOperand > & Cond ) static

Definition at line 285 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().