Home
last modified time | relevance | path

Searched refs:LibFunc (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h38 LibFunc TheLibFunc, FunctionType *T,
41 LibFunc TheLibFunc, FunctionType *T);
44 LibFunc TheLibFunc, AttributeList AttributeList, in getOrInsertLibFunc()
54 LibFunc TheLibFunc, Type *RetTy, ArgsTy... Args) { in getOrInsertLibFunc()
62 LibFunc TheLibFunc, AttributeList AttributeList,
75 LibFunc TheLibFunc);
82 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn);
87 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn,
88 LibFunc &TheLibFunc);
206 LibFunc DoubleFn, LibFunc FloatFn,
[all …]
H A DSimplifyLibCalls.h60 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func);
61 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func);
186 Value *optimizeNew(CallInst *CI, IRBuilderBase &B, LibFunc &Func);
207 Value *optimizeSymmetric(CallInst *CI, LibFunc Func, IRBuilderBase &B);
209 Value *optimizeFloatingPointLibCall(CallInst *CI, LibFunc Func,
H A DMemoryOpRemark.h79 void visitKnownLibCall(const CallInst &CI, LibFunc LF,
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h69 enum LibFunc : unsigned { enum
97 void setState(LibFunc F, AvailabilityState State) { in setState()
101 AvailabilityState getState(LibFunc F) const { in getState()
113 bool isValidProtoForLibFunc(const FunctionType &FTy, LibFunc F,
149 bool getLibFunc(StringRef funcName, LibFunc &F) const;
158 bool getLibFunc(const Function &FDecl, LibFunc &F) const;
162 bool getLibFunc(unsigned int Opcode, Type *Ty, LibFunc &F) const;
165 void setUnavailable(LibFunc F) { in setUnavailable()
170 void setAvailable(LibFunc F) { in setAvailable()
176 void setAvailableWithName(LibFunc F, StringRef Name) { in setAvailableWithName()
[all …]
H A DMemoryBuiltins.h84 bool isLibFreeFunction(const Function *F, const LibFunc TLIFn);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp75 bool performCallDomainErrorOnly(CallInst *CI, const LibFunc &Func);
76 bool performCallErrors(CallInst *CI, const LibFunc &Func);
77 bool performCallRangeErrorOnly(CallInst *CI, const LibFunc &Func);
78 Value *generateOneRangeCond(CallInst *CI, const LibFunc &Func);
79 Value *generateTwoRangeCond(CallInst *CI, const LibFunc &Func);
80 Value *generateCondForPow(CallInst *CI, const LibFunc &Func);
131 const LibFunc &Func) { in performCallDomainErrorOnly()
183 const LibFunc &Func) { in performCallRangeErrorOnly()
221 const LibFunc &Func) { in performCallErrors()
294 LibFunc Func; in checkCandidate()
[all …]
H A DBuildLibCalls.cpp263 LibFunc TheLibFunc; in inferNonMandatoryLibFuncAttrs()
1301 LibFunc TheLibFunc, FunctionType *T, in getOrInsertLibFunc()
1374 LibFunc TheLibFunc, FunctionType *T) { in getOrInsertLibFunc()
1379 LibFunc TheLibFunc) { in isLibFuncEmittable()
1397 LibFunc TheLibFunc; in isLibFuncEmittable()
1403 LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn) { in hasFloatFn()
1417 Type *Ty, LibFunc DoubleFn, LibFunc FloatFn, in getFloatFn()
1418 LibFunc LongDoubleFn, LibFunc &TheLibFunc) { in getFloatFn()
1448 static Value *emitLibCall(LibFunc TheLibFunc, Type *ReturnType, in emitLibCall()
1706 static Value *emitUnaryFloatFnCallHelper(Value *Op, LibFunc TheLibFunc, in emitUnaryFloatFnCallHelper()
[all …]
H A DMemoryOpRemark.cpp54 LibFunc LF; in canHandle()
251 LibFunc LF; in visitCall()
268 void MemoryOpRemark::visitKnownLibCall(const CallInst &CI, LibFunc LF, in visitKnownLibCall()
H A DSimplifyLibCalls.cpp101 static bool ignoreCallingConv(LibFunc Func) { in ignoreCallingConv()
1727 LibFunc &Func) { in optimizeNew()
2061 LibFunc LibFn; in replacePowWithExp()
2069 LibFunc LibFnFloat, LibFnDouble, LibFnLongDouble; in replacePowWithExp()
2495 LibFunc LogLb, ExpLb, Exp2Lb, Exp10Lb, PowLb; in optimizeLog()
2587 LibFunc ArgLb = NotLibFunc; in optimizeLog()
2643 LibFunc ArgLb = NotLibFunc; in mergeSqrtToExp()
2646 LibFunc SqrtLb, ExpLb, Exp2Lb, Exp10Lb; in mergeSqrtToExp()
2794 LibFunc Func; in optimizeTrigInversionPairs()
2798 LibFunc inverseFunc = llvm::StringSwitch<LibFunc>(Callee->getName()) in optimizeTrigInversionPairs()
[all …]
H A DMetaRenamer.cpp160 LibFunc Tmp; in MetaRename()
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DUpdateCompilerUsed.cpp65 for (unsigned I = 0, E = static_cast<unsigned>(LibFunc::NumLibFuncs); in initializeLibCalls()
67 LibFunc F = static_cast<LibFunc>(I); in initializeLibCalls()
/freebsd/contrib/llvm-project/llvm/tools/llvm-tli-checker/
H A Dllvm-tli-checker.cpp127 reserve(LibFunc::NumLibFuncs);
129 for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) { in initialize()
130 LibFunc LF = (LibFunc)FI; in initialize()
138 outs() << "TLI knows " << LibFunc::NumLibFuncs << " symbols, " << NumAvailable in initialize()
346 LibFunc::NumLibFuncs); in main()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp45 StringLiteral const TargetLibraryInfoImpl::StandardNames[LibFunc::NumLibFuncs] =
90 static_assert(sizeof Signatures / sizeof *Signatures == LibFunc::NumLibFuncs,
974 static DenseMap<StringRef, LibFunc>
976 DenseMap<StringRef, LibFunc> Indices; in buildIndexMap()
978 Indices.reserve(LibFunc::NumLibFuncs); in buildIndexMap()
980 Indices[Func] = static_cast<LibFunc>(Idx++); in buildIndexMap()
984 bool TargetLibraryInfoImpl::getLibFunc(StringRef funcName, LibFunc &F) const { in getLibFunc()
989 static const DenseMap<StringRef, LibFunc> Indices = in getLibFunc()
1049 LibFunc F, in isValidProtoForLibFunc()
1153 LibFunc &F) const { in getLibFunc()
[all …]
H A DMemoryBuiltins.cpp119 static const std::pair<LibFunc, AllocFnsTy> AllocationFnData[] = {
188 LibFunc TLIFn; in getAllocationDataForFunction()
193 AllocationFnData, [TLIFn](const std::pair<LibFunc, AllocFnsTy> &P) { in getAllocationDataForFunction() argument
467 static const std::pair<LibFunc, FreeFnsTy> FreeFnData[] = {
501 const LibFunc TLIFn) { in getFreeFunctionDataForFunction()
503 find_if(FreeFnData, [TLIFn](const std::pair<LibFunc, FreeFnsTy> &P) { in getFreeFunctionDataForFunction() argument
517 LibFunc TLIFn; in getAllocationFamily()
539 bool llvm::isLibFreeFunction(const Function *F, const LibFunc TLIFn) { in isLibFreeFunction()
564 LibFunc TLIFn; in getFreedOperand()
918 LibFunc TLIFn; in findLoadSizeOffset()
H A DMemoryLocation.cpp249 LibFunc F; in getForArgument()
H A DConstantFolding.cpp2126 LibFunc Fp128Func = NotLibFunc; in ConstantFoldScalarCall1()
2296 LibFunc Func = NotLibFunc; in ConstantFoldScalarCall1()
2581 LibFunc Func = NotLibFunc; in ConstantFoldLibCall2()
3475 LibFunc LibF; in ConstantFoldCall()
3515 LibFunc Func; in isMathLibCallNoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOMemOPSizeOpt.cpp145 LibFunc Func; in isMemcmp()
153 LibFunc Func; in isBcmp()
163 LibFunc Func; in getName()
206 LibFunc Func; in visitCallInst()
H A DNumericalStabilitySanitizer.cpp759 LibFunc LFunc = LibFunc::NumLibFuncs; in shouldCheckArgs()
804 LibFunc LFunc; in populateShadowStack()
1241 static const char *get(LibFunc LFunc);
1252 LibFunc LFunc;
1464 const char *KnownIntrinsic::get(LibFunc LFunc) { in get()
1483 LibFunc LFunc; in getIntrinsicFromLibfunc()
H A DValueProfilePlugins.inc59 LibFunc Func;
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFunction.h53 enum LibFunc : unsigned;
130 static constexpr LibFunc UnknownLibFunc = LibFunc(-1);
135 mutable LibFunc LibFuncCache = UnknownLibFunc;
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyPeephole.cpp139 LibFunc Func; in runOnMachineFunction()
H A DWebAssemblyMemIntrinsicResults.cpp164 LibFunc Func; in optimizeCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DPartiallyInlineLibCalls.cpp133 LibFunc LF; in runPartiallyInlineLibCalls()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DModuleInliner.cpp94 LibFunc LF; in isKnownLibFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp414 static bool foldSqrt(CallInst *Call, LibFunc Func, TargetTransformInfo &TTI, in foldSqrt()
930 StrNCmpInliner(CallInst *CI, LibFunc Func, DomTreeUpdater *DTU,
940 LibFunc Func;
1198 LibFunc LF; in foldLibCalls()

12