Home
last modified time | relevance | path

Searched refs:BaseGV (Results 1 – 24 of 24) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp400 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local
401 if (!BaseGV) in collectConstantCandidates()
405 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
420 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
646 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
649 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
650 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
651 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
652 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
833 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
[all …]
DLoopStrengthReduce.cpp326 GlobalValue *BaseGV = nullptr; member
558 BaseGV ? BaseGV->getType() : in getType()
590 if (BaseGV) { in print()
592 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
1212 GlobalValue *BaseGV, int64_t BaseOffset,
1368 if (F.BaseGV) in RateFormula()
1377 !isAMCompletelyFolded(*TTI, LSRUse::Address, LU.AccessTy, F.BaseGV, in RateFormula()
1631 GlobalValue *BaseGV, int64_t BaseOffset, in isAMCompletelyFolded() argument
1636 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, BaseOffset, in isAMCompletelyFolded()
1642 if (BaseGV) in isAMCompletelyFolded()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h230 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
235 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1);
293 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
296 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
754 auto *BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost() local
755 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
767 return !BaseGV ? TTI::TCC_Free : TTI::TCC_Basic; in getGEPCost()
798 TargetType, const_cast<GlobalValue *>(BaseGV), in getGEPCost()
DTargetTransformInfo.h561 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
632 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
1223 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
1247 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
1502 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
1506 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
1561 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
1564 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DConstantHoisting.h194 void findBaseConstants(GlobalVariable *BaseGV);
199 bool emitBaseConstants(GlobalVariable *BaseGV);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPerfHintAnalysis.cpp244 AM.BaseGV = dyn_cast_or_null<GlobalValue>(const_cast<Value *>(Ptr)); in visit()
245 AM.HasBaseReg = !AM.BaseGV; in visit()
DSIISelLowering.cpp1157 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h237 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
241 AM.BaseGV = BaseGV;
264 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
267 AM.BaseGV = BaseGV; in getScalingFactorCost()
DTargetLowering.h2168 GlobalValue *BaseGV = nullptr; member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2207 if (BaseGV && other.BaseGV && in compare()
2208 BaseGV->getType() != other.BaseGV->getType()) in compare()
2222 if (BaseGV != other.BaseGV) in compare()
2246 return !BaseOffs && !Scale && !(BaseGV && BaseReg); in isTrivial()
2256 return BaseGV; in GetFieldAsValue()
2278 BaseGV = nullptr; in SetCombinedField()
2318 if (BaseGV) { in print()
2321 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
4432 if (!AddrMode.BaseGV) { in matchAddr()
4433 AddrMode.BaseGV = GV; in matchAddr()
[all …]
DTargetLoweringBase.cpp1743 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DTargetTransformInfo.cpp266 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
272 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
349 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
354 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp2664 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
2665 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
2669 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/
DAVRISelLowering.cpp750 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
762 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 0 && isUInt<6>(Offs)) { in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1892 if (AM.BaseGV) { in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVISelLowering.cpp272 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp3140 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp4229 if (AM.BaseGV) { in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsISelLowering.cpp4248 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp940 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp9475 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp14808 if (AM.BaseGV) in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp29968 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != nullptr)) in isLegalAddressingMode()
29971 if (AM.BaseGV) { in isLegalAddressingMode()
29972 unsigned GVFlags = Subtarget.classifyGlobalReference(AM.BaseGV); in isLegalAddressingMode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp15277 if (AM.BaseGV) in isLegalAddressingMode()