Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h204 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
209 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); in isLegalAddressingMode()
220 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
223 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
438 const GlobalValue *BaseGV = nullptr; in getGEPCost() local
444 BaseGV = dyn_cast<GlobalValue>(Ptr->stripPointerCasts()); in getGEPCost()
446 bool HasBaseReg = (BaseGV == nullptr); in getGEPCost()
482 PointerType::get(*GTI, AS), const_cast<GlobalValue *>(BaseGV), in getGEPCost()
DTargetTransformInfo.h329 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
350 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
651 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
659 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
799 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
802 return Impl.isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
817 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
820 return Impl.getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DAddrModeMatcher.cpp32 if (BaseGV) { in print()
35 WriteAsOperand(OS, BaseGV, /*PrintType=*/false); in print()
319 if (AddrMode.BaseGV == 0) { in MatchAddr()
320 AddrMode.BaseGV = GV; in MatchAddr()
323 AddrMode.BaseGV = 0; in MatchAddr()
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DAddrModeMatcher.h45 (BaseGV == O.BaseGV) && (BaseOffs == O.BaseOffs) &&
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp247 GlobalValue *BaseGV; member
280 : BaseGV(nullptr), BaseOffset(0), HasBaseReg(false), Scale(0), in Formula()
436 BaseGV ? BaseGV->getType() : in getType()
468 if (BaseGV) { in print()
470 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
1018 if (F.BaseGV) in RateFormula()
1358 GlobalValue *BaseGV, int64_t BaseOffset, in isAMCompletelyFolded() argument
1362 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, BaseOffset, in isAMCompletelyFolded()
1368 if (BaseGV) in isAMCompletelyFolded()
1398 return !BaseGV && Scale == 0 && BaseOffset == 0; in isAMCompletelyFolded()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp340 AM.BaseGV ? AM.BaseGV->getType() : in getType()
373 if (AM.BaseGV) { in print()
375 WriteAsOperand(OS, AM.BaseGV, /*PrintType=*/false); in print()
840 if (F.AM.BaseGV) in RateFormula()
1188 return !AM.BaseGV && AM.BaseOffs == 0 && AM.Scale <= 1; in isLegalUse()
1193 if (AM.BaseGV) in isLegalUse()
1216 return !AM.BaseGV && AM.Scale == 0 && AM.BaseOffs == 0; in isLegalUse()
1248 GlobalValue *BaseGV, in isAlwaysFoldable() argument
1253 if (BaseOffs == 0 && !BaseGV) return true; in isAlwaysFoldable()
1259 AM.BaseGV = BaseGV; in isAlwaysFoldable()
[all …]
DCodeGenPrepare.cpp869 if (AddrMode.BaseGV) { in OptimizeMemoryInst()
870 Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst()
/external/llvm/lib/Analysis/
DTargetTransformInfo.cpp117 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
122 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
142 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
147 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h126 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in isLegalAddressingMode() argument
130 AM.BaseGV = BaseGV; in isLegalAddressingMode()
137 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, in getScalingFactorCost() argument
140 AM.BaseGV = BaseGV; in getScalingFactorCost()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2092 (BaseGV == O.BaseGV) && (BaseOffs == O.BaseOffs) && in operator ==()
2107 if (BaseGV) { in print()
2110 BaseGV->printAsOperand(OS, /*PrintType=*/false); in print()
3394 if (!AddrMode.BaseGV) { in matchAddr()
3395 AddrMode.BaseGV = GV; in matchAddr()
3398 AddrMode.BaseGV = nullptr; in matchAddr()
3852 if (AddrMode.BaseGV) { in optimizeMemoryInst()
3856 ResultPtr = AddrMode.BaseGV; in optimizeMemoryInst()
4000 if (AddrMode.BaseGV) { in optimizeMemoryInst()
4001 Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
DTargetLoweringBase.cpp1787 if (AM.BaseGV) in isLegalAddressingMode()
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetLowering.h1527 GlobalValue *BaseGV; member
1531 AddrMode() : BaseGV(0), BaseOffs(0), HasBaseReg(false), Scale(0) {} in AddrMode()
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp2189 const GlobalValue *BaseGV = dyn_cast_or_null<GlobalValue>(BaseCst); in handleIndirectSymViaGOTPCRel() local
2190 if (!BaseGV) in handleIndirectSymViaGOTPCRel()
2194 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
/external/llvm/include/llvm/Target/
DTargetLowering.h1591 GlobalValue *BaseGV; member
1595 AddrMode() : BaseGV(nullptr), BaseOffs(0), HasBaseReg(false), Scale(0) {} in AddrMode()
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUISelLowering.cpp3251 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && AM.BaseOffs == 0) in isLegalAddressingMode()
3255 if (AM.BaseGV ==0 && AM.HasBaseReg && AM.Scale == 0 && isInt<14>(AM.BaseOffs)) in isLegalAddressingMode()
3259 if (AM.BaseGV == 0 && AM.HasBaseReg && AM.Scale == 1 && AM.BaseOffs ==0) in isLegalAddressingMode()
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreISelLowering.cpp1564 if (AM.BaseGV) { in isLegalAddressingMode()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1913 if (AM.BaseGV) { in isLegalAddressingMode()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp3193 if (AM.BaseGV) in isLegalAddressingMode()
/external/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp337 if (AM.BaseGV) in isLegalAddressingMode()
/external/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp2928 if (AM.BaseGV) in isLegalAddressingMode()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp3737 if (AM.BaseGV) { in isLegalAddressingMode()
/external/llvm/lib/Target/Mips/
DMipsISelLowering.cpp3667 if (AM.BaseGV) in isLegalAddressingMode()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp10769 if (!X86::isOffsetSuitableForCodeModel(AM.BaseOffs, M, AM.BaseGV != NULL)) in isLegalAddressingMode()
10772 if (AM.BaseGV) { in isLegalAddressingMode()
10774 Subtarget->ClassifyGlobalReference(AM.BaseGV, getTargetMachine()); in isLegalAddressingMode()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCISelLowering.cpp5670 if (AM.BaseGV) in isLegalAddressingMode()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp523 if (AM.BaseGV) in isLegalAddressingMode()

12