| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 410 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 D | LoopStrengthReduce.cpp | 343 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 D | ConstantHoisting.h | 193 void findBaseConstants(GlobalVariable *BaseGV); 198 bool emitBaseConstants(GlobalVariable *BaseGV);
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 205 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 D | TargetTransformInfo.h | 621 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 D | AMDGPUPerfHintAnalysis.cpp | 261 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit() 262 AM.HasBaseReg = !AM.BaseGV; in visit()
|
| H A D | SIISelLowering.cpp | 1276 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 2475 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 D | TargetLoweringBase.cpp | 1945 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TargetTransformInfo.cpp | 349 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 D | BasicTTIImpl.h | 308 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 D | TargetLowering.h | 2515 GlobalValue *BaseGV = nullptr; member
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFISelLowering.cpp | 869 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 3207 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 D | AVRISelLowering.cpp | 907 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 D | XCoreISelLowering.cpp | 1888 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLowering.cpp | 3454 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 4368 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsISelLowering.cpp | 4293 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 974 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 1058 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 16303 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 33848 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 D | AArch64ISelLowering.cpp | 13535 if (AM.BaseGV) in isLegalAddressingMode()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 19374 if (AM.BaseGV) in isLegalAddressingMode()
|