24 "No vector functions library"),
26 "Accelerate framework"),
28 "IBM MASS vector library"),
30 "Intel SVML library")));
34 #define TLI_DEFINE_STRING 35 #include "llvm/Analysis/TargetLibraryInfo.def" 76 "TargetLibraryInfoImpl function names must be sorted");
90 bool ShouldExtI32Param =
false, ShouldExtI32Return =
false,
91 ShouldSignExtI32Param =
false;
96 ShouldExtI32Param =
true;
97 ShouldExtI32Return =
true;
102 ShouldSignExtI32Param =
true;
133 }
else if (T.
isiOS()) {
184 bool hasPartialC99 =
true;
186 unsigned Major, Minor, Micro;
188 hasPartialC99 = (Major == 0 || Major >= 19);
194 bool hasPartialFloat = (isARM ||
198 if (!hasPartialFloat) {
249 if (!hasPartialC99) {
558 memset(AvailableArray, -1,
sizeof(AvailableArray));
565 memset(AvailableArray, -1,
sizeof(AvailableArray));
571 : CustomNames(TLI.CustomNames), ShouldExtI32Param(TLI.ShouldExtI32Param),
572 ShouldExtI32Return(TLI.ShouldExtI32Return),
573 ShouldSignExtI32Param(TLI.ShouldSignExtI32Param) {
574 memcpy(AvailableArray, TLI.AvailableArray,
sizeof(AvailableArray));
575 VectorDescs = TLI.VectorDescs;
576 ScalarDescs = TLI.ScalarDescs;
580 : CustomNames(
std::move(TLI.CustomNames)),
581 ShouldExtI32Param(TLI.ShouldExtI32Param),
582 ShouldExtI32Return(TLI.ShouldExtI32Return),
583 ShouldSignExtI32Param(TLI.ShouldSignExtI32Param) {
586 VectorDescs = TLI.VectorDescs;
587 ScalarDescs = TLI.ScalarDescs;
591 CustomNames = TLI.CustomNames;
592 ShouldExtI32Param = TLI.ShouldExtI32Param;
593 ShouldExtI32Return = TLI.ShouldExtI32Return;
594 ShouldSignExtI32Param = TLI.ShouldSignExtI32Param;
595 memcpy(AvailableArray, TLI.AvailableArray,
sizeof(AvailableArray));
600 CustomNames = std::move(TLI.CustomNames);
601 ShouldExtI32Param = TLI.ShouldExtI32Param;
602 ShouldExtI32Return = TLI.ShouldExtI32Return;
603 ShouldSignExtI32Param = TLI.ShouldSignExtI32Param;
622 if (funcName.
empty())
625 const auto *Start =
std::begin(StandardNames);
626 const auto *End =
std::end(StandardNames);
628 if (
I != End && *
I == funcName) {
635 bool TargetLibraryInfoImpl::isValidProtoForLibFunc(
const FunctionType &FTy,
641 auto IsSizeTTy = [SizeTTy](
Type *Ty) {
642 return SizeTTy ? Ty == SizeTTy : Ty->
isIntegerTy();
659 case LibFunc_execvpe:
670 case LibFunc_strrchr:
678 case LibFunc_strtoul:
679 case LibFunc_strtoll:
680 case LibFunc_strtold:
681 case LibFunc_strtoull:
682 return ((NumParams == 2 || NumParams == 3) &&
685 case LibFunc_strcat_chk:
695 case LibFunc_strncat_chk:
700 case LibFunc_strncat:
706 case LibFunc_strcpy_chk:
707 case LibFunc_stpcpy_chk:
718 case LibFunc_strlcat_chk:
719 case LibFunc_strlcpy_chk:
724 case LibFunc_strlcat:
725 case LibFunc_strlcpy:
731 case LibFunc_strncpy_chk:
732 case LibFunc_stpncpy_chk:
737 case LibFunc_strncpy:
738 case LibFunc_stpncpy:
744 case LibFunc_strxfrm:
753 case LibFunc_strncmp:
760 case LibFunc_strcspn:
765 case LibFunc_strcoll:
766 case LibFunc_strcasecmp:
767 case LibFunc_strncasecmp:
776 case LibFunc_strpbrk:
782 case LibFunc_strtok_r:
786 case LibFunc_setvbuf:
789 case LibFunc_strndup:
794 case LibFunc_statvfs:
795 case LibFunc_siprintf:
796 case LibFunc_small_sprintf:
797 case LibFunc_sprintf:
802 case LibFunc_sprintf_chk:
809 case LibFunc_snprintf:
814 case LibFunc_snprintf_chk:
822 case LibFunc_setitimer:
835 case LibFunc_memrchr:
845 case LibFunc_memcpy_chk:
846 case LibFunc_memmove_chk:
852 case LibFunc_mempcpy:
853 case LibFunc_memmove:
859 case LibFunc_memset_chk:
870 case LibFunc_memccpy_chk:
875 case LibFunc_memccpy:
877 case LibFunc_memalign:
879 case LibFunc_realloc:
880 case LibFunc_reallocf:
889 case LibFunc_realpath:
894 case LibFunc_readlink:
914 case LibFunc_getpwnam:
915 case LibFunc_iprintf:
916 case LibFunc_small_printf:
922 case LibFunc_under_IO_getc:
924 case LibFunc_unsetenv:
930 case LibFunc_clearerr:
931 case LibFunc_closedir:
932 case LibFunc_ctermid:
937 case LibFunc_fgetc_unlocked:
939 case LibFunc_flockfile:
942 case LibFunc_fseeko64:
944 case LibFunc_fsetpos:
946 case LibFunc_ftello64:
948 case LibFunc_ftrylockfile:
949 case LibFunc_funlockfile:
951 case LibFunc_getc_unlocked:
952 case LibFunc_getlogin_r:
968 case LibFunc_fputc_unlocked:
973 case LibFunc_fstatvfs:
976 case LibFunc_fgets_unlocked:
980 case LibFunc_fread_unlocked:
984 case LibFunc_fwrite_unlocked:
991 case LibFunc_fputs_unlocked:
995 case LibFunc_fiprintf:
996 case LibFunc_small_fprintf:
997 case LibFunc_fprintf:
1001 case LibFunc_fgetpos:
1004 case LibFunc_getchar:
1005 case LibFunc_getchar_unlocked:
1008 return (NumParams == 1 && FTy.
getParamType(0) == PCharTy);
1009 case LibFunc_getitimer:
1011 case LibFunc_ungetc:
1014 case LibFunc_utimes:
1018 case LibFunc_putc_unlocked:
1021 case LibFunc_pwrite:
1027 case LibFunc_vscanf:
1029 case LibFunc_vsscanf:
1032 case LibFunc_vfscanf:
1035 case LibFunc_valloc:
1037 case LibFunc_vprintf:
1039 case LibFunc_vfprintf:
1040 case LibFunc_vsprintf:
1043 case LibFunc_vsprintf_chk:
1047 case LibFunc_vsnprintf:
1050 case LibFunc_vsnprintf_chk:
1056 case LibFunc_opendir:
1059 case LibFunc_tmpfile:
1072 case LibFunc_lchown:
1076 case LibFunc_dunder_strdup:
1077 case LibFunc_dunder_strndup:
1080 case LibFunc_dunder_strtok_r:
1082 case LibFunc_under_IO_putc:
1084 case LibFunc_dunder_isoc99_scanf:
1086 case LibFunc_stat64:
1087 case LibFunc_lstat64:
1088 case LibFunc_statvfs64:
1091 case LibFunc_dunder_isoc99_sscanf:
1094 case LibFunc_fopen64:
1098 case LibFunc_tmpfile64:
1100 case LibFunc_fstat64:
1101 case LibFunc_fstatvfs64:
1103 case LibFunc_open64:
1105 case LibFunc_gettimeofday:
1118 case LibFunc_msvc_new_int:
1120 case LibFunc_msvc_new_longlong:
1122 case LibFunc_msvc_new_array_int:
1124 case LibFunc_msvc_new_array_longlong:
1128 case LibFunc_ZnwjRKSt9nothrow_t:
1130 case LibFunc_ZnwmRKSt9nothrow_t:
1132 case LibFunc_ZnajRKSt9nothrow_t:
1134 case LibFunc_ZnamRKSt9nothrow_t:
1136 case LibFunc_msvc_new_int_nothrow:
1138 case LibFunc_msvc_new_longlong_nothrow:
1140 case LibFunc_msvc_new_array_int_nothrow:
1142 case LibFunc_msvc_new_array_longlong_nothrow:
1144 case LibFunc_ZnwjSt11align_val_t:
1146 case LibFunc_ZnwmSt11align_val_t:
1148 case LibFunc_ZnajSt11align_val_t:
1150 case LibFunc_ZnamSt11align_val_t:
1154 case LibFunc_ZnwjSt11align_val_tRKSt9nothrow_t:
1156 case LibFunc_ZnwmSt11align_val_tRKSt9nothrow_t:
1158 case LibFunc_ZnajSt11align_val_tRKSt9nothrow_t:
1160 case LibFunc_ZnamSt11align_val_tRKSt9nothrow_t:
1168 case LibFunc_msvc_delete_array_ptr32:
1170 case LibFunc_msvc_delete_array_ptr64:
1172 case LibFunc_msvc_delete_ptr32:
1174 case LibFunc_msvc_delete_ptr64:
1178 case LibFunc_ZdaPvRKSt9nothrow_t:
1180 case LibFunc_ZdaPvj:
1182 case LibFunc_ZdaPvm:
1184 case LibFunc_ZdlPvRKSt9nothrow_t:
1186 case LibFunc_ZdlPvj:
1188 case LibFunc_ZdlPvm:
1190 case LibFunc_ZdlPvSt11align_val_t:
1192 case LibFunc_ZdaPvSt11align_val_t:
1194 case LibFunc_msvc_delete_array_ptr32_int:
1196 case LibFunc_msvc_delete_array_ptr32_nothrow:
1198 case LibFunc_msvc_delete_array_ptr64_longlong:
1200 case LibFunc_msvc_delete_array_ptr64_nothrow:
1202 case LibFunc_msvc_delete_ptr32_int:
1204 case LibFunc_msvc_delete_ptr32_nothrow:
1206 case LibFunc_msvc_delete_ptr64_longlong:
1208 case LibFunc_msvc_delete_ptr64_nothrow:
1212 case LibFunc_ZdlPvSt11align_val_tRKSt9nothrow_t:
1214 case LibFunc_ZdaPvSt11align_val_tRKSt9nothrow_t:
1217 case LibFunc_memset_pattern16:
1218 return (!FTy.
isVarArg() && NumParams == 3 &&
1223 case LibFunc_cxa_guard_abort:
1224 case LibFunc_cxa_guard_acquire:
1225 case LibFunc_cxa_guard_release:
1226 case LibFunc_nvvm_reflect:
1229 case LibFunc_sincospi_stret:
1230 case LibFunc_sincospif_stret:
1234 case LibFunc_acos_finite:
1236 case LibFunc_acosf_finite:
1238 case LibFunc_acosh_finite:
1239 case LibFunc_acoshf:
1240 case LibFunc_acoshf_finite:
1241 case LibFunc_acoshl:
1242 case LibFunc_acoshl_finite:
1244 case LibFunc_acosl_finite:
1246 case LibFunc_asin_finite:
1248 case LibFunc_asinf_finite:
1250 case LibFunc_asinhf:
1251 case LibFunc_asinhl:
1253 case LibFunc_asinl_finite:
1257 case LibFunc_atanh_finite:
1258 case LibFunc_atanhf:
1259 case LibFunc_atanhf_finite:
1260 case LibFunc_atanhl:
1261 case LibFunc_atanhl_finite:
1272 case LibFunc_cosh_finite:
1274 case LibFunc_coshf_finite:
1276 case LibFunc_coshl_finite:
1279 case LibFunc_exp10_finite:
1280 case LibFunc_exp10f:
1281 case LibFunc_exp10f_finite:
1282 case LibFunc_exp10l:
1283 case LibFunc_exp10l_finite:
1285 case LibFunc_exp2_finite:
1287 case LibFunc_exp2f_finite:
1289 case LibFunc_exp2l_finite:
1291 case LibFunc_exp_finite:
1293 case LibFunc_expf_finite:
1295 case LibFunc_expl_finite:
1297 case LibFunc_expm1f:
1298 case LibFunc_expm1l:
1303 case LibFunc_floorf:
1304 case LibFunc_floorl:
1306 case LibFunc_log10_finite:
1307 case LibFunc_log10f:
1308 case LibFunc_log10f_finite:
1309 case LibFunc_log10l:
1310 case LibFunc_log10l_finite:
1312 case LibFunc_log1pf:
1313 case LibFunc_log1pl:
1315 case LibFunc_log2_finite:
1317 case LibFunc_log2f_finite:
1319 case LibFunc_log2l_finite:
1321 case LibFunc_log_finite:
1326 case LibFunc_logf_finite:
1328 case LibFunc_logl_finite:
1329 case LibFunc_nearbyint:
1330 case LibFunc_nearbyintf:
1331 case LibFunc_nearbyintl:
1336 case LibFunc_roundf:
1337 case LibFunc_roundl:
1341 case LibFunc_sinh_finite:
1343 case LibFunc_sinhf_finite:
1345 case LibFunc_sinhl_finite:
1348 case LibFunc_sqrt_finite:
1350 case LibFunc_sqrtf_finite:
1352 case LibFunc_sqrtl_finite:
1360 case LibFunc_truncf:
1361 case LibFunc_truncl:
1366 case LibFunc_atan2_finite:
1367 case LibFunc_atan2f:
1368 case LibFunc_atan2f_finite:
1369 case LibFunc_atan2l:
1370 case LibFunc_atan2l_finite:
1380 case LibFunc_copysign:
1381 case LibFunc_copysignf:
1382 case LibFunc_copysignl:
1384 case LibFunc_pow_finite:
1386 case LibFunc_powf_finite:
1388 case LibFunc_powl_finite:
1394 case LibFunc_ldexpf:
1395 case LibFunc_ldexpl:
1409 case LibFunc_isdigit:
1410 case LibFunc_isascii:
1411 case LibFunc_toascii:
1412 case LibFunc_putchar:
1413 case LibFunc_putchar_unlocked:
1423 case LibFunc_cxa_atexit:
1434 case LibFunc_sinpif:
1435 case LibFunc_cospif:
1439 case LibFunc_strnlen:
1444 case LibFunc_posix_memalign:
1449 case LibFunc_wcslen:
1455 case LibFunc_cabsl: {
1467 else if (NumParams == 2)
1494 memset(AvailableArray, 0,
sizeof(AvailableArray));
1514 VectorDescs.insert(VectorDescs.end(), Fns.
begin(), Fns.
end());
1517 ScalarDescs.insert(ScalarDescs.end(), Fns.
begin(), Fns.
end());
1526 #define TLI_DEFINE_ACCELERATE_VECFUNCS 1527 #include "llvm/Analysis/VecFuncs.def" 1534 #define TLI_DEFINE_MASSV_VECFUNCS 1535 #include "llvm/Analysis/VecFuncs.def" 1542 #define TLI_DEFINE_SVML_VECFUNCS 1543 #include "llvm/Analysis/VecFuncs.def" 1555 if (funcName.
empty())
1558 std::vector<VecDesc>::const_iterator
I =
1560 return I != VectorDescs.end() &&
StringRef(I->ScalarFnName) == funcName;
1564 unsigned VF)
const {
1568 std::vector<VecDesc>::const_iterator
I =
1570 while (I != VectorDescs.end() &&
StringRef(I->ScalarFnName) ==
F) {
1571 if (I->VectorizationFactor == VF)
1572 return I->VectorFnName;
1579 unsigned &VF)
const {
1584 std::vector<VecDesc>::const_iterator
I =
1586 if (I == VectorDescs.end() ||
StringRef(I->VectorFnName) !=
F)
1588 VF = I->VectorizationFactor;
1589 return I->ScalarFnName;
1594 if (!BaselineInfoImpl)
1601 if (
auto *ShortWChar = cast_or_null<ConstantAsMetadata>(
1603 return cast<ConstantInt>(ShortWChar->getValue())->getZExtValue();
1627 "Target Library Information",
false,
true)
1630 void TargetLibraryInfoWrapperPass::anchor() {}
1634 if (ScalarF.
empty())
1638 std::vector<VecDesc>::const_iterator
I =
1640 while (I != VectorDescs.end() &&
StringRef(I->ScalarFnName) == ScalarF) {
1641 if (I->VectorizationFactor > VF)
1642 VF = I->VectorizationFactor;
unsigned getWidestVF(StringRef ScalarF) const
Returns the largest vectorization factor used in the list of vector functions.
auto lower_bound(R &&Range, T &&Value) -> decltype(adl_begin(Range))
Provide wrappers to std::lower_bound which take ranges instead of having to pass begin/end explicitly...
bool isOSDarwin() const
isOSDarwin - Is this a "Darwin" OS (macOS, iOS, tvOS or watchOS).
bool isIntrinsic() const
isIntrinsic - Returns true if the function's name starts with "llvm.".
A parsed version of the target data layout string in and methods for querying it. ...
const_iterator end(StringRef path)
Get end iterator over path.
const std::string & getTargetTriple() const
Get the target triple which is a string describing the target host.
static bool compareByVectorFnName(const VecDesc &LHS, const VecDesc &RHS)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
This class represents lattice values for constants.
bool isMacOSX() const
isMacOSX - Is this a Mac OS X triple.
Type * getParamType(unsigned i) const
Parameter type accessors.
void setShouldExtI32Return(bool Val)
Set to true iff i32 results from library functions should have signext or zeroext attributes if they ...
void addVectorizableFunctions(ArrayRef< VecDesc > Fns)
Add a set of scalar -> vector mappings, queryable via getVectorizedFunction and getScalarizedFunction...
A Module instance is used to store all the information related to an LLVM module. ...
static StringRef sanitizeFunctionName(StringRef funcName)
VectorLibrary
List of known vector-functions libraries.
OSType getOS() const
getOS - Get the parsed operating system type of this triple.
void initializeTargetLibraryInfoWrapperPassPass(PassRegistry &)
static cl::opt< TargetLibraryInfoImpl::VectorLibrary > ClVectorLibrary("vector-library", cl::Hidden, cl::desc("Vector functions library"), cl::init(TargetLibraryInfoImpl::NoLibrary), cl::values(clEnumValN(TargetLibraryInfoImpl::NoLibrary, "none", "No vector functions library"), clEnumValN(TargetLibraryInfoImpl::Accelerate, "Accelerate", "Accelerate framework"), clEnumValN(TargetLibraryInfoImpl::MASSV, "MASSV", "IBM MASS vector library"), clEnumValN(TargetLibraryInfoImpl::SVML, "SVML", "Intel SVML library")))
bool isX86() const
Tests whether the target is x86 (32- or 64-bit).
void setShouldExtI32Param(bool Val)
Set to true iff i32 parameters to library functions should have signext or zeroext attributes if they...
void disableAllFunctions()
Disables all builtins.
TargetLibraryInfoWrapperPass()
bool isWatchOS() const
Is this an Apple watchOS triple.
Implementation of the target library information.
void getEnvironmentVersion(unsigned &Major, unsigned &Minor, unsigned &Micro) const
Parse the version number from the OS name component of the triple, if present.
LLVMContext & getContext() const
Return the LLVMContext in which this type was uniqued.
const DataLayout & getDataLayout() const
Get the data layout for the module's target platform.
bool isFloatingPointTy() const
Return true if this is one of the six floating-point types.
uint64_t getArrayNumElements() const
bool isKnownWindowsMSVCEnvironment() const
Checks if the environment is MSVC.
bool isIntegerTy() const
True if this is an instance of IntegerType.
friend class TargetLibraryInfo
LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
Class to represent function types.
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
bool getLibFunc(StringRef funcName, LibFunc &F) const
Searches for a particular function name.
static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, ArrayRef< StringLiteral > StandardNames)
Initialize the set of available library functions based on the specified target triple.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool isiOS() const
Is this an iOS triple.
void setShouldSignExtI32Param(bool Val)
Set to true iff i32 parameters to library functions should have signext attribute if they correspond ...
void setUnavailable(LibFunc F)
Forces a function to be marked as unavailable.
bool isOSWindows() const
Tests whether the OS is Windows.
bool isFloatTy() const
Return true if this is 'float', a 32-bit IEEE fp type.
IntegerType * getIntPtrType(LLVMContext &C, unsigned AddressSpace=0) const
Returns an integer type with size at least as big as that of a pointer in the given address space...
StringRef getScalarizedFunction(StringRef F, unsigned &VF) const
Return the name of the equivalent of F, scalarized.
bool isMusl() const
Tests whether the environment is musl-libc.
initializer< Ty > init(const Ty &Val)
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
bool isFunctionVectorizable(StringRef F, unsigned VF) const
Return true if the function F has a vector equivalent with vectorization factor VF.
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
Metadata * getModuleFlag(StringRef Key) const
Return the corresponding value if Key appears in module flags, otherwise return null.
ValuesClass values(OptsTy... Options)
Helper to build a ValuesClass by forwarding a variable number of arguments as an initializer list to ...
This file contains the declarations for the subclasses of Constant, which represent the different fla...
bool isPointerTy() const
True if this is an instance of PointerType.
unsigned getNumParams() const
Return the number of fixed parameters this function type requires.
static bool compareByScalarFnName(const VecDesc &LHS, const VecDesc &RHS)
LLVM_NODISCARD size_t find(char C, size_t From=0) const
Search for the first character C in the string.
bool isAndroidVersionLT(unsigned Major) const
bool isPPC64() const
Tests whether the target is 64-bit PowerPC (little and big endian).
static PointerType * getInt8PtrTy(LLVMContext &C, unsigned AS=0)
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Triple - Helper class for working with autoconf configuration names.
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
void sort(IteratorTy Start, IteratorTy End)
static bool hasSinCosPiStret(const Triple &T)
ImmutablePass class - This class is used to provide information that does not need to be run...
Describes a possible vectorization of a function.
Provides information about what library functions are available for the current target.
StringRef getVectorizedFunction(StringRef F, unsigned VF) const
Return the name of the equivalent of F, vectorized with factor VF.
bool isOSLinux() const
Tests whether the OS is Linux.
TargetLibraryInfoImpl & operator=(const TargetLibraryInfoImpl &TLI)
Type * getReturnType() const
TargetLibraryInfo run(const Function &F, FunctionAnalysisManager &)
FunctionType * getFunctionType() const
Returns the FunctionType for me.
void addVectorizableFunctionsFromVecLib(enum VectorLibrary VecLib)
Calls addVectorizableFunctions with a known preset of functions for the given vector library...
static StringRef dropLLVMManglingEscape(StringRef Name)
If the given string begins with the GlobalValue name mangling escape character '\1', drop it.
bool isMIPS() const
Tests whether the target is MIPS (little and big endian, 32- or 64-bit).
bool isOSCygMing() const
Tests for either Cygwin or MinGW OS.
#define clEnumValN(ENUMVAL, FLAGNAME, DESC)
static bool hasBcmp(const Triple &TT)
StringRef getName() const
Return a constant reference to the value's name.
static bool compareWithVectorFnName(const VecDesc &LHS, StringRef S)
bool isGNUEnvironment() const
bool isMacOSXVersionLT(unsigned Major, unsigned Minor=0, unsigned Micro=0) const
isMacOSXVersionLT - Comparison function for checking OS X version compatibility, which handles suppor...
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Module * getParent()
Get the module that this global value is contained inside of...
void setAvailableWithName(LibFunc F, StringRef Name)
Forces a function to be marked as available and provide an alternate name that must be used...
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
bool isAndroid() const
Tests whether the target is Android.
bool isNVPTX() const
Tests whether the target is NVPTX (32- or 64-bit).
StringRef - Represent a constant reference to a string, i.e.
A container for analyses that lazily runs them and caches their results.
bool isOSVersionLT(unsigned Major, unsigned Minor=0, unsigned Micro=0) const
isOSVersionLT - Helper function for doing comparisons against version numbers included in the target ...
Type * getArrayElementType() const
void setAvailable(LibFunc F)
Forces a function to be marked as available.
bool isDoubleTy() const
Return true if this is 'double', a 64-bit IEEE fp type.
unsigned getWCharSize(const Module &M) const
Returns the size of the wchar_t type in bytes or 0 if the size is unknown.
A special type used by analysis passes to provide an address that identifies that particular analysis...
static bool compareWithScalarFnName(const VecDesc &LHS, StringRef S)
bool isArrayTy() const
True if this is an instance of ArrayType.