Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp410 if (!BaseGV) in collectConstantCandidates()
414 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
439 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
666 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
669 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
670 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
671 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
672 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
852 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
855 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
[all …]
H A DLoopStrengthReduce.cpp343 GlobalValue *BaseGV = nullptr; member
581 BaseGV ? BaseGV->getType() : in getType()
613 if (BaseGV) { in print()
1400 if (F.BaseGV) in RateFormula()
1674 if (BaseGV) in isAMCompletelyFolded()
2673 F.BaseGV == OrigF.BaseGV && in FindUseWithSimilarFormula()
3839 F.BaseGV = GV; in GenerateSymbolicOffsetsImpl()
3853 if (Base.BaseGV) return; in GenerateSymbolicOffsets()
4122 if (Base.BaseGV) return; in GenerateTruncates()
4571 if (!F.BaseGV) { in NarrowSearchSpaceByDetectingSupersets()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h193 void findBaseConstants(GlobalVariable *BaseGV);
198 bool emitBaseConstants(GlobalVariable *BaseGV);
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h205 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
210 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
299 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
304 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
926 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local
927 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
939 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost()
975 TargetType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
H A DTargetTransformInfo.h621 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
725 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1583 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1618 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1978 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
1981 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in isLegalAddressingMode()
2057 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
2061 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
/llvm-project-15.0.7/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()
H A DSIISelLowering.cpp1276 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2475 if (BaseGV && other.BaseGV && in compare()
2476 BaseGV->getType() != other.BaseGV->getType()) in compare()
2490 if (BaseGV != other.BaseGV) in compare()
2524 return BaseGV; in GetFieldAsValue()
2546 BaseGV = nullptr; in SetCombinedField()
2584 if (BaseGV) { in print()
4783 if (!AddrMode.BaseGV) { in matchAddr()
4784 AddrMode.BaseGV = GV; in matchAddr()
5287 if (AddrMode.BaseGV) { in optimizeMemoryInst()
5403 (AddrMode.BaseGV && in optimizeMemoryInst()
[all …]
H A DTargetLoweringBase.cpp1945 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp349 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
354 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
464 Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument
467 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h308 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
312 AM.BaseGV = BaseGV;
363 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
367 AM.BaseGV = BaseGV; in getScalingFactorCost()
H A DTargetLowering.h2515 GlobalValue *BaseGV = nullptr; member
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFISelLowering.cpp869 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3207 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
3208 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
3212 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp907 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
919 if (AM.BaseGV == nullptr && AM.HasBaseReg && AM.Scale == 0 && in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1888 if (AM.BaseGV) { in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3454 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp4368 if (AM.BaseGV) { in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4293 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp974 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1058 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp16303 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp33848 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != nullptr)) in isLegalAddressingMode()
33851 if (AM.BaseGV) { in isLegalAddressingMode()
33852 unsigned GVFlags = Subtarget.classifyGlobalReference(AM.BaseGV); in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp13535 if (AM.BaseGV) in isLegalAddressingMode()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp19374 if (AM.BaseGV) in isLegalAddressingMode()