Searched refs:TLI (Results 1 - 25 of 134) sorted by relevance

123456

/external/llvm/lib/Target/
H A DTargetLibraryInfo.cpp370 static void initialize(TargetLibraryInfo &TLI, const Triple &T, argument
385 TLI.setUnavailable(LibFunc::memcpy);
386 TLI.setUnavailable(LibFunc::memset);
387 TLI.setUnavailable(LibFunc::memset_pattern16);
394 TLI.setUnavailable(LibFunc::memset_pattern16);
397 TLI.setUnavailable(LibFunc::memset_pattern16);
399 TLI.setUnavailable(LibFunc::memset_pattern16);
403 TLI.setUnavailable(LibFunc::sinpi);
404 TLI.setUnavailable(LibFunc::sinpif);
405 TLI
692 TargetLibraryInfo(const TargetLibraryInfo &TLI) argument
[all...]
/external/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h52 const TargetLibraryInfo *TLI = nullptr,
59 const TargetLibraryInfo *TLI = nullptr,
66 const TargetLibraryInfo *TLI = nullptr,
73 const TargetLibraryInfo *TLI = nullptr,
81 const TargetLibraryInfo *TLI = nullptr,
87 const TargetLibraryInfo *TLI = nullptr,
94 const TargetLibraryInfo *TLI = nullptr,
101 const TargetLibraryInfo *TLI = nullptr,
108 const TargetLibraryInfo *TLI = nullptr,
115 const TargetLibraryInfo *TLI
[all...]
H A DMemoryBuiltins.h39 bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI,
44 bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI,
49 bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
54 bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
59 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
64 bool isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
69 bool isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI,
79 const CallInst *extractMallocCall(const Value *I, const TargetLibraryInfo *TLI);
81 const TargetLibraryInfo *TLI) {
82 return const_cast<CallInst*>(extractMallocCall((const Value*)I, TLI));
80 extractMallocCall(Value *I, const TargetLibraryInfo *TLI) argument
122 extractCallocCall(Value *I, const TargetLibraryInfo *TLI) argument
135 isFreeCall(Value *I, const TargetLibraryInfo *TLI) argument
163 const TargetLibraryInfo *TLI; member in class:llvm::ObjectSizeOffsetVisitor
226 const TargetLibraryInfo *TLI; member in class:llvm::ObjectSizeOffsetEvaluator
[all...]
H A DConstantFolding.h41 const TargetLibraryInfo *TLI = nullptr);
48 const TargetLibraryInfo *TLI =nullptr);
59 const TargetLibraryInfo *TLI = nullptr);
68 const TargetLibraryInfo *TLI=nullptr);
101 const TargetLibraryInfo *TLI = nullptr);
H A DPHITransAddr.h42 /// TLI - The target library info if known, otherwise null.
43 const TargetLibraryInfo *TLI; member in class:llvm::PHITransAddr
49 : Addr(addr), DL(DL), TLI(nullptr) {
/external/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h32 const TargetLibraryInfo *TLI);
38 const DataLayout *TD, const TargetLibraryInfo *TLI);
44 const TargetLibraryInfo *TLI);
48 const DataLayout *TD, const TargetLibraryInfo *TLI);
53 const DataLayout *TD, const TargetLibraryInfo *TLI,
59 const DataLayout *TD, const TargetLibraryInfo *TLI,
67 const TargetLibraryInfo *TLI);
72 const DataLayout *TD, const TargetLibraryInfo *TLI);
76 const DataLayout *TD, const TargetLibraryInfo *TLI);
97 const TargetLibraryInfo *TLI);
[all...]
H A DSimplifyLibCalls.h35 LibCallSimplifier(const DataLayout *TD, const TargetLibraryInfo *TLI,
/external/llvm/lib/Target/XCore/
H A DXCoreSelectionDAGInfo.cpp36 const TargetLowering &TLI = *DAG.getTarget().getTargetLowering(); local
39 Entry.Ty = TLI.getDataLayout()->getIntPtrType(*DAG.getContext());
46 .setCallee(TLI.getLibcallCallingConv(RTLIB::MEMCPY),
48 DAG.getExternalSymbol("__memcpy_4", TLI.getPointerTy()),
52 std::pair<SDValue,SDValue> CallResult = TLI.LowerCallTo(CLI);
/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp94 const TargetLibraryInfo *TLI,
107 if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn))
151 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, argument
153 return getAllocationData(V, AnyAlloc, TLI, LookThroughBitCast);
158 bool llvm::isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, argument
162 return isAllocationFn(V, TLI, LookThroughBitCast) ||
168 bool llvm::isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, argument
170 return getAllocationData(V, MallocLike, TLI, LookThroughBitCas
93 getAllocationData(const Value *V, AllocType AllocTy, const TargetLibraryInfo *TLI, bool LookThroughBitCast = false) argument
175 isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast) argument
182 isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast) argument
189 isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast) argument
196 isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast) argument
204 extractMallocCall(const Value *I, const TargetLibraryInfo *TLI) argument
209 computeArraySize(const CallInst *CI, const DataLayout *DL, const TargetLibraryInfo *TLI, bool LookThroughSExt = false) argument
238 isArrayMalloc(const Value *I, const DataLayout *DL, const TargetLibraryInfo *TLI) argument
257 getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI) argument
289 getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI) argument
300 getMallocArraySize(CallInst *CI, const DataLayout *DL, const TargetLibraryInfo *TLI, bool LookThroughSExt) argument
310 extractCallocCall(const Value *I, const TargetLibraryInfo *TLI) argument
317 isFreeCall(const Value *I, const TargetLibraryInfo *TLI) argument
366 getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *DL, const TargetLibraryInfo *TLI, bool RoundToAlign) argument
398 ObjectSizeOffsetVisitor(const DataLayout *DL, const TargetLibraryInfo *TLI, LLVMContext &Context, bool RoundToAlign) argument
592 ObjectSizeOffsetEvaluator(const DataLayout *DL, const TargetLibraryInfo *TLI, LLVMContext &Context, bool RoundToAlign) argument
[all...]
H A DConstantFolding.cpp674 const TargetLibraryInfo *TLI) {
703 if (Constant *Folded = ConstantFoldConstantExpression(CE, TD, TLI))
730 const TargetLibraryInfo *TLI) {
756 Res = ConstantFoldConstantExpression(ResCE, TD, TLI);
896 const TargetLibraryInfo *TLI) {
915 C = ConstantFoldConstantExpression(NewC, TD, TLI);
938 Op = ConstantFoldConstantExpression(NewCE, TD, TLI);
945 TD, TLI);
963 return ConstantFoldInstOperands(I->getOpcode(), I->getType(), Ops, TD, TLI);
968 const TargetLibraryInfo *TLI,
672 CastGEPIndices(ArrayRef<Constant *> Ops, Type *ResultTy, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
728 SymbolicallyEvaluateGEP(ArrayRef<Constant *> Ops, Type *ResultTy, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
894 ConstantFoldInstruction(Instruction *I, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
967 ConstantFoldConstantExpressionImpl(const ConstantExpr *CE, const DataLayout *TD, const TargetLibraryInfo *TLI, SmallPtrSet<ConstantExpr *, 4> &FoldedOps) argument
992 ConstantFoldConstantExpression(const ConstantExpr *CE, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
1009 ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, ArrayRef<Constant *> Ops, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
1108 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *Ops0, Constant *Ops1, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
1410 ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, Type *Ty, ArrayRef<Constant *> Operands, const TargetLibraryInfo *TLI) argument
1736 ConstantFoldVectorCall(StringRef Name, unsigned IntrinsicID, VectorType *VTy, ArrayRef<Constant *> Operands, const TargetLibraryInfo *TLI) argument
1767 ConstantFoldCall(Function *F, ArrayRef<Constant *> Operands, const TargetLibraryInfo *TLI) argument
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DDCE.cpp45 TargetLibraryInfo *TLI = getAnalysisIfAvailable<TargetLibraryInfo>();
49 if (isInstructionTriviallyDead(Inst, TLI)) {
98 TargetLibraryInfo *TLI = getAnalysisIfAvailable<TargetLibraryInfo>();
114 if (isInstructionTriviallyDead(I, TLI)) { // If the instruction is dead.
H A DDeadStoreElimination.cpp50 const TargetLibraryInfo *TLI; member in struct:__anon26274::DSE
64 TLI = AA->getTargetLibraryInfo();
116 const TargetLibraryInfo *TLI,
141 if (isInstructionTriviallyDead(OpI, TLI))
154 static bool hasMemoryWrite(Instruction *I, const TargetLibraryInfo *TLI) { argument
171 if (TLI && TLI->has(LibFunc::strcpy) &&
172 F->getName() == TLI->getName(LibFunc::strcpy)) {
175 if (TLI && TLI
114 DeleteDeadInstruction(Instruction *I, MemoryDependenceAnalysis &MD, const TargetLibraryInfo *TLI, SmallSetVector<Value*, 16> *ValueSet = nullptr) argument
[all...]
H A DConstantProp.cpp73 TargetLibraryInfo *TLI = &getAnalysis<TargetLibraryInfo>(); local
80 if (Constant *C = ConstantFoldInstruction(I, DL, TLI)) {
/external/llvm/include/llvm/CodeGen/
H A DAnalysis.h55 void ComputeValueVTs(const TargetLowering &TLI, Type *Ty,
66 const TargetLowering &TLI);
97 const TargetLoweringBase &TLI);
H A DStackProtector.h53 /// TLI - Keep a pointer of a TargetLowering to consult for determining
55 const TargetLoweringBase *TLI; member in class:llvm::StackProtector
109 : FunctionPass(ID), TM(nullptr), TLI(nullptr), SSPBufferSize(0) {
113 : FunctionPass(ID), TM(TM), TLI(nullptr), Trip(TM->getTargetTriple()),
/external/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp38 const AArch64TargetLowering &TLI = local
42 EVT IntPtr = TLI.getPointerTy();
56 std::pair<SDValue, SDValue> CallResult = TLI.LowerCallTo(CLI);
/external/llvm/lib/CodeGen/
H A DBasicTargetTransformInfo.cpp188 const TargetLoweringBase *TLI = getTLI(); local
189 return TLI->supportJumpTables() &&
190 (TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) ||
191 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other));
195 const TargetLoweringBase *TLI = getTLI(); local
196 EVT VT = TLI->getValueType(Ty);
197 return TLI->isTypeLegal(VT) && TLI->isOperationLegalOrCustom(ISD::FSQRT, VT);
293 const TargetLoweringBase *TLI = getTLI(); local
294 int ISD = TLI
360 const TargetLoweringBase *TLI = getTLI(); local
455 const TargetLoweringBase *TLI = getTLI(); local
580 const TargetLoweringBase *TLI = getTLI(); local
[all...]
H A DCodeGenPrepare.cpp88 /// TLI - Keep a pointer of a TargetLowering to consult for determining
91 const TargetLowering *TLI; member in class:__anon25733::CodeGenPrepare
121 : FunctionPass(ID), TM(TM), TLI(nullptr) {
171 if (TM) TLI = TM->getTargetLowering();
181 if (!OptSize && TLI && TLI->isSlowDivBypassed()) {
183 TLI->getBypassSlowDivWidths();
536 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){ argument
538 EVT SrcVT = TLI.getValueType(CI->getOperand(0)->getType());
539 EVT DstVT = TLI
643 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI, DenseMap<BasicBlock *, BinaryOperator *> &InsertedShifts, const TargetLowering &TLI) argument
725 OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI, const TargetLowering &TLI) argument
1502 const TargetLowering &TLI; member in class:__anon25735::AddressingModeMatcher
1545 Match(Value *V, Type *AccessTy, Instruction *MemoryInst, SmallVectorImpl<Instruction*> &AddrModeInsts, const TargetLowering &TLI, const SetOfInstrs &InsertedTruncs, InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT) argument
1778 getAction( Instruction *SExt, const SetOfInstrs &InsertedTruncs, const TargetLowering &TLI, const InstrToOrigTy &PromotedInsts) argument
2267 IsOperandAMemoryOperand(CallInst *CI, InlineAsm *IA, Value *OpVal, const TargetLowering &TLI) argument
2290 FindAllMemoryUses(Instruction *I, SmallVectorImpl<std::pair<Instruction*,unsigned> > &MemoryUses, SmallPtrSet<Instruction*, 16> &ConsideredInsts, const TargetLowering &TLI) argument
[all...]
H A DAnalysis.cpp75 void llvm::ComputeValueVTs(const TargetLowering &TLI, Type *Ty, argument
81 const StructLayout *SL = TLI.getDataLayout()->getStructLayout(STy);
86 ComputeValueVTs(TLI, *EI, ValueVTs, Offsets,
93 uint64_t EltSize = TLI.getDataLayout()->getTypeAllocSize(EltTy);
95 ComputeValueVTs(TLI, EltTy, ValueVTs, Offsets,
103 ValueVTs.push_back(TLI.getValueType(Ty));
130 const TargetLowering &TLI) {
134 TargetLowering::ConstraintType CType = TLI.getConstraintType(CI.Codes[j]);
206 const TargetLoweringBase& TLI) {
209 TLI
129 hasInlineAsmMemConstraint(InlineAsm::ConstraintInfoVector &CInfos, const TargetLowering &TLI) argument
205 isNoopBitcast(Type *T1, Type *T2, const TargetLoweringBase& TLI) argument
223 getNoopInput(const Value *V, SmallVectorImpl<unsigned> &ValLoc, unsigned &DataBits, const TargetLoweringBase &TLI) argument
321 slotOnlyDiscardsData(const Value *RetVal, const Value *CallVal, SmallVectorImpl<unsigned> &RetIndices, SmallVectorImpl<unsigned> &CallIndices, bool AllowDifferingSizes, const TargetLoweringBase &TLI) argument
516 returnTypeIsEligibleForTailCall(const Function *F, const Instruction *I, const ReturnInst *Ret, const TargetLoweringBase &TLI) argument
[all...]
H A DExpandISelPseudos.cpp49 const TargetLowering *TLI = MF.getTarget().getTargetLowering(); local
62 TLI->EmitInstrWithCustomInserter(MI, MBB);
/external/llvm/lib/Target/R600/
H A DAMDGPUTargetTransformInfo.cpp42 const AMDGPUTargetLowering *TLI; member in class:__anon26103::final
49 AMDGPUTTI() : ImmutablePass(ID), TM(nullptr), ST(nullptr), TLI(nullptr) {
55 TLI(TM->getTargetLowering()) {
/external/llvm/lib/Transforms/Utils/
H A DSimplifyInstructions.cpp54 const TargetLibraryInfo *TLI = &getAnalysis<TargetLibraryInfo>(); variable
71 if (Value *V = SimplifyInstruction(I, DL, TLI, DT)) {
79 bool res = RecursivelyDeleteTriviallyDeadInstructions(I, TLI);
H A DBuildLibCalls.cpp37 const TargetLibraryInfo *TLI) {
38 if (!TLI->has(LibFunc::strlen))
66 const DataLayout *TD, const TargetLibraryInfo *TLI) {
67 if (!TLI->has(LibFunc::strnlen))
96 const DataLayout *TD, const TargetLibraryInfo *TLI) {
97 if (!TLI->has(LibFunc::strchr))
122 const TargetLibraryInfo *TLI) {
123 if (!TLI->has(LibFunc::strncmp))
154 const DataLayout *TD, const TargetLibraryInfo *TLI,
156 if (!TLI
36 EmitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
65 EmitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
95 EmitStrChr(Value *Ptr, char C, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
120 EmitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
153 EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI, StringRef Name) argument
177 EmitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI, StringRef Name) argument
204 EmitMemCpyChk(Value *Dst, Value *Src, Value *Len, Value *ObjSize, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
232 EmitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
260 EmitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
348 EmitPutChar(Value *Char, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
370 EmitPutS(Value *Str, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
394 EmitFPutC(Value *Char, Value *File, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
427 EmitFPutS(Value *Str, Value *File, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
459 EmitFWrite(Value *Ptr, Value *Size, Value *File, IRBuilder<> &B, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
498 fold(CallInst *CI, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp125 TLI.getTypeToTransformTo(*DAG.getContext(),
133 TLI.getTypeToTransformTo(*DAG.getContext(),
145 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
157 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
160 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0),
170 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
172 return TLI.makeLibCall(DAG, GetFPLibCall(N->getValueType(0),
195 TLI.getShiftAmountTy(RVT)));
203 TLI.getShiftAmountTy(SignBit.getValueType())));
209 TLI
[all...]
H A DFunctionLoweringInfo.cpp60 const TargetLowering *TLI = TM.getTargetLowering(); local
68 GetReturnInfo(Fn->getReturnType(), Fn->getAttributes(), Outs, *TLI);
69 CanLowerReturn = TLI->CanLowerReturn(Fn->getCallingConv(), *MF,
86 uint64_t TySize = TLI->getDataLayout()->getTypeAllocSize(Ty);
88 std::max((unsigned)TLI->getDataLayout()->getPrefTypeAlignment(Ty),
106 (unsigned)TLI->getDataLayout()->getPrefTypeAlignment(
121 unsigned SP = TLI->getStackPointerRegisterToSaveRestore();
123 TLI->ParseConstraints(CS);
128 TLI->ComputeConstraintToUse(Op, SDValue(), DAG);
130 TLI
260 const TargetLowering *TLI = TM.getTargetLowering(); local
309 const TargetLowering *TLI = TM.getTargetLowering(); local
[all...]

Completed in 698 milliseconds

123456