Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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()
664 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
667 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
668 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
669 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
670 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
850 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
[all …]
H A DLoopStrengthReduce.cpp356 GlobalValue *BaseGV = nullptr; member
594 BaseGV ? BaseGV->getType() : in getType()
626 if (BaseGV) { in print()
628 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
1257 GlobalValue *BaseGV, int64_t BaseOffset,
1413 if (F.BaseGV) in RateFormula()
1422 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV, in RateFormula()
1676 GlobalValue *BaseGV, int64_t BaseOffset, in isAMCompletelyFolded() argument
1681 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, BaseOffset, in isAMCompletelyFolded()
1687 if (BaseGV) in isAMCompletelyFolded()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h193 void findBaseConstants(GlobalVariable *BaseGV);
198 bool emitBaseConstants(GlobalVariable *BaseGV);
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h209 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
214 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
303 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
308 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
967 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local
968 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
980 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost()
1016 TargetType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
H A DTargetTransformInfo.h603 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
707 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1632 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1667 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
2048 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
2051 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in isLegalAddressingMode()
2127 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
2131 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp354 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
359 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
469 Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument
472 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2581 if (BaseGV && other.BaseGV && BaseGV->getType() != other.BaseGV->getType()) in compare()
2595 if (BaseGV != other.BaseGV) in compare()
2619 return !BaseOffs && !Scale && !(BaseGV && BaseReg); in isTrivial()
2629 return BaseGV; in GetFieldAsValue()
2651 BaseGV = nullptr; in SetCombinedField()
2689 if (BaseGV) { in print()
2691 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
4877 if (!AddrMode.BaseGV) { in matchAddr()
4878 AddrMode.BaseGV = GV; in matchAddr()
4881 AddrMode.BaseGV = nullptr; in matchAddr()
[all …]
H A DTargetLoweringBase.cpp1930 if (AM.BaseGV) in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h328 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
332 AM.BaseGV = BaseGV;
383 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
387 AM.BaseGV = BaseGV; in getScalingFactorCost()
H A DTargetLowering.h2593 GlobalValue *BaseGV = nullptr; member
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h235 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DX86TargetTransformInfo.cpp6648 InstructionCost X86TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
6671 AM.BaseGV = BaseGV; in getScalingFactorCost()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h389 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DAArch64TargetTransformInfo.cpp3385 AArch64TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
3396 AM.BaseGV = BaseGV; in getScalingFactorCost()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h296 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
H A DARMTargetTransformInfo.cpp2428 InstructionCost ARMTTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
2433 AM.BaseGV = BaseGV; in getScalingFactorCost()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFISelLowering.cpp867 if (AM.BaseGV) in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3382 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
3383 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
3387 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp1014 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
1026 if (AM.BaseGV == nullptr && AM.HasBaseReg && AM.Scale == 0 && in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1883 if (AM.BaseGV) { in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3661 if (AM.BaseGV) in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp4542 if (AM.BaseGV) { in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4299 if (AM.BaseGV) in isLegalAddressingMode()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp977 if (AM.BaseGV) in isLegalAddressingMode()

12