|
LLVM
7.0.0
|
#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/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/CodeGen/TargetSubtargetInfo.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>#include <tuple>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "aarch64-condopt" |
Functions | |
| STATISTIC (NumConditionsAdjusted, "Number of conditions adjusted") | |
| INITIALIZE_PASS_BEGIN (AArch64ConditionOptimizer, "aarch64-condopt", "AArch64 CondOpt Pass", false, false) INITIALIZE_PASS_END(AArch64ConditionOptimizer | |
| static int | getComplementOpc (int Opc) |
| static AArch64CC::CondCode | getAdjustedCmp (AArch64CC::CondCode Cmp) |
| static bool | parseCond (ArrayRef< MachineOperand > Cond, AArch64CC::CondCode &CC) |
Variables | |
| aarch64 | condopt |
| aarch64 AArch64 CondOpt | Pass |
| aarch64 AArch64 CondOpt | false |
| #define DEBUG_TYPE "aarch64-condopt" |
Definition at line 88 of file AArch64ConditionOptimizer.cpp.
|
static |
Definition at line 229 of file AArch64ConditionOptimizer.cpp.
References llvm::abs(), llvm::ARM_AM::add, llvm::MachineInstrBuilder::add(), llvm::BuildMI(), llvm::MachineInstr::eraseFromParent(), llvm::AArch64CC::GE, getComplementOpc(), llvm::MachineInstr::getDebugLoc(), llvm::MachineBasicBlock::getFirstTerminator(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::AArch64CC::GT, llvm::AArch64CC::LE, llvm_unreachable, llvm::AArch64CC::LT, TII, and llvm::MachineBasicBlock::updateTerminator().
|
static |
Definition at line 217 of file AArch64ConditionOptimizer.cpp.
References llvm_unreachable.
Referenced by getAdjustedCmp().
| INITIALIZE_PASS_BEGIN | ( | AArch64ConditionOptimizer | , |
| "aarch64-condopt" | , | ||
| "AArch64 CondOpt Pass" | , | ||
| false | , | ||
| false | |||
| ) |
|
static |
Definition at line 305 of file AArch64ConditionOptimizer.cpp.
References llvm::abs(), llvm::HexagonInstrInfo::analyzeBranch(), assert(), llvm::dbgs(), llvm::depth_first(), llvm::SmallVectorBase::empty(), llvm::AArch64CC::getCondCodeName(), llvm::MachineFunction::getFunction(), llvm::MachineOperand::getImm(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineFunction::getName(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineFunction::getRegInfo(), llvm::MachineFunction::getSubtarget(), llvm::AArch64CC::GT, I, LLVM_DEBUG, llvm::AArch64CC::LT, MRI, llvm::ArrayRef< T >::size(), and TII.
| STATISTIC | ( | NumConditionsAdjusted | , |
| "Number of conditions adjusted" | |||
| ) |
| aarch64 condopt |
Definition at line 130 of file AArch64ConditionOptimizer.cpp.
| aarch64 AArch64 CondOpt false |
Definition at line 130 of file AArch64ConditionOptimizer.cpp.
| aarch64 AArch64 CondOpt Pass |
Definition at line 130 of file AArch64ConditionOptimizer.cpp.
1.8.13