Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
XCoreInstrInfo.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::XCore

Macros

#define GET_INSTRINFO_CTOR_DTOR

Enumerations

enum  llvm::XCore::CondCode { llvm::XCore::COND_TRUE , llvm::XCore::COND_FALSE , llvm::XCore::COND_INVALID }

Functions

static bool isZeroImm (const MachineOperand &op)
static bool IsBRU (unsigned BrOpc)
static bool IsBRT (unsigned BrOpc)
static bool IsBRF (unsigned BrOpc)
static bool IsCondBranch (unsigned BrOpc)
static bool IsBR_JT (unsigned BrOpc)
static XCore::CondCode GetCondFromBranchOpc (unsigned BrOpc)
 GetCondFromBranchOpc - Return the XCore CC that matches the correspondent Branch instruction opcode.
static unsigned GetCondBranchFromCond (XCore::CondCode CC)
 GetCondBranchFromCond - Return the Branch instruction opcode that matches the cc.
static XCore::CondCode GetOppositeBranchCondition (XCore::CondCode CC)
 GetOppositeBranchCondition - Return the inverse of the specified condition, e.g.
static bool isImmU6 (unsigned val)
static bool isImmU16 (unsigned val)
static bool isImmMskBitp (unsigned val)

Macro Definition Documentation

◆ GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 27 of file XCoreInstrInfo.cpp.

Function Documentation

◆ GetCondBranchFromCond()

unsigned GetCondBranchFromCond ( XCore::CondCode CC)
inlinestatic

GetCondBranchFromCond - Return the Branch instruction opcode that matches the cc.

Definition at line 142 of file XCoreInstrInfo.cpp.

References llvm::XCore::COND_FALSE, llvm::XCore::COND_TRUE, and llvm_unreachable.

Referenced by llvm::M68kInstrInfo::AnalyzeBranchImpl(), llvm::M68kInstrInfo::insertBranch(), and llvm::XCoreInstrInfo::insertBranch().

◆ GetCondFromBranchOpc()

XCore::CondCode GetCondFromBranchOpc ( unsigned BrOpc)
static

GetCondFromBranchOpc - Return the XCore CC that matches the correspondent Branch instruction opcode.

Definition at line 129 of file XCoreInstrInfo.cpp.

References llvm::XCore::COND_FALSE, llvm::XCore::COND_INVALID, llvm::XCore::COND_TRUE, IsBRF(), and IsBRT().

Referenced by llvm::XCoreInstrInfo::analyzeBranch().

◆ GetOppositeBranchCondition()

XCore::CondCode GetOppositeBranchCondition ( XCore::CondCode CC)
inlinestatic

GetOppositeBranchCondition - Return the inverse of the specified condition, e.g.

turning COND_E to COND_NE.

Definition at line 153 of file XCoreInstrInfo.cpp.

References llvm::XCore::COND_FALSE, llvm::XCore::COND_TRUE, and llvm_unreachable.

◆ IsBR_JT()

bool IsBR_JT ( unsigned BrOpc)
inlinestatic

Definition at line 122 of file XCoreInstrInfo.cpp.

Referenced by llvm::XCoreInstrInfo::analyzeBranch().

◆ IsBRF()

bool IsBRF ( unsigned BrOpc)
inlinestatic

Definition at line 111 of file XCoreInstrInfo.cpp.

Referenced by GetCondFromBranchOpc(), and IsCondBranch().

◆ IsBRT()

bool IsBRT ( unsigned BrOpc)
inlinestatic

Definition at line 104 of file XCoreInstrInfo.cpp.

Referenced by GetCondFromBranchOpc(), and IsCondBranch().

◆ IsBRU()

bool IsBRU ( unsigned BrOpc)
inlinestatic

◆ IsCondBranch()

bool IsCondBranch ( unsigned BrOpc)
inlinestatic

Definition at line 118 of file XCoreInstrInfo.cpp.

References IsBRF(), and IsBRT().

Referenced by hasConditionalTerminator(), and llvm::XCoreInstrInfo::removeBranch().

◆ isImmMskBitp()

bool isImmMskBitp ( unsigned val)
static

Definition at line 414 of file XCoreInstrInfo.cpp.

References llvm::bit_width(), llvm::isMask_32(), and N.

Referenced by llvm::XCoreInstrInfo::loadImmediate().

◆ isImmU16()

bool isImmU16 ( unsigned val)
inlinestatic

Definition at line 410 of file XCoreInstrInfo.cpp.

◆ isImmU6()

bool isImmU6 ( unsigned val)
inlinestatic

Definition at line 406 of file XCoreInstrInfo.cpp.

◆ isZeroImm()

bool isZeroImm ( const MachineOperand & op)
static

Definition at line 49 of file XCoreInstrInfo.cpp.

References op.