| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 397 if (!BaseGV) in collectConstantCandidates() 401 PointerType *GVPtrTy = dyn_cast<PointerType>(BaseGV->getType()); in collectConstantCandidates() 416 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates() 634 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument 637 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants() 638 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants() 639 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants() 640 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants() 821 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument 824 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants() [all …]
|
| H A D | LoopStrengthReduce.cpp | 317 GlobalValue *BaseGV = nullptr; member 549 BaseGV ? BaseGV->getType() : in getType() 581 if (BaseGV) { in print() 1347 if (F.BaseGV) in RateFormula() 1618 if (BaseGV) in isAMCompletelyFolded() 2606 F.BaseGV == OrigF.BaseGV && in FindUseWithSimilarFormula() 3714 F.BaseGV = GV; in GenerateSymbolicOffsetsImpl() 3728 if (Base.BaseGV) return; in GenerateSymbolicOffsets() 3960 if (Base.BaseGV) return; in GenerateTruncates() 4374 if (!F.BaseGV) { in NarrowSearchSpaceByDetectingSupersets() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 238 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 243 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 271 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument 274 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost() 715 const GlobalValue *BaseGV = nullptr; in getGEPCost() local 721 BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() 723 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost() 735 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost() 770 TargetType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
|
| H A D | TargetTransformInfo.h | 472 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 524 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 1060 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 1076 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 1288 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument 1292 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode() 1326 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument 1329 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Scalar/ |
| H A D | ConstantHoisting.h | 190 void findBaseConstants(GlobalVariable *BaseGV); 195 bool emitBaseConstants(GlobalVariable *BaseGV);
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPerfHintAnalysis.cpp | 248 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit() 249 AM.HasBaseReg = !AM.BaseGV; in visit()
|
| H A D | SIISelLowering.cpp | 1030 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 226 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 230 AM.BaseGV = BaseGV; 253 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument 256 AM.BaseGV = BaseGV; in getScalingFactorCost()
|
| H A D | TargetLowering.h | 2069 GlobalValue *BaseGV = nullptr; member
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1954 if (BaseGV && other.BaseGV && in compare() 1955 BaseGV->getType() != other.BaseGV->getType()) in compare() 1965 if (BaseGV != other.BaseGV) in compare() 1999 return BaseGV; in GetFieldAsValue() 2021 BaseGV = nullptr; in SetCombinedField() 2059 if (BaseGV) { in print() 4158 if (!AddrMode.BaseGV) { in matchAddr() 4159 AddrMode.BaseGV = GV; in matchAddr() 4656 if (AddrMode.BaseGV) { in optimizeMemoryInst() 4757 (AddrMode.BaseGV && in optimizeMemoryInst() [all …]
|
| H A D | TargetLoweringBase.cpp | 1605 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | TargetTransformInfo.cpp | 144 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument 150 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode() 195 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 200 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 2568 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local 2569 if (!BaseGV) in handleIndirectSymViaGOTPCRel() 2573 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AVR/ |
| H A D | AVRISelLowering.cpp | 751 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode() 763 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) { in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 212 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 1890 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLowering.cpp | 2953 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 3963 if (AM.BaseGV) { in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Mips/ |
| H A D | MipsISelLowering.cpp | 4038 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 708 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 8652 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 27421 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != nullptr)) in isLegalAddressingMode() 27424 if (AM.BaseGV) { in isLegalAddressingMode() 27425 unsigned GVFlags = Subtarget.classifyGlobalReference(AM.BaseGV); in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 13743 if (AM.BaseGV) in isLegalAddressingMode()
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 13277 if (AM.BaseGV) in isLegalAddressingMode()
|