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

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp402 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0));
403 if (!BaseGV)
407 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType());
423 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV];
650 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { argument
651 // If BaseGV is nullptr, find base among candidate constant integers;
652 // Otherwise find base among constant GEPs that share the same BaseGV.
653 ConstCandVecType &ConstCandVec = BaseGV ?
654 ConstGEPCandMap[BaseGV] : ConstIntCandVec;
655 ConstInfoVecType &ConstInfoVec = BaseGV
837 emitBaseConstants(GlobalVariable *BaseGV) argument
[all...]
H A DLoopStrengthReduce.cpp39 // TODO: Should the addressing mode BaseGV be changed to a ConstantExpr instead
329 GlobalValue *BaseGV = nullptr; member in struct:__anon4668::Formula
561 BaseGV ? BaseGV->getType() :
593 if (BaseGV) {
595 BaseGV->printAsOperand(OS, /*PrintType=*/false);
1202 GlobalValue *BaseGV, int64_t BaseOffset,
1358 if (F.BaseGV)
1367 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV,
1621 GlobalValue *BaseGV, int64_
1619 isAMCompletelyFolded(const TargetTransformInfo &TTI, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, Instruction *Fixup ) argument
1673 isAMCompletelyFolded(const TargetTransformInfo &TTI, int64_t MinOffset, int64_t MaxOffset, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) argument
1711 isLegalUse(const TargetTransformInfo &TTI, int64_t MinOffset, int64_t MaxOffset, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) argument
1786 isAlwaysFoldable(const TargetTransformInfo &TTI, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg) argument
1819 GlobalValue *BaseGV = ExtractSymbol(S, SE); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h192 // If BaseGV is nullptr, find base among Constant Integer candidates;
193 // otherwise find base among constant GEPs sharing BaseGV as base pointer.
194 void findBaseConstants(GlobalVariable *BaseGV);
197 // If BaseGV is nullptr, emit Constant Integer base; otherwise emit
199 bool emitBaseConstants(GlobalVariable *BaseGV);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h160 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument
165 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
221 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument
224 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale,
749 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); local
750 bool HasBaseReg = (BaseGV == nullptr);
762 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic;
793 TargetType, const_cast<GlobalValue *>(BaseGV),
H A DTargetTransformInfo.h577 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
651 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
1306 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1330 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1597 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
1600 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale,
1653 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
1656 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp244 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr));
245 AM.HasBaseReg = !AM.BaseGV;
H A DSIISelLowering.cpp1266 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h241 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument
245 AM.BaseGV = BaseGV;
272 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, argument
275 AM.BaseGV = BaseGV;
H A DTargetLowering.h2288 /// BaseGV + BaseOffs + BaseReg + Scale*ScaleReg
2289 /// If BaseGV is null, there is no BaseGV.
2295 GlobalValue *BaseGV = nullptr;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp343 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, argument
348 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg,
429 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, argument
433 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp223 cl::desc("Allow combining of BaseGV field in Address sinking."));
2303 if (BaseGV && other.BaseGV &&
2304 BaseGV->getType() != other.BaseGV->getType())
2318 if (BaseGV != other.BaseGV)
2338 // An AddrMode is (BaseGV + BaseReg + BaseOffs + ScaleReg * Scale) so it is
2339 // trivial if at most one of these terms is nonzero, except that BaseGV and
2342 return !BaseOffs && !Scale && !(BaseGV
[all...]
H A DTargetLoweringBase.cpp1796 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp749 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) {
761 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2712 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); local
2713 if (!BaseGV)
2717 const MCSymbol *BaseSym = AP.getSymbol(BaseGV);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1892 if (AM.BaseGV) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp303 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3290 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp4200 // BaseGV + BaseOffs + BaseReg + Scale*ScaleReg
4208 if (AM.BaseGV) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp4275 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp959 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp15933 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp10232 if (AM.BaseGV)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp16661 if (AM.BaseGV)

Completed in 864 milliseconds