|
LLVM 24.0.0git
|
#include "XCoreInstrInfo.h"#include "XCoreSubtarget.h"#include "llvm/CodeGen/MachineConstantPool.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineMemOperand.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/MC/MCContext.h"#include "llvm/Support/ErrorHandling.h"#include "XCoreGenInstrInfo.inc"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) |
| #define GET_INSTRINFO_CTOR_DTOR |
Definition at line 26 of file XCoreInstrInfo.cpp.
|
inlinestatic |
GetCondBranchFromCond - Return the Branch instruction opcode that matches the cc.
Definition at line 141 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().
|
static |
GetCondFromBranchOpc - Return the XCore CC that matches the correspondent Branch instruction opcode.
Definition at line 128 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().
|
inlinestatic |
GetOppositeBranchCondition - Return the inverse of the specified condition, e.g.
turning COND_E to COND_NE.
Definition at line 152 of file XCoreInstrInfo.cpp.
References llvm::XCore::COND_FALSE, llvm::XCore::COND_TRUE, and llvm_unreachable.
Definition at line 121 of file XCoreInstrInfo.cpp.
Referenced by llvm::XCoreInstrInfo::analyzeBranch().
Definition at line 110 of file XCoreInstrInfo.cpp.
Referenced by GetCondFromBranchOpc(), and IsCondBranch().
Definition at line 103 of file XCoreInstrInfo.cpp.
Referenced by GetCondFromBranchOpc(), and IsCondBranch().
Definition at line 96 of file XCoreInstrInfo.cpp.
Referenced by llvm::XCoreInstrInfo::analyzeBranch(), and llvm::XCoreInstrInfo::removeBranch().
Definition at line 117 of file XCoreInstrInfo.cpp.
References IsBRF(), and IsBRT().
Referenced by hasConditionalTerminator(), and llvm::XCoreInstrInfo::removeBranch().
Definition at line 412 of file XCoreInstrInfo.cpp.
References llvm::bit_width(), llvm::isMask_32(), and N.
Referenced by llvm::XCoreInstrInfo::loadImmediate().
Definition at line 408 of file XCoreInstrInfo.cpp.
Definition at line 404 of file XCoreInstrInfo.cpp.
|
static |
Definition at line 48 of file XCoreInstrInfo.cpp.
References op.