LLVM API Documentation
#include "llvm/Transforms/Scalar.h"#include "llvm/BasicBlock.h"#include "llvm/Constants.h"#include "llvm/Instructions.h"#include "llvm/LLVMContext.h"#include "llvm/Type.h"#include "llvm/Analysis/Dominators.h"#include "llvm/Analysis/IVUsers.h"#include "llvm/Analysis/ScalarEvolutionExpander.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/LoopPass.h"#include "llvm/Support/CFG.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/Debug.h"#include "llvm/Transforms/Utils/Local.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"#include "llvm/Support/CommandLine.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/ADT/STLExtras.h"
Go to the source code of this file.
Defines | |
| #define | DEBUG_TYPE "indvars" |
Functions | |
| STATISTIC (NumRemoved,"Number of aux indvars removed") | |
| STATISTIC (NumInserted,"Number of canonical indvars added") | |
| STATISTIC (NumReplaced,"Number of exit values replaced") | |
| STATISTIC (NumLFTR,"Number of loop exit tests replaced") | |
| Pass * | llvm::createIndVarSimplifyPass () |
| static bool | useSIToFPInst (ConstantFP &InitV, ConstantFP &ExitV, uint64_t intIV, uint64_t intEV) |
| static bool | convertToInt (const APFloat &APF, uint64_t *intVal) |
| convertToInt - Convert APF to an integer, if possible. | |
Variables | |
| static RegisterPass < IndVarSimplify > | X ("indvars","Canonicalize Induction Variables") |
| #define DEBUG_TYPE "indvars" |
Definition at line 41 of file IndVarSimplify.cpp.
convertToInt - Convert APF to an integer, if possible.
Definition at line 610 of file IndVarSimplify.cpp.
References llvm::APFloat::convertToInteger(), llvm::APFloat::getSemantics(), llvm::APFloat::isNegative(), llvm::APFloat::opOK, llvm::APFloat::PPCDoubleDouble, and llvm::APFloat::rmTowardZero.
| STATISTIC | ( | NumLFTR | , | |
| "Number of loop exit tests replaced" | ||||
| ) |
| STATISTIC | ( | NumReplaced | , | |
| "Number of exit values replaced" | ||||
| ) |
| STATISTIC | ( | NumInserted | , | |
| "Number of canonical indvars added" | ||||
| ) |
| STATISTIC | ( | NumRemoved | , | |
| "Number of aux indvars removed" | ||||
| ) |
| static bool useSIToFPInst | ( | ConstantFP & | InitV, | |
| ConstantFP & | ExitV, | |||
| uint64_t | intIV, | |||
| uint64_t | intEV | |||
| ) | [static] |
Return true if it is OK to use SIToFPInst for an inducation variable with given inital and exit values.
Definition at line 595 of file IndVarSimplify.cpp.
References llvm::abs64(), llvm::APInt::getSignedMaxValue(), llvm::ConstantFP::getValueAPF(), llvm::APInt::getZExtValue(), and llvm::APFloat::isNegative().
Definition at line 75 of file IndVarSimplify.cpp.
Definition at line 74 of file IndVarSimplify.cpp.
char ID [static] |
Definition at line 78 of file IndVarSimplify.cpp.
Definition at line 71 of file IndVarSimplify.cpp.
Definition at line 72 of file IndVarSimplify.cpp.
Definition at line 73 of file IndVarSimplify.cpp.
Referenced by llvm::DominanceFrontier::calculate(), ChangeToUnreachable(), llvm::LiveIntervals::findReachableMBBs(), findSinglePredSuccessor(), llvm::LoopBase< llvm::MachineBasicBlock, llvm::MachineLoop >::isLoopExit(), llvm::Linker::LinkModules(), MarkAliveBlocks(), llvm::MergeBlockIntoPredecessor(), llvm::ScalarEvolution::print(), llvm::Type::PromoteAbstractToConcrete(), RecursiveResolveTypesI(), RemoveUnreachableBlocksFromFn(), llvm::LazyLiveness::runOnMachineFunction(), llvm::set_difference(), llvm::set_subtract(), llvm::set_union(), llvm::SimplifyCFG(), llvm::UnrollLoop(), llvm::Archive::writeMember(), and WriteValueSymbolTable().
RegisterPass<IndVarSimplify> X("indvars","Canonicalize Induction Variables") [static] |