/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 402 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); 403 if (!BaseGV) 407 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); 423 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; 650 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { argument 651 // If BaseGV is nullptr, find base among candidate constant integers; 652 // Otherwise find base among constant GEPs that share the same BaseGV. 653 ConstCandVecType &ConstCandVec = BaseGV ? 654 ConstGEPCandMap[BaseGV] : ConstIntCandVec; 655 ConstInfoVecType &ConstInfoVec = BaseGV 837 emitBaseConstants(GlobalVariable *BaseGV) argument [all...] |
H A D | LoopStrengthReduce.cpp | 39 // TODO: Should the addressing mode BaseGV be changed to a ConstantExpr instead 329 GlobalValue *BaseGV = nullptr; member in struct:__anon4668::Formula 561 BaseGV ? BaseGV->getType() : 593 if (BaseGV) { 595 BaseGV->printAsOperand(OS, /*PrintType=*/false); 1202 GlobalValue *BaseGV, int64_t BaseOffset, 1358 if (F.BaseGV) 1367 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV, 1621 GlobalValue *BaseGV, int64_ 1619 isAMCompletelyFolded(const TargetTransformInfo &TTI, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, Instruction *Fixup ) argument 1673 isAMCompletelyFolded(const TargetTransformInfo &TTI, int64_t MinOffset, int64_t MaxOffset, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) argument 1711 isLegalUse(const TargetTransformInfo &TTI, int64_t MinOffset, int64_t MaxOffset, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) argument 1786 isAlwaysFoldable(const TargetTransformInfo &TTI, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg) argument 1819 GlobalValue *BaseGV = ExtractSymbol(S, SE); local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | ConstantHoisting.h | 192 // If BaseGV is nullptr, find base among Constant Integer candidates; 193 // otherwise find base among constant GEPs sharing BaseGV as base pointer. 194 void findBaseConstants(GlobalVariable *BaseGV); 197 // If BaseGV is nullptr, emit Constant Integer base; otherwise emit 199 bool emitBaseConstants(GlobalVariable *BaseGV);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 160 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument 165 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 221 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument 224 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, 749 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); local 750 bool HasBaseReg = (BaseGV == nullptr); 762 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; 793 TargetType, const_cast<GlobalValue *>(BaseGV),
|
H A D | TargetTransformInfo.h | 577 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 651 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 1306 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 1330 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 1597 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 1600 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, 1653 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 1656 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale,
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPerfHintAnalysis.cpp | 244 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); 245 AM.HasBaseReg = !AM.BaseGV;
|
H A D | SIISelLowering.cpp | 1266 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 241 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument 245 AM.BaseGV = BaseGV; 272 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument 275 AM.BaseGV = BaseGV;
|
H A D | TargetLowering.h | 2288 /// BaseGV + BaseOffs + BaseReg + Scale*ScaleReg 2289 /// If BaseGV is null, there is no BaseGV. 2295 GlobalValue *BaseGV = nullptr;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetTransformInfo.cpp | 343 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, argument 348 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, 429 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, argument 433 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg,
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 223 cl::desc("Allow combining of BaseGV field in Address sinking.")); 2303 if (BaseGV && other.BaseGV && 2304 BaseGV->getType() != other.BaseGV->getType()) 2318 if (BaseGV != other.BaseGV) 2338 // An AddrMode is (BaseGV + BaseReg + BaseOffs + ScaleReg * Scale) so it is 2339 // trivial if at most one of these terms is nonzero, except that BaseGV and 2342 return !BaseOffs && !Scale && !(BaseGV [all...] |
H A D | TargetLoweringBase.cpp | 1796 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRISelLowering.cpp | 749 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { 761 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 2712 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); local 2713 if (!BaseGV) 2717 const MCSymbol *BaseSym = AP.getSymbol(BaseGV);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 1892 if (AM.BaseGV) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 303 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelLowering.cpp | 3290 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXISelLowering.cpp | 4200 // BaseGV + BaseOffs + BaseReg + Scale*ScaleReg 4208 if (AM.BaseGV) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.cpp | 4275 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelLowering.cpp | 959 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.cpp | 15933 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 10232 if (AM.BaseGV)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 16661 if (AM.BaseGV)
|