| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 410 if (!BaseGV) in collectConstantCandidates() 414 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates() 431 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates() 658 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument 661 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants() 662 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants() 663 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants() 664 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants() 845 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument 848 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants() [all …]
|
| H A D | LoopStrengthReduce.cpp | 341 GlobalValue *BaseGV = nullptr; member 578 BaseGV ? BaseGV->getType() : in getType() 610 if (BaseGV) { in print() 1395 if (F.BaseGV) in RateFormula() 1669 if (BaseGV) in isAMCompletelyFolded() 2670 F.BaseGV == OrigF.BaseGV && in FindUseWithSimilarFormula() 3798 F.BaseGV = GV; in GenerateSymbolicOffsetsImpl() 3812 if (Base.BaseGV) return; in GenerateSymbolicOffsets() 4077 if (Base.BaseGV) return; in GenerateTruncates() 4518 if (!F.BaseGV) { in NarrowSearchSpaceByDetectingSupersets() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
| H A D | ConstantHoisting.h | 194 void findBaseConstants(GlobalVariable *BaseGV); 199 bool emitBaseConstants(GlobalVariable *BaseGV);
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 199 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 204 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 273 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 278 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost() 867 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); variable 868 bool HasBaseReg = (BaseGV == nullptr); 880 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; 916 TargetType, const_cast<GlobalValue *>(BaseGV),
|
| H A D | TargetTransformInfo.h | 605 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 686 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 1486 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 1511 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 1838 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument 1841 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in isLegalAddressingMode() 1898 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 1902 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPerfHintAnalysis.cpp | 244 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit() 245 AM.HasBaseReg = !AM.BaseGV; in visit()
|
| H A D | SIISelLowering.cpp | 1347 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TargetTransformInfo.cpp | 333 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument 338 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode() 422 Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, in getScalingFactorCost() argument 425 Ty, BaseGV, BaseOffset, HasBaseReg, Scale, AddrSpace); in getScalingFactorCost()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 2456 if (BaseGV && other.BaseGV && in compare() 2457 BaseGV->getType() != other.BaseGV->getType()) in compare() 2471 if (BaseGV != other.BaseGV) in compare() 2505 return BaseGV; in GetFieldAsValue() 2527 BaseGV = nullptr; in SetCombinedField() 2567 if (BaseGV) { in print() 4763 if (!AddrMode.BaseGV) { in matchAddr() 4764 AddrMode.BaseGV = GV; in matchAddr() 5271 if (AddrMode.BaseGV) { in optimizeMemoryInst() 5380 (AddrMode.BaseGV && in optimizeMemoryInst() [all …]
|
| H A D | TargetLoweringBase.cpp | 1934 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 298 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 302 AM.BaseGV = BaseGV; 333 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 337 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
| H A D | TargetLowering.h | 2350 GlobalValue *BaseGV = nullptr; member
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 2939 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local 2940 if (!BaseGV) in handleIndirectSymViaGOTPCRel() 2944 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRISelLowering.cpp | 863 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode() 875 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) { in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 1890 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLowering.cpp | 3430 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 4294 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsISelLowering.cpp | 4281 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 966 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 922 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 31871 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != nullptr)) in isLegalAddressingMode() 31874 if (AM.BaseGV) { in isLegalAddressingMode() 31875 unsigned GVFlags = Subtarget.classifyGlobalReference(AM.BaseGV); in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 15918 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 12073 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 18426 if (AM.BaseGV) in isLegalAddressingMode()
|