/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 204 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()
|
D | TargetTransformInfo.h | 329 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/ |
D | AddrModeMatcher.cpp | 32 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/ |
D | AddrModeMatcher.h | 45 (BaseGV == O.BaseGV) && (BaseOffs == O.BaseOffs) &&
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 247 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/ |
D | LoopStrengthReduce.cpp | 340 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 …]
|
D | CodeGenPrepare.cpp | 869 if (AddrMode.BaseGV) { in OptimizeMemoryInst() 870 Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst()
|
/external/llvm/lib/Analysis/ |
D | TargetTransformInfo.cpp | 117 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/ |
D | BasicTTIImpl.h | 126 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/ |
D | CodeGenPrepare.cpp | 2092 (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()
|
D | TargetLoweringBase.cpp | 1787 if (AM.BaseGV) in isLegalAddressingMode()
|
/external/swiftshader/third_party/LLVM/include/llvm/Target/ |
D | TargetLowering.h | 1527 GlobalValue *BaseGV; member 1531 AddrMode() : BaseGV(0), BaseOffs(0), HasBaseReg(false), Scale(0) {} in AddrMode()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 2189 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/ |
D | TargetLowering.h | 1591 GlobalValue *BaseGV; member 1595 AddrMode() : BaseGV(nullptr), BaseOffs(0), HasBaseReg(false), Scale(0) {} in AddrMode()
|
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/ |
D | SPUISelLowering.cpp | 3251 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/ |
D | XCoreISelLowering.cpp | 1564 if (AM.BaseGV) { in isLegalAddressingMode()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1913 if (AM.BaseGV) { in isLegalAddressingMode()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 3193 if (AM.BaseGV) in isLegalAddressingMode()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 337 if (AM.BaseGV) in isLegalAddressingMode()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 2928 if (AM.BaseGV) in isLegalAddressingMode()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelLowering.cpp | 3737 if (AM.BaseGV) { in isLegalAddressingMode()
|
/external/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 3667 if (AM.BaseGV) in isLegalAddressingMode()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 10769 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/ |
D | PPCISelLowering.cpp | 5670 if (AM.BaseGV) in isLegalAddressingMode()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 523 if (AM.BaseGV) in isLegalAddressingMode()
|