LLVM API Documentation
#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 "llvm/Support/ErrorHandling.h"
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) |
| static unsigned GetCondBranchFromCond | ( | XCore::CondCode | CC | ) | [inline, static] |
GetCondBranchFromCond - Return the Branch instruction opcode that matches the cc.
Definition at line 187 of file XCoreInstrInfo.cpp.
References llvm::XCore::COND_FALSE, llvm::XCore::COND_TRUE, and llvm_unreachable.
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 174 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 198 of file XCoreInstrInfo.cpp.
References llvm::XCore::COND_FALSE, llvm::XCore::COND_TRUE, and llvm_unreachable.
Referenced by PerformCMOVCombine(), llvm::XCoreInstrInfo::ReverseBranchCondition(), llvm::X86InstrInfo::ReverseBranchCondition(), and llvm::MipsInstrInfo::ReverseBranchCondition().
Definition at line 161 of file XCoreInstrInfo.cpp.
Referenced by GetCondFromBranchOpc(), and IsCondBranch().
Definition at line 154 of file XCoreInstrInfo.cpp.
Referenced by GetCondFromBranchOpc(), and IsCondBranch().
Definition at line 147 of file XCoreInstrInfo.cpp.
Referenced by llvm::XCoreInstrInfo::AnalyzeBranch(), and llvm::XCoreInstrInfo::RemoveBranch().
Definition at line 168 of file XCoreInstrInfo.cpp.
References IsBRF(), and IsBRT().
Referenced by llvm::XCoreInstrInfo::RemoveBranch().
| static bool isZeroImm | ( | const MachineOperand & | op | ) | [static] |
Definition at line 45 of file XCoreInstrInfo.cpp.
References llvm::MachineOperand::getImm(), and llvm::MachineOperand::isImm().