Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp407 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local
408 if (!BaseGV) in collectConstantCandidates()
412 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
437 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
640 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
643 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
644 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
645 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
646 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
821 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
[all …]
H A DLoopStrengthReduce.cpp476 GlobalValue *BaseGV = nullptr; member
731 BaseGV ? BaseGV->getType() : in getType()
763 if (BaseGV) { in print()
765 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
1373 GlobalValue *BaseGV, Immediate BaseOffset,
1531 if (F.BaseGV) in RateFormula()
1541 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV, in RateFormula()
1799 GlobalValue *BaseGV, Immediate BaseOffset, in isAMCompletelyFolded() argument
1808 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, FixedOffset, in isAMCompletelyFolded()
1815 if (BaseGV) in isAMCompletelyFolded()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h202 void findBaseConstants(GlobalVariable *BaseGV);
218 bool emitBaseConstants(GlobalVariable *BaseGV);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h272 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
279 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
400 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
405 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset.getFixed(), HasBaseReg, in getScalingFactorCost()
1243 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local
1244 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
1256 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost()
1306 AccessType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
H A DTargetTransformInfo.h764 LLVM_ABI bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
894 LLVM_ABI InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp258 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit()
259 AM.HasBaseReg = !AM.BaseGV; in visit()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3134 if (BaseGV && other.BaseGV && BaseGV->getType() != other.BaseGV->getType()) in compare()
3148 if (BaseGV != other.BaseGV) in compare()
3172 return !BaseOffs && !Scale && !(BaseGV && BaseReg); in isTrivial()
3182 return BaseGV; in GetFieldAsValue()
3204 BaseGV = nullptr; in SetCombinedField()
3242 if (BaseGV) { in print()
3244 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
5461 if (!AddrMode.BaseGV) { in matchAddr()
5462 AddrMode.BaseGV = GV; in matchAddr()
5465 AddrMode.BaseGV = nullptr; in matchAddr()
[all …]
H A DTargetLoweringBase.cpp2003 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp425 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
431 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
564 Type *Ty, GlobalValue *BaseGV, StackOffset BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument
567 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h316 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DARMTargetTransformInfo.cpp2719 InstructionCost ARMTTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
2724 AM.BaseGV = BaseGV; in getScalingFactorCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h261 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DX86TargetTransformInfo.cpp7089 InstructionCost X86TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
7112 AM.BaseGV = BaseGV; in getScalingFactorCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h443 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
448 AM.BaseGV = BaseGV;
507 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
512 AM.BaseGV = BaseGV; in getScalingFactorCost()
H A DTargetLowering.h2884 GlobalValue *BaseGV = nullptr; member
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h468 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DAArch64AsmPrinter.cpp2245 const Value *BaseGV = CPA.getPointer()->stripAndAccumulateConstantOffsets( in lowerConstantPtrAuth() local
2248 auto *BaseGVB = dyn_cast<GlobalValue>(BaseGV); in lowerConstantPtrAuth()
2253 BaseGV->getContext().emitError( in lowerConstantPtrAuth()
H A DAArch64TargetTransformInfo.cpp5907 AArch64TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
5918 AM.BaseGV = BaseGV; in getScalingFactorCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelLowering.cpp1056 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3991 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
3992 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
3996 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp992 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
1004 if (AM.BaseGV == nullptr && AM.HasBaseReg && AM.Scale == 0 && in isLegalAddressingMode()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1764 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3724 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4469 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp4725 if (AM.BaseGV) in isLegalAddressingMode()

12