LLVM
15.0.0git
|
#include "PPCTargetTransformInfo.h"
#include "llvm/Analysis/CodeMetrics.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/BasicTTIImpl.h"
#include "llvm/CodeGen/CostTable.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/TargetSchedule.h"
#include "llvm/IR/IntrinsicsPowerPC.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/KnownBits.h"
#include "llvm/Transforms/InstCombine/InstCombiner.h"
#include "llvm/Transforms/Utils/Local.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "ppctti" |
Functions | |
static bool | isMMAType (Type *Ty) |
static bool | memAddrUsesCTR (const Value *MemAddr, const PPCTargetMachine &TM, SmallPtrSetImpl< const Value * > &Visited) |
Variables | |
static cl::opt< bool > | DisablePPCConstHoist ("disable-ppc-constant-hoisting", cl::desc("disable constant hoisting on PPC"), cl::init(false), cl::Hidden) |
static cl::opt< bool > | EnablePPCColdCC ("ppc-enable-coldcc", cl::Hidden, cl::init(false), cl::desc("Enable using coldcc calling conv for cold " "internal functions")) |
static cl::opt< bool > | LsrNoInsnsCost ("ppc-lsr-no-insns-cost", cl::Hidden, cl::init(false), cl::desc("Do not add instruction count to lsr cost model")) |
static cl::opt< unsigned > | SmallCTRLoopThreshold ("min-ctr-loop-threshold", cl::init(4), cl::Hidden, cl::desc("Loops with a constant trip count smaller than " "this value will not use the count register.")) |
#define DEBUG_TYPE "ppctti" |
Definition at line 26 of file PPCTargetTransformInfo.cpp.
|
static |
Definition at line 318 of file PPCTargetTransformInfo.cpp.
References llvm::Type::getPrimitiveSizeInBits(), llvm::Type::getScalarSizeInBits(), and llvm::Type::isVectorTy().
Referenced by llvm::PPCTTIImpl::vectorCostAdjustmentFactor().
|
static |
Definition at line 343 of file PPCTargetTransformInfo.cpp.
References llvm::TLSModel::GeneralDynamic, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::TLSModel::LocalDynamic, and TM.
Referenced by llvm::PPCTTIImpl::isHardwareLoopProfitable().
|
static |
Referenced by llvm::PPCTTIImpl::useColdCCForColdCall().
|
static |
Referenced by llvm::PPCTTIImpl::isLSRCostLess().