LLVM: lib/Target/CSKY/CSKYInstrInfo.cpp File Reference (original) (raw)

#include "[CSKYInstrInfo.h](CSKYInstrInfo%5F8h%5Fsource.html)"
#include "[CSKYConstantPoolValue.h](CSKYConstantPoolValue%5F8h%5Fsource.html)"
#include "[CSKYMachineFunctionInfo.h](CSKYMachineFunctionInfo%5F8h%5Fsource.html)"
#include "[CSKYTargetMachine.h](CSKYTargetMachine%5F8h%5Fsource.html)"
#include "[llvm/CodeGen/MachineFrameInfo.h](MachineFrameInfo%5F8h%5Fsource.html)"
#include "[llvm/MC/MCContext.h](MCContext%5F8h%5Fsource.html)"
#include "CSKYGenInstrInfo.inc"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "csky-instr-info"
#define GET_INSTRINFO_CTOR_DTOR
Functions
static void parseCondBranch (MachineInstr &LastInst, MachineBasicBlock *&Target, SmallVectorImpl< MachineOperand > &Cond)
static unsigned getOppositeBranchOpc (unsigned Opcode)

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "csky-instr-info"

Definition at line 20 of file CSKYInstrInfo.cpp.

GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 24 of file CSKYInstrInfo.cpp.

Function Documentation

getOppositeBranchOpc()

unsigned getOppositeBranchOpc ( unsigned Opcode) static

Definition at line 192 of file CSKYInstrInfo.cpp.

References llvm_unreachable.

Referenced by llvm::CSKYInstrInfo::reverseBranchCondition(), and llvm::LoongArchInstrInfo::reverseBranchCondition().

parseCondBranch()

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

Definition at line 37 of file CSKYInstrInfo.cpp.

References assert(), Cond, llvm::MachineOperand::CreateImm(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MCInstrDesc::isConditionalBranch().