|
LLVM 23.0.0git
|
#include "AArch64.h"#include "MCTargetDesc/AArch64AddressingModes.h"#include "Utils/AArch64BaseInfo.h"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/CodeGen/TargetSubtargetInfo.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Debug.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/raw_ostream.h"#include <cassert>#include <cstdlib>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "aarch64-condopt" |
Functions | |
| STATISTIC (NumConditionsAdjusted, "Number of conditions adjusted") | |
| INITIALIZE_PASS_BEGIN (AArch64ConditionOptimizerLegacy, "aarch64-condopt", "AArch64 CondOpt Pass", false, false) INITIALIZE_PASS_END(AArch64ConditionOptimizerLegacy | |
| static bool | isCmpInstruction (unsigned Opc) |
| static bool | isCSINCInstruction (unsigned Opc) |
| static int | getComplementOpc (int Opc) |
| static AArch64CC::CondCode | getAdjustedCmp (AArch64CC::CondCode Cmp) |
| static AArch64CC::CondCode | parseCondCode (ArrayRef< MachineOperand > Cond) |
| static bool | isGreaterThan (AArch64CC::CondCode Cmp) |
| static bool | isLessThan (AArch64CC::CondCode Cmp) |
Variables | |
| aarch64 | condopt |
| aarch64 AArch64 CondOpt | Pass |
| aarch64 AArch64 CondOpt | false |
| #define DEBUG_TYPE "aarch64-condopt" |
Definition at line 94 of file AArch64ConditionOptimizer.cpp.
|
static |
Definition at line 303 of file AArch64ConditionOptimizer.cpp.
References llvm::AArch64CC::GE, llvm::AArch64CC::GT, llvm::AArch64CC::HI, llvm::AArch64CC::HS, llvm::AArch64CC::LE, llvm_unreachable, llvm::AArch64CC::LO, llvm::AArch64CC::LS, and llvm::AArch64CC::LT.
|
static |
Definition at line 291 of file AArch64ConditionOptimizer.cpp.
References llvm_unreachable, and Opc.
| INITIALIZE_PASS_BEGIN | ( | AArch64ConditionOptimizerLegacy | , |
| "aarch64-condopt" | , | ||
| "AArch64 CondOpt Pass" | , | ||
| false | , | ||
| false | ) |
References INITIALIZE_PASS_DEPENDENCY.
Definition at line 217 of file AArch64ConditionOptimizer.cpp.
References Opc.
Definition at line 231 of file AArch64ConditionOptimizer.cpp.
References Opc.
|
static |
Definition at line 431 of file AArch64ConditionOptimizer.cpp.
References llvm::AArch64CC::GT, and llvm::AArch64CC::HI.
|
static |
Definition at line 435 of file AArch64ConditionOptimizer.cpp.
References llvm::AArch64CC::LO, and llvm::AArch64CC::LT.
|
static |
Definition at line 405 of file AArch64ConditionOptimizer.cpp.
References assert(), Cond, llvm::getImm(), and llvm::AArch64CC::Invalid.
| STATISTIC | ( | NumConditionsAdjusted | , |
| "Number of conditions adjusted" | ) |
References Opc.
| aarch64 condopt |
Definition at line 153 of file AArch64ConditionOptimizer.cpp.
| aarch64 AArch64 CondOpt false |
Definition at line 154 of file AArch64ConditionOptimizer.cpp.
| aarch64 AArch64 CondOpt Pass |
Definition at line 154 of file AArch64ConditionOptimizer.cpp.