/external/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 54 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize() argument 65 TLI.setUnavailable(LibFunc::ldexp); in initialize() 66 TLI.setUnavailable(LibFunc::ldexpf); in initialize() 67 TLI.setUnavailable(LibFunc::ldexpl); in initialize() 68 TLI.setUnavailable(LibFunc::exp10); in initialize() 69 TLI.setUnavailable(LibFunc::exp10f); in initialize() 70 TLI.setUnavailable(LibFunc::exp10l); in initialize() 71 TLI.setUnavailable(LibFunc::log10); in initialize() 72 TLI.setUnavailable(LibFunc::log10f); in initialize() 73 TLI.setUnavailable(LibFunc::log10l); in initialize() [all …]
|
D | MemoryBuiltins.cpp | 102 const TargetLibraryInfo *TLI, in getAllocationData() argument 134 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) in getAllocationData() 176 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, in isAllocationFn() argument 178 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast).hasValue(); in isAllocationFn() 183 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, in isNoAliasFn() argument 187 return isAllocationFn(V, TLI, LookThroughBitCast) || in isNoAliasFn() 193 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isMallocLikeFn() argument 195 return getAllocationData(V, MallocLike, TLI, LookThroughBitCast).hasValue(); in isMallocLikeFn() 200 bool llvm::isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, in isCallocLikeFn() argument 202 return getAllocationData(V, CallocLike, TLI, LookThroughBitCast).hasValue(); in isCallocLikeFn() [all …]
|
D | ConstantFolding.cpp | 693 const TargetLibraryInfo *TLI) { in CastGEPIndices() argument 718 if (Constant *Folded = ConstantFoldConstantExpression(CE, DL, TLI)) in CastGEPIndices() 746 const TargetLibraryInfo *TLI) { in SymbolicallyEvaluateGEP() argument 753 if (Constant *C = CastGEPIndices(SrcElemTy, Ops, ResTy, DL, TLI)) in SymbolicallyEvaluateGEP() 779 Res = ConstantFoldConstantExpression(ResCE, DL, TLI); in SymbolicallyEvaluateGEP() 927 const TargetLibraryInfo *TLI) { in ConstantFoldInstOperandsImpl() argument 936 if (Constant *C = SymbolicallyEvaluateGEP(GEP, Ops, DL, TLI)) in ConstantFoldInstOperandsImpl() 950 return ConstantFoldCall(F, Ops.slice(0, Ops.size() - 1), TLI); in ConstantFoldInstOperandsImpl() 970 const TargetLibraryInfo *TLI) { in ConstantFoldInstruction() argument 988 C = ConstantFoldConstantExpression(NewC, DL, TLI); in ConstantFoldInstruction() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 53 const TargetLibraryInfo *TLI = nullptr, 62 const TargetLibraryInfo *TLI = nullptr, 71 const TargetLibraryInfo *TLI = nullptr, 80 const TargetLibraryInfo *TLI = nullptr, 89 const TargetLibraryInfo *TLI = nullptr, 97 const TargetLibraryInfo *TLI = nullptr, 105 const TargetLibraryInfo *TLI = nullptr, 113 const TargetLibraryInfo *TLI = nullptr, 122 const TargetLibraryInfo *TLI = nullptr, 130 const TargetLibraryInfo *TLI = nullptr, [all …]
|
D | MemoryBuiltins.h | 44 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, 49 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, 54 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 59 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 64 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, 74 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI); 76 const TargetLibraryInfo *TLI) { in extractMallocCall() argument 77 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI)); in extractMallocCall() 85 PointerType *getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI); 92 Type *getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI); [all …]
|
D | TargetLibraryInfo.h | 107 TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI); 108 TargetLibraryInfoImpl(TargetLibraryInfoImpl &&TLI); 109 TargetLibraryInfoImpl &operator=(const TargetLibraryInfoImpl &TLI); 110 TargetLibraryInfoImpl &operator=(TargetLibraryInfoImpl &&TLI); 202 TargetLibraryInfo(const TargetLibraryInfo &TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 203 TargetLibraryInfo(TargetLibraryInfo &&TLI) : Impl(TLI.Impl) {} in TargetLibraryInfo() argument 204 TargetLibraryInfo &operator=(const TargetLibraryInfo &TLI) { 205 Impl = TLI.Impl; 208 TargetLibraryInfo &operator=(TargetLibraryInfo &&TLI) { 209 Impl = TLI.Impl; [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BuildLibCalls.h | 30 bool inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI); 39 const TargetLibraryInfo *TLI); 45 const DataLayout &DL, const TargetLibraryInfo *TLI); 51 const TargetLibraryInfo *TLI); 55 const DataLayout &DL, const TargetLibraryInfo *TLI); 60 const TargetLibraryInfo *TLI, StringRef Name = "strcpy"); 65 const TargetLibraryInfo *TLI, StringRef Name = "strncpy"); 71 const TargetLibraryInfo *TLI); 76 const DataLayout &DL, const TargetLibraryInfo *TLI); 80 const DataLayout &DL, const TargetLibraryInfo *TLI); [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | DeadStoreElimination.cpp | 69 MemoryDependenceResults &MD, const TargetLibraryInfo &TLI, in deleteDeadInstruction() argument 98 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction() 115 static bool hasMemoryWrite(Instruction *I, const TargetLibraryInfo &TLI) { in hasMemoryWrite() argument 133 if (TLI.has(LibFunc::strcpy) && FnName == TLI.getName(LibFunc::strcpy)) in hasMemoryWrite() 135 if (TLI.has(LibFunc::strncpy) && FnName == TLI.getName(LibFunc::strncpy)) in hasMemoryWrite() 137 if (TLI.has(LibFunc::strcat) && FnName == TLI.getName(LibFunc::strcat)) in hasMemoryWrite() 139 if (TLI.has(LibFunc::strncat) && FnName == TLI.getName(LibFunc::strncat)) in hasMemoryWrite() 180 const TargetLibraryInfo &TLI) { in getLocForRead() argument 181 assert(hasMemoryWrite(Inst, TLI) && "Unknown instruction case"); in getLocForRead() 277 const TargetLibraryInfo &TLI) { in getPointerSize() argument [all …]
|
D | DCE.cpp | 48 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnBasicBlock() local 52 if (isInstructionTriviallyDead(Inst, TLI)) { in runOnBasicBlock() 77 const TargetLibraryInfo *TLI) { in DCEInstruction() argument 78 if (isInstructionTriviallyDead(I, TLI)) { in DCEInstruction() 92 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction() 103 static bool eliminateDeadCode(Function &F, TargetLibraryInfo *TLI) { in eliminateDeadCode() argument 116 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode() 121 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode() 144 TargetLibraryInfo *TLI = TLIP ? &TLIP->getTLI() : nullptr; in runOnFunction() local 146 return eliminateDeadCode(F, TLI); in runOnFunction()
|
/external/swiftshader/third_party/LLVM/lib/Target/ |
D | TargetLibraryInfo.cpp | 26 static void initialize(TargetLibraryInfo &TLI, const Triple &T) { in initialize() argument 33 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() 36 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() 38 TLI.setUnavailable(LibFunc::memset_pattern16); in initialize() 43 TLI.setUnavailable(LibFunc::iprintf); in initialize() 44 TLI.setUnavailable(LibFunc::siprintf); in initialize() 45 TLI.setUnavailable(LibFunc::fiprintf); in initialize() 64 TargetLibraryInfo::TargetLibraryInfo(const TargetLibraryInfo &TLI) in TargetLibraryInfo() argument 66 memcpy(AvailableArray, TLI.AvailableArray, sizeof(AvailableArray)); in TargetLibraryInfo()
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 192 const TargetLoweringBase *TLI = getTLI(); in shouldBuildLookupTables() local 193 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 194 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 198 const TargetLoweringBase *TLI = getTLI(); in haveFastSqrt() local 199 EVT VT = TLI->getValueType(DL, Ty); in haveFastSqrt() 200 return TLI->isTypeLegal(VT) && in haveFastSqrt() 201 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt() 211 const TargetLoweringBase *TLI = getTLI(); in getOperationCost() local 215 if (TLI->isTruncateFree(OpTy, Ty)) in getOperationCost() 220 if (TLI->isZExtFree(OpTy, Ty)) in getOperationCost() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreTargetTransformInfo.h | 34 const XCoreTargetLowering *TLI; variable 37 const XCoreTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in XCoreTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in XCoreTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in XCoreTTIImpl()
|
/external/llvm/lib/Target/Lanai/ |
D | LanaiTargetTransformInfo.h | 34 const LanaiTargetLowering *TLI; variable 37 const LanaiTargetLowering *getTLI() const { return TLI; } in getTLI() 42 TLI(ST->getTargetLowering()) {} in LanaiTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in LanaiTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in LanaiTTIImpl() 64 int ISD = TLI->InstructionOpcodeToISD(Opcode);
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonTargetTransformInfo.h | 33 const HexagonTargetLowering *TLI; variable 36 const HexagonTargetLowering *getTLI() const { return TLI; } in getTLI() 41 TLI(ST->getTargetLowering()) {} in HexagonTTIImpl() 45 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in HexagonTTIImpl() 48 TLI(std::move(Arg.TLI)) {} in HexagonTTIImpl()
|
/external/llvm/include/llvm/CodeGen/GlobalISel/ |
D | CallLowering.h | 28 const TargetLowering *TLI; variable 32 return TLI; in getTLI() 38 return static_cast<const XXXTargetLowering *>(TLI); in getTLI() 41 CallLowering(const TargetLowering *TLI) : TLI(TLI) {} in CallLowering() argument
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXTargetTransformInfo.h | 34 const NVPTXTargetLowering *TLI; variable 37 const NVPTXTargetLowering *getTLI() const { return TLI; }; in getTLI() 42 TLI(ST->getTargetLowering()) {} in NVPTXTTIImpl() 46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in NVPTXTTIImpl() 49 TLI(std::move(Arg.TLI)) {} in NVPTXTTIImpl()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.h | 25 const SystemZTargetLowering *TLI; variable 28 const SystemZTargetLowering *getTLI() const { return TLI; } in getTLI() 33 TLI(ST->getTargetLowering()) {} in SystemZTTIImpl() 37 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in SystemZTTIImpl() 40 TLI(std::move(Arg.TLI)) {} in SystemZTTIImpl()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.h | 35 const WebAssemblyTargetLowering *TLI; variable 38 const WebAssemblyTargetLowering *getTLI() const { return TLI; } in getTLI() 43 TLI(ST->getTargetLowering()) {} in WebAssemblyTTIImpl() 47 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in WebAssemblyTTIImpl() 50 TLI(std::move(Arg.TLI)) {} in WebAssemblyTTIImpl()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | CodeGenPrepare.cpp | 71 const TargetLowering *TLI; member in __anonb41273c50111::CodeGenPrepare 92 : FunctionPass(ID), TLI(tli) { in CodeGenPrepare() 122 FunctionPass *llvm::createCodeGenPreparePass(const TargetLowering *TLI) { in createCodeGenPreparePass() argument 123 return new CodeGenPrepare(TLI); in createCodeGenPreparePass() 365 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){ in OptimizeNoopCopyExpression() argument 367 EVT SrcVT = TLI.getValueType(CI->getOperand(0)->getType()); in OptimizeNoopCopyExpression() 368 EVT DstVT = TLI.getValueType(CI->getType()); in OptimizeNoopCopyExpression() 381 if (TLI.getTypeAction(CI->getContext(), SrcVT) == in OptimizeNoopCopyExpression() 383 SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT); in OptimizeNoopCopyExpression() 384 if (TLI.getTypeAction(CI->getContext(), DstVT) == in OptimizeNoopCopyExpression() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | LegalizeDAG.cpp | 51 const TargetLowering &TLI; member in __anon8e31db9c0111::SelectionDAGLegalize 188 assert(TLI.isShuffleMaskLegal(NewMask, NVT) && "Shuffle not legal?"); in ShuffleWithNarrowerEltType() 193 : TM(dag.getTarget()), TLI(dag.getTargetLoweringInfo()), in SelectionDAGLegalize() 336 SelectionDAG &DAG, const TargetLowering &TLI) { in ExpandConstantFP() argument 361 TLI.isLoadExtLegal(ISD::EXTLOAD, SVT) && in ExpandConstantFP() 362 TLI.ShouldShrinkFPConstant(OrigVT)) { in ExpandConstantFP() 370 SDValue CPIdx = DAG.getConstantPool(LLVMC, TLI.getPointerTy()); in ExpandConstantFP() 385 const TargetLowering &TLI) { in ExpandUnalignedStore() argument 395 if (TLI.isTypeLegal(intVT)) { in ExpandUnalignedStore() 407 TLI.getRegisterType(*DAG.getContext(), in ExpandUnalignedStore() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | AddrModeMatcher.cpp | 91 if (!TLI.isLegalAddressingMode(TestAddrMode, AccessTy)) in MatchScaledValue() 108 if (TLI.isLegalAddressingMode(TestAddrMode, AccessTy)) { in MatchScaledValue() 164 if (TLI.getValueType(AddrInst->getOperand(0)->getType()) == in MatchOperationAddr() 165 TLI.getPointerTy()) in MatchOperationAddr() 222 const TargetData *TD = TLI.getTargetData(); in MatchOperationAddr() 250 if (ConstantOffset == 0 || TLI.isLegalAddressingMode(AddrMode, AccessTy)){ in MatchOperationAddr() 314 if (TLI.isLegalAddressingMode(AddrMode, AccessTy)) in MatchAddr() 321 if (TLI.isLegalAddressingMode(AddrMode, AccessTy)) in MatchAddr() 358 if (TLI.isLegalAddressingMode(AddrMode, AccessTy)) in MatchAddr() 368 if (TLI.isLegalAddressingMode(AddrMode, AccessTy)) in MatchAddr() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 37 const TargetLowering &TLI; member in __anon741ec2090111::VectorLegalizer 132 DAG(dag), TLI(dag.getTargetLoweringInfo()), Changed(false) {} in VectorLegalizer() 206 switch (TLI.getLoadExtAction(LD->getExtensionType(), LD->getValueType(0), in LegalizeOp() 212 if (SDValue Lowered = TLI.LowerOperation(Result, DAG)) { in LegalizeOp() 235 switch (TLI.getTruncStoreAction(ValVT, StVT)) { in LegalizeOp() 240 SDValue Lowered = TLI.LowerOperation(Result, DAG); in LegalizeOp() 352 switch (TLI.getOperationAction(Node->getOpcode(), QueryType)) { in LegalizeOp() 361 if (SDValue Tmp1 = TLI.LowerOperation(Op, DAG)) { in LegalizeOp() 405 MVT NVT = TLI.getTypeToPromoteTo(Op.getOpcode(), VT); in Promote() 478 if (TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NewVT)) { in PromoteFP_TO_INT() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | InferFunctionAttrs.cpp | 24 const TargetLibraryInfo &TLI) { in inferAllPrototypeAttributes() argument 31 Changed |= inferLibFuncAttributes(F, TLI); in inferAllPrototypeAttributes() 38 auto &TLI = AM.getResult<TargetLibraryAnalysis>(M); in run() local 40 if (!inferAllPrototypeAttributes(M, TLI)) in run() 65 auto &TLI = getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(); in runOnModule() local 66 return inferAllPrototypeAttributes(M, TLI); in runOnModule()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 129 const TargetLowering *TLI; member in __anonebd7bfba0111::CodeGenPrepare 161 : FunctionPass(ID), TM(TM), TLI(nullptr), TTI(nullptr), DL(nullptr) { in CodeGenPrepare() 227 TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in runOnFunction() 235 if (!OptSize && TLI && TLI->isSlowDivBypassed()) { in runOnFunction() 237 TLI->getBypassSlowDivWidths(); in runOnFunction() 806 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI, in OptimizeNoopCopyExpression() argument 809 EVT SrcVT = TLI.getValueType(DL, CI->getOperand(0)->getType()); in OptimizeNoopCopyExpression() 810 EVT DstVT = TLI.getValueType(DL, CI->getType()); in OptimizeNoopCopyExpression() 823 if (TLI.getTypeAction(CI->getContext(), SrcVT) == in OptimizeNoopCopyExpression() 825 SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT); in OptimizeNoopCopyExpression() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.h | 34 const AMDGPUTargetLowering *TLI; variable 37 const AMDGPUTargetLowering *getTLI() const { return TLI; } in getTLI() 65 TLI(ST->getTargetLowering()) {} in AMDGPUTTIImpl() 69 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in AMDGPUTTIImpl() 72 TLI(std::move(Arg.TLI)) {} in AMDGPUTTIImpl()
|