/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 412 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local 413 if (!BaseGV) in collectConstantCandidates() 417 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates() 442 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates() 667 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument 670 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants() 671 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants() 672 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants() 673 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants() 848 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument [all …]
|
H A D | LoopStrengthReduce.cpp | 485 GlobalValue *BaseGV = nullptr; member 723 BaseGV ? BaseGV->getType() : in getType() 755 if (BaseGV) { in print() 757 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print() 1393 GlobalValue *BaseGV, Immediate BaseOffset, 1549 if (F.BaseGV) in RateFormula() 1559 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV, in RateFormula() 1817 GlobalValue *BaseGV, Immediate BaseOffset, in isAMCompletelyFolded() argument 1826 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, FixedOffset, in isAMCompletelyFolded() 1833 if (BaseGV) in isAMCompletelyFolded() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | ConstantHoisting.h | 202 void findBaseConstants(GlobalVariable *BaseGV); 218 bool emitBaseConstants(GlobalVariable *BaseGV);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 229 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 235 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 340 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 345 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset.getFixed(), HasBaseReg, in getScalingFactorCost() 1071 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local 1072 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost() 1084 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost() 1134 AccessType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
|
H A D | TargetTransformInfo.h | 731 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 850 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 1886 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 1926 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 2360 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument 2363 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in isLegalAddressingMode() 2451 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 2455 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 2796 if (BaseGV && other.BaseGV && BaseGV->getType() != other.BaseGV->getType()) in compare() 2810 if (BaseGV != other.BaseGV) in compare() 2834 return !BaseOffs && !Scale && !(BaseGV && BaseReg); in isTrivial() 2844 return BaseGV; in GetFieldAsValue() 2866 BaseGV = nullptr; in SetCombinedField() 2904 if (BaseGV) { in print() 2906 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print() 5116 if (!AddrMode.BaseGV) { in matchAddr() 5117 AddrMode.BaseGV = GV; in matchAddr() 5120 AddrMode.BaseGV = nullptr; in matchAddr() [all …]
|
H A D | TargetLoweringBase.cpp | 1900 if (AM.BaseGV) in isLegalAddressingMode()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPerfHintAnalysis.cpp | 261 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit() 262 AM.HasBaseReg = !AM.BaseGV; in visit()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetTransformInfo.cpp | 411 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument 417 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode() 547 Type *Ty, GlobalValue *BaseGV, StackOffset BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument 550 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 340 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 345 AM.BaseGV = BaseGV; 410 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 414 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
H A D | TargetLowering.h | 2791 GlobalValue *BaseGV = nullptr; member
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 256 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
H A D | X86TargetTransformInfo.cpp | 6725 InstructionCost X86TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 6748 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.h | 415 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
H A D | AArch64AsmPrinter.cpp | 2047 const Value *BaseGV = CPA.getPointer()->stripAndAccumulateConstantOffsets( in lowerConstantPtrAuth() local 2050 auto *BaseGVB = dyn_cast<GlobalValue>(BaseGV); in lowerConstantPtrAuth() 2055 BaseGV->getContext().emitError( in lowerConstantPtrAuth()
|
H A D | AArch64TargetTransformInfo.cpp | 4377 AArch64TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 4388 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.h | 305 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
H A D | ARMTargetTransformInfo.cpp | 2577 InstructionCost ARMTTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 2582 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFISelLowering.cpp | 948 if (AM.BaseGV) in isLegalAddressingMode()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 3641 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local 3642 if (!BaseGV) in handleIndirectSymViaGOTPCRel() 3646 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRISelLowering.cpp | 1048 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode() 1060 if (AM.BaseGV == nullptr && AM.HasBaseReg && AM.Scale == 0 && in isLegalAddressingMode()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 1793 if (AM.BaseGV) { in isLegalAddressingMode()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelLowering.cpp | 3690 if (AM.BaseGV) in isLegalAddressingMode()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.cpp | 4311 if (AM.BaseGV) in isLegalAddressingMode()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchISelLowering.cpp | 6074 if (AM.BaseGV) in isLegalAddressingMode()
|