Home
last modified time | relevance | path

Searched refs:BaseGV (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp408 if (!BaseGV) in collectConstantCandidates()
412 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
437 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
662 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
665 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
666 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
667 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
668 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
840 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
843 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
[all …]
H A DLoopStrengthReduce.cpp357 GlobalValue *BaseGV = nullptr; member
595 BaseGV ? BaseGV->getType() : in getType()
627 if (BaseGV) { in print()
1413 if (F.BaseGV) in RateFormula()
1687 if (BaseGV) in isAMCompletelyFolded()
2680 F.BaseGV == OrigF.BaseGV && in FindUseWithSimilarFormula()
3861 F.BaseGV = GV; in GenerateSymbolicOffsetsImpl()
3875 if (Base.BaseGV) return; in GenerateSymbolicOffsets()
4167 if (Base.BaseGV) return; in GenerateTruncates()
4621 if (!F.BaseGV) { in NarrowSearchSpaceByDetectingSupersets()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h199 void findBaseConstants(GlobalVariable *BaseGV);
215 bool emitBaseConstants(GlobalVariable *BaseGV);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h221 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
226 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
317 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
322 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
1028 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local
1029 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
1041 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost()
1091 AccessType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
H A DTargetTransformInfo.h711 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
820 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1822 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1858 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
2278 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
2281 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in isLegalAddressingMode()
2360 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
2364 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp261 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit()
262 AM.HasBaseReg = !AM.BaseGV; in visit()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2702 if (BaseGV && other.BaseGV && BaseGV->getType() != other.BaseGV->getType()) in compare()
2716 if (BaseGV != other.BaseGV) in compare()
2750 return BaseGV; in GetFieldAsValue()
2772 BaseGV = nullptr; in SetCombinedField()
2810 if (BaseGV) { in print()
5012 if (!AddrMode.BaseGV) { in matchAddr()
5013 AddrMode.BaseGV = GV; in matchAddr()
5016 AddrMode.BaseGV = nullptr; in matchAddr()
5526 if (AddrMode.BaseGV) { in optimizeMemoryInst()
5641 (AddrMode.BaseGV && in optimizeMemoryInst()
[all …]
H A DTargetLoweringBase.cpp1975 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp402 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
407 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
521 Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument
524 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h334 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
338 AM.BaseGV = BaseGV;
398 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
402 AM.BaseGV = BaseGV; in getScalingFactorCost()
H A DTargetLowering.h2689 GlobalValue *BaseGV = nullptr; member
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h253 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DX86TargetTransformInfo.cpp6652 InstructionCost X86TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
6675 AM.BaseGV = BaseGV; in getScalingFactorCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h408 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DAArch64TargetTransformInfo.cpp4038 AArch64TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
4049 AM.BaseGV = BaseGV; in getScalingFactorCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h304 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DARMTargetTransformInfo.cpp2565 InstructionCost ARMTTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
2570 AM.BaseGV = BaseGV; in getScalingFactorCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelLowering.cpp924 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3630 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
3631 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
3635 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp1064 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
1076 if (AM.BaseGV == nullptr && AM.HasBaseReg && AM.Scale == 0 && in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1794 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3669 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp4878 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp4986 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4296 if (AM.BaseGV) in isLegalAddressingMode()

12