Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp410 if (!BaseGV) in collectConstantCandidates()
414 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
431 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
658 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
661 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
662 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
663 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
664 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
845 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
848 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
[all …]
H A DLoopStrengthReduce.cpp341 GlobalValue *BaseGV = nullptr; member
578 BaseGV ? BaseGV->getType() : in getType()
610 if (BaseGV) { in print()
1395 if (F.BaseGV) in RateFormula()
1669 if (BaseGV) in isAMCompletelyFolded()
2670 F.BaseGV == OrigF.BaseGV && in FindUseWithSimilarFormula()
3798 F.BaseGV = GV; in GenerateSymbolicOffsetsImpl()
3812 if (Base.BaseGV) return; in GenerateSymbolicOffsets()
4077 if (Base.BaseGV) return; in GenerateTruncates()
4518 if (!F.BaseGV) { in NarrowSearchSpaceByDetectingSupersets()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h194 void findBaseConstants(GlobalVariable *BaseGV);
199 bool emitBaseConstants(GlobalVariable *BaseGV);
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h199 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
204 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
273 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
278 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
867 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); variable
868 bool HasBaseReg = (BaseGV == nullptr);
880 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic;
916 TargetType, const_cast<GlobalValue *>(BaseGV),
H A DTargetTransformInfo.h605 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
686 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1486 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1511 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1838 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
1841 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in isLegalAddressingMode()
1898 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
1902 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp244 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit()
245 AM.HasBaseReg = !AM.BaseGV; in visit()
H A DSIISelLowering.cpp1347 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp333 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
338 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
422 Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument
425 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2456 if (BaseGV && other.BaseGV && in compare()
2457 BaseGV->getType() != other.BaseGV->getType()) in compare()
2471 if (BaseGV != other.BaseGV) in compare()
2505 return BaseGV; in GetFieldAsValue()
2527 BaseGV = nullptr; in SetCombinedField()
2567 if (BaseGV) { in print()
4763 if (!AddrMode.BaseGV) { in matchAddr()
4764 AddrMode.BaseGV = GV; in matchAddr()
5271 if (AddrMode.BaseGV) { in optimizeMemoryInst()
5380 (AddrMode.BaseGV && in optimizeMemoryInst()
[all …]
H A DTargetLoweringBase.cpp1934 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h298 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
302 AM.BaseGV = BaseGV;
333 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
337 AM.BaseGV = BaseGV; in getScalingFactorCost()
H A DTargetLowering.h2350 GlobalValue *BaseGV = nullptr; member
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2939 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
2940 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
2944 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp863 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
875 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) { in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1890 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3430 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp4294 if (AM.BaseGV) { in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4281 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp966 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp922 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp31871 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != nullptr)) in isLegalAddressingMode()
31874 if (AM.BaseGV) { in isLegalAddressingMode()
31875 unsigned GVFlags = Subtarget.classifyGlobalReference(AM.BaseGV); in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp15918 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp12073 if (AM.BaseGV) in isLegalAddressingMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp18426 if (AM.BaseGV) in isLegalAddressingMode()