Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp397 if (!BaseGV) in collectConstantCandidates()
401 PointerType *GVPtrTy = dyn_cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
416 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
634 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
637 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
638 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
639 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
640 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
821 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
824 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
[all …]
H A DLoopStrengthReduce.cpp317 GlobalValue *BaseGV = nullptr; member
549 BaseGV ? BaseGV->getType() : in getType()
581 if (BaseGV) { in print()
1347 if (F.BaseGV) in RateFormula()
1618 if (BaseGV) in isAMCompletelyFolded()
2606 F.BaseGV == OrigF.BaseGV && in FindUseWithSimilarFormula()
3714 F.BaseGV = GV; in GenerateSymbolicOffsetsImpl()
3728 if (Base.BaseGV) return; in GenerateSymbolicOffsets()
3960 if (Base.BaseGV) return; in GenerateTruncates()
4374 if (!F.BaseGV) { in NarrowSearchSpaceByDetectingSupersets()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h238 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
243 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
271 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
274 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
715 const GlobalValue *BaseGV = nullptr; in getGEPCost() local
721 BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost()
723 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
735 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost()
770 TargetType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
H A DTargetTransformInfo.h472 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
524 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
1060 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1076 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1288 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
1292 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
1326 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
1329 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h190 void findBaseConstants(GlobalVariable *BaseGV);
195 bool emitBaseConstants(GlobalVariable *BaseGV);
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp248 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit()
249 AM.HasBaseReg = !AM.BaseGV; in visit()
H A DSIISelLowering.cpp1030 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h226 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
230 AM.BaseGV = BaseGV;
253 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
256 AM.BaseGV = BaseGV; in getScalingFactorCost()
H A DTargetLowering.h2069 GlobalValue *BaseGV = nullptr; member
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1954 if (BaseGV && other.BaseGV && in compare()
1955 BaseGV->getType() != other.BaseGV->getType()) in compare()
1965 if (BaseGV != other.BaseGV) in compare()
1999 return BaseGV; in GetFieldAsValue()
2021 BaseGV = nullptr; in SetCombinedField()
2059 if (BaseGV) { in print()
4158 if (!AddrMode.BaseGV) { in matchAddr()
4159 AddrMode.BaseGV = GV; in matchAddr()
4656 if (AddrMode.BaseGV) { in optimizeMemoryInst()
4757 (AddrMode.BaseGV && in optimizeMemoryInst()
[all …]
H A DTargetLoweringBase.cpp1605 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp144 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
150 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
195 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
200 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
/freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2568 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
2569 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
2573 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/freebsd-12.1/contrib/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp751 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
763 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) { in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp212 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1890 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp2953 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp3963 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4038 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp708 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp8652 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp27421 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != nullptr)) in isLegalAddressingMode()
27424 if (AM.BaseGV) { in isLegalAddressingMode()
27425 unsigned GVFlags = Subtarget.classifyGlobalReference(AM.BaseGV); in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp13743 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp13277 if (AM.BaseGV) in isLegalAddressingMode()