LLVM API Documentation
#include "SystemZTargetMachine.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/IR/Function.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/MathExtras.h"#include "llvm/Target/TargetInstrInfo.h"#include "llvm/Target/TargetMachine.h"#include "llvm/Target/TargetRegisterInfo.h"
Go to the source code of this file.
Defines | |
| #define | DEBUG_TYPE "systemz-elim-compare" |
Functions | |
| STATISTIC (BranchOnCounts,"Number of branch-on-count instructions") | |
| STATISTIC (EliminatedComparisons,"Number of eliminated comparisons") | |
| STATISTIC (FusedComparisons,"Number of fused compare-and-branch instructions") | |
| static bool | isCCLiveOut (MachineBasicBlock &MBB) |
| static bool | resultTests (MachineInstr *MI, unsigned Reg, unsigned SubReg) |
| static bool | isCompareZero (MachineInstr *Compare) |
| #define DEBUG_TYPE "systemz-elim-compare" |
Definition at line 29 of file SystemZElimCompare.cpp.
| static bool isCCLiveOut | ( | MachineBasicBlock & | MBB | ) | [static] |
Definition at line 100 of file SystemZElimCompare.cpp.
References llvm::MachineBasicBlock::succ_begin(), and llvm::MachineBasicBlock::succ_end().
| static bool isCompareZero | ( | MachineInstr * | Compare | ) | [static] |
Definition at line 303 of file SystemZElimCompare.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getNumExplicitOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::isImm().
| static bool resultTests | ( | MachineInstr * | MI, |
| unsigned | Reg, | ||
| unsigned | SubReg | ||
| ) | [static] |
Definition at line 109 of file SystemZElimCompare.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), and llvm::MipsISD::LDR.
| STATISTIC | ( | BranchOnCounts | , |
| "Number of branch-on-count instructions" | |||
| ) |
| STATISTIC | ( | EliminatedComparisons | , |
| "Number of eliminated comparisons" | |||
| ) |
| STATISTIC | ( | FusedComparisons | , |
| "Number of fused compare-and-branch instructions" | |||
| ) |