LLVM API Documentation

XCoreInstrInfo.cpp File Reference

#include "XCoreMachineFunctionInfo.h"
#include "XCoreInstrInfo.h"
#include "XCore.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLocation.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "XCoreGenInstrInfo.inc"
#include "llvm/Support/Debug.h"

Include dependency graph for XCoreInstrInfo.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm
namespace  llvm::XCore

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 XCore::CondCode GetCondFromBranchOpc (unsigned BrOpc)
static unsigned GetCondBranchFromCond (XCore::CondCode CC)
static XCore::CondCode GetOppositeBranchCondition (XCore::CondCode CC)


Function Documentation

static unsigned GetCondBranchFromCond ( XCore::CondCode  CC  )  [inline, static]

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

Definition at line 186 of file XCoreInstrInfo.cpp.

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

Referenced by llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreInstrInfo::InsertBranch(), llvm::X86InstrInfo::InsertBranch(), and llvm::MipsInstrInfo::InsertBranch().

static XCore::CondCode GetCondFromBranchOpc ( unsigned  BrOpc  )  [static]

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

Definition at line 173 of file XCoreInstrInfo.cpp.

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

static XCore::CondCode GetOppositeBranchCondition ( XCore::CondCode  CC  )  [inline, static]

GetOppositeBranchCondition - Return the inverse of the specified condition, e.g. turning COND_E to COND_NE.

Definition at line 197 of file XCoreInstrInfo.cpp.

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

Referenced by llvm::XCoreInstrInfo::ReverseBranchCondition(), llvm::X86InstrInfo::ReverseBranchCondition(), and llvm::MipsInstrInfo::ReverseBranchCondition().

static bool IsBRF ( unsigned  BrOpc  )  [inline, static]

Definition at line 160 of file XCoreInstrInfo.cpp.

Referenced by GetCondFromBranchOpc(), and IsCondBranch().

static bool IsBRT ( unsigned  BrOpc  )  [inline, static]

Definition at line 153 of file XCoreInstrInfo.cpp.

Referenced by GetCondFromBranchOpc(), and IsCondBranch().

static bool IsBRU ( unsigned  BrOpc  )  [inline, static]

static bool IsCondBranch ( unsigned  BrOpc  )  [inline, static]

Definition at line 167 of file XCoreInstrInfo.cpp.

References IsBRF(), and IsBRT().

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

static bool isZeroImm ( const MachineOperand &  op  )  [static]