| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 407 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() 640 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument 643 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants() 644 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants() 645 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants() 646 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants() 821 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument [all …]
|
| H A D | LoopStrengthReduce.cpp | 476 GlobalValue *BaseGV = nullptr; member 731 BaseGV ? BaseGV->getType() : in getType() 763 if (BaseGV) { in print() 765 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print() 1373 GlobalValue *BaseGV, Immediate BaseOffset, 1531 if (F.BaseGV) in RateFormula() 1541 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV, in RateFormula() 1799 GlobalValue *BaseGV, Immediate BaseOffset, in isAMCompletelyFolded() argument 1808 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, FixedOffset, in isAMCompletelyFolded() 1815 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 | 272 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 279 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 400 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 405 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset.getFixed(), HasBaseReg, in getScalingFactorCost() 1243 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local 1244 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost() 1256 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost() 1306 AccessType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
|
| H A D | TargetTransformInfo.h | 764 LLVM_ABI bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 894 LLVM_ABI InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPerfHintAnalysis.cpp | 258 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit() 259 AM.HasBaseReg = !AM.BaseGV; in visit()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 3134 if (BaseGV && other.BaseGV && BaseGV->getType() != other.BaseGV->getType()) in compare() 3148 if (BaseGV != other.BaseGV) in compare() 3172 return !BaseOffs && !Scale && !(BaseGV && BaseReg); in isTrivial() 3182 return BaseGV; in GetFieldAsValue() 3204 BaseGV = nullptr; in SetCombinedField() 3242 if (BaseGV) { in print() 3244 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print() 5461 if (!AddrMode.BaseGV) { in matchAddr() 5462 AddrMode.BaseGV = GV; in matchAddr() 5465 AddrMode.BaseGV = nullptr; in matchAddr() [all …]
|
| H A D | TargetLoweringBase.cpp | 2003 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TargetTransformInfo.cpp | 425 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument 431 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode() 564 Type *Ty, GlobalValue *BaseGV, StackOffset BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument 567 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.h | 316 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
| H A D | ARMTargetTransformInfo.cpp | 2719 InstructionCost ARMTTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 2724 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86TargetTransformInfo.h | 261 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
| H A D | X86TargetTransformInfo.cpp | 7089 InstructionCost X86TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 7112 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 443 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 448 AM.BaseGV = BaseGV; 507 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 512 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
| H A D | TargetLowering.h | 2884 GlobalValue *BaseGV = nullptr; member
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.h | 468 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
|
| H A D | AArch64AsmPrinter.cpp | 2245 const Value *BaseGV = CPA.getPointer()->stripAndAccumulateConstantOffsets( in lowerConstantPtrAuth() local 2248 auto *BaseGVB = dyn_cast<GlobalValue>(BaseGV); in lowerConstantPtrAuth() 2253 BaseGV->getContext().emitError( in lowerConstantPtrAuth()
|
| H A D | AArch64TargetTransformInfo.cpp | 5907 AArch64TTIImpl::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 5918 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFISelLowering.cpp | 1056 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 3991 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local 3992 if (!BaseGV) in handleIndirectSymViaGOTPCRel() 3996 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRISelLowering.cpp | 992 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode() 1004 if (AM.BaseGV == nullptr && AM.HasBaseReg && AM.Scale == 0 && in isLegalAddressingMode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 1764 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLowering.cpp | 3724 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsISelLowering.cpp | 4469 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 4725 if (AM.BaseGV) in isLegalAddressingMode()
|