|
LLVM 24.0.0git
|
#include "PPC.h"#include "PPCSubtarget.h"#include "PPCTargetMachine.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/ScalarEvolution.h"#include "llvm/Analysis/ScalarEvolutionExpressions.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/CFG.h"#include "llvm/IR/Dominators.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/IntrinsicsPowerPC.h"#include "llvm/IR/Type.h"#include "llvm/IR/Value.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Casting.h"#include "llvm/Support/Debug.h"#include "llvm/Transforms/Scalar.h"#include "llvm/Transforms/Utils.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"#include "llvm/Transforms/Utils/Local.h"#include "llvm/Transforms/Utils/LoopUtils.h"#include "llvm/Transforms/Utils/ScalarEvolutionExpander.h"#include <cassert>#include <cmath>#include <utility>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "ppc-loop-instr-form-prep" |
Functions | |
| STATISTIC (PHINodeAlreadyExistsUpdate, "PHI node already in pre-increment form") | |
| STATISTIC (PHINodeAlreadyExistsDS, "PHI node already in DS form") | |
| STATISTIC (PHINodeAlreadyExistsDQ, "PHI node already in DQ form") | |
| STATISTIC (DSFormChainRewritten, "Num of DS form chain rewritten") | |
| STATISTIC (DQFormChainRewritten, "Num of DQ form chain rewritten") | |
| STATISTIC (UpdFormChainRewritten, "Num of update form chain rewritten") | |
| STATISTIC (ChainCommoningRewritten, "Num of commoning chains") | |
| static bool | IsPtrInBounds (Value *BasePtr) |
| static std::string | getInstrName (const Value *I, StringRef Suffix) |
| static Value * | getPointerOperandAndType (Value *MemI, Type **PtrElementType=nullptr) |
Variables | |
| static const char * | name = "Prepare loop for ppc preferred instruction forms" |
| static constexpr StringRef | PHINodeNameSuffix = ".phi" |
| static constexpr StringRef | CastNodeNameSuffix = ".cast" |
| static constexpr StringRef | GEPNodeIncNameSuffix = ".inc" |
| static constexpr StringRef | GEPNodeOffNameSuffix = ".off" |
| #define DEBUG_TYPE "ppc-loop-instr-form-prep" |
Definition at line 111 of file PPCLoopInstrFormPrep.cpp.
|
static |
Definition at line 298 of file PPCLoopInstrFormPrep.cpp.
Definition at line 306 of file PPCLoopInstrFormPrep.cpp.
References llvm::dyn_cast(), llvm::Value::getContext(), and llvm::Type::getInt8Ty().
Definition at line 288 of file PPCLoopInstrFormPrep.cpp.
References llvm::dyn_cast(), and GEP.
| STATISTIC | ( | ChainCommoningRewritten | , |
| "Num of commoning chains" | ) |
References I, and llvm::Offset.
| STATISTIC | ( | DQFormChainRewritten | , |
| "Num of DQ form chain rewritten" | ) |
| STATISTIC | ( | DSFormChainRewritten | , |
| "Num of DS form chain rewritten" | ) |
| STATISTIC | ( | PHINodeAlreadyExistsDQ | , |
| "PHI node already in DQ form" | ) |
| STATISTIC | ( | PHINodeAlreadyExistsDS | , |
| "PHI node already in DS form" | ) |
| STATISTIC | ( | PHINodeAlreadyExistsUpdate | , |
| "PHI node already in pre-increment form" | ) |
| STATISTIC | ( | UpdFormChainRewritten | , |
| "Num of update form chain rewritten" | ) |
|
staticconstexpr |
Definition at line 280 of file PPCLoopInstrFormPrep.cpp.
|
staticconstexpr |
Definition at line 281 of file PPCLoopInstrFormPrep.cpp.
|
staticconstexpr |
Definition at line 282 of file PPCLoopInstrFormPrep.cpp.
Definition at line 273 of file PPCLoopInstrFormPrep.cpp.
|
staticconstexpr |
Definition at line 279 of file PPCLoopInstrFormPrep.cpp.