Lines Matching refs:defineMacro

48     Builder.defineMacro(MacroName);  in DefineStd()
51 Builder.defineMacro("__" + MacroName); in DefineStd()
54 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
59 Builder.defineMacro("__" + CPUName); in defineCPUMacros()
60 Builder.defineMacro("__" + CPUName + "__"); in defineCPUMacros()
62 Builder.defineMacro("__tune_" + CPUName + "__"); in defineCPUMacros()
91 Builder.defineMacro("__APPLE_CC__", "6000"); in getDarwinDefines()
92 Builder.defineMacro("__APPLE__"); in getDarwinDefines()
93 Builder.defineMacro("OBJC_NEW_PROPERTIES"); in getDarwinDefines()
97 Builder.defineMacro("_FORTIFY_SOURCE", "0"); in getDarwinDefines()
101 Builder.defineMacro("__weak", "__attribute__((objc_gc(weak)))"); in getDarwinDefines()
105 Builder.defineMacro("__strong", "__attribute__((objc_gc(strong)))"); in getDarwinDefines()
107 Builder.defineMacro("__strong", ""); in getDarwinDefines()
112 Builder.defineMacro("__unsafe_unretained", ""); in getDarwinDefines()
116 Builder.defineMacro("__STATIC__"); in getDarwinDefines()
118 Builder.defineMacro("__DYNAMIC__"); in getDarwinDefines()
121 Builder.defineMacro("_REENTRANT"); in getDarwinDefines()
151 Builder.defineMacro("__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__", in getDarwinDefines()
176 Builder.defineMacro("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
181 Builder.defineMacro("__MACH__"); in getDarwinDefines()
193 Builder.defineMacro("__CloudABI__"); in getOSDefines()
194 Builder.defineMacro("__ELF__"); in getOSDefines()
197 Builder.defineMacro("__STDC_ISO_10646__", "201206L"); in getOSDefines()
198 Builder.defineMacro("__STDC_UTF_16__"); in getOSDefines()
199 Builder.defineMacro("__STDC_UTF_32__"); in getOSDefines()
254 Builder.defineMacro("__DragonFly__"); in getOSDefines()
255 Builder.defineMacro("__DragonFly_cc_version", "100001"); in getOSDefines()
256 Builder.defineMacro("__ELF__"); in getOSDefines()
257 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
258 Builder.defineMacro("__tune_i386__"); in getOSDefines()
288 Builder.defineMacro("__FreeBSD__", Twine(Release)); in getOSDefines()
289 Builder.defineMacro("__FreeBSD_cc_version", Twine(Release * 100000U + 1U)); in getOSDefines()
290 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
292 Builder.defineMacro("__ELF__"); in getOSDefines()
303 Builder.defineMacro("__STDC_MB_MIGHT_NEQ_WC__", "1"); in getOSDefines()
338 Builder.defineMacro("__FreeBSD_kernel__"); in getOSDefines()
339 Builder.defineMacro("__GLIBC__"); in getOSDefines()
340 Builder.defineMacro("__ELF__"); in getOSDefines()
342 Builder.defineMacro("_REENTRANT"); in getOSDefines()
344 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
361 Builder.defineMacro("__minix", "3"); in getOSDefines()
362 Builder.defineMacro("_EM_WSIZE", "4"); in getOSDefines()
363 Builder.defineMacro("_EM_PSIZE", "4"); in getOSDefines()
364 Builder.defineMacro("_EM_SSIZE", "2"); in getOSDefines()
365 Builder.defineMacro("_EM_LSIZE", "4"); in getOSDefines()
366 Builder.defineMacro("_EM_FSIZE", "4"); in getOSDefines()
367 Builder.defineMacro("_EM_DSIZE", "8"); in getOSDefines()
368 Builder.defineMacro("__ELF__"); in getOSDefines()
386 Builder.defineMacro("__gnu_linux__"); in getOSDefines()
387 Builder.defineMacro("__ELF__"); in getOSDefines()
389 Builder.defineMacro("__ANDROID__", "1"); in getOSDefines()
396 Builder.defineMacro("_REENTRANT"); in getOSDefines()
398 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
428 Builder.defineMacro("__NetBSD__"); in getOSDefines()
429 Builder.defineMacro("__unix__"); in getOSDefines()
430 Builder.defineMacro("__ELF__"); in getOSDefines()
432 Builder.defineMacro("_POSIX_THREADS"); in getOSDefines()
441 Builder.defineMacro("__ARM_DWARF_EH__"); in getOSDefines()
460 Builder.defineMacro("__OpenBSD__"); in getOSDefines()
462 Builder.defineMacro("__ELF__"); in getOSDefines()
464 Builder.defineMacro("_REENTRANT"); in getOSDefines()
497 Builder.defineMacro("__Bitrig__"); in getOSDefines()
499 Builder.defineMacro("__ELF__"); in getOSDefines()
501 Builder.defineMacro("_REENTRANT"); in getOSDefines()
510 Builder.defineMacro("__ARM_DWARF_EH__"); in getOSDefines()
528 Builder.defineMacro("PSP"); in getOSDefines()
529 Builder.defineMacro("_PSP"); in getOSDefines()
530 Builder.defineMacro("__psp__"); in getOSDefines()
531 Builder.defineMacro("__ELF__"); in getOSDefines()
546 Builder.defineMacro("__PPC__"); in getOSDefines()
547 Builder.defineMacro("__PPU__"); in getOSDefines()
548 Builder.defineMacro("__CELLOS_LV2__"); in getOSDefines()
549 Builder.defineMacro("__ELF__"); in getOSDefines()
550 Builder.defineMacro("__LP32__"); in getOSDefines()
551 Builder.defineMacro("_ARCH_PPC64"); in getOSDefines()
552 Builder.defineMacro("__powerpc64__"); in getOSDefines()
571 Builder.defineMacro("__FreeBSD__", "9"); in getOSDefines()
572 Builder.defineMacro("__FreeBSD_cc_version", "900001"); in getOSDefines()
573 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
575 Builder.defineMacro("__ELF__"); in getOSDefines()
576 Builder.defineMacro("__PS4__"); in getOSDefines()
601 Builder.defineMacro("__ELF__"); in getOSDefines()
602 Builder.defineMacro("__svr4__"); in getOSDefines()
603 Builder.defineMacro("__SVR4"); in getOSDefines()
609 Builder.defineMacro("_XOPEN_SOURCE", "600"); in getOSDefines()
611 Builder.defineMacro("_XOPEN_SOURCE", "500"); in getOSDefines()
613 Builder.defineMacro("__C99FEATURES__"); in getOSDefines()
614 Builder.defineMacro("_LARGEFILE_SOURCE"); in getOSDefines()
615 Builder.defineMacro("_LARGEFILE64_SOURCE"); in getOSDefines()
616 Builder.defineMacro("__EXTENSIONS__"); in getOSDefines()
617 Builder.defineMacro("_REENTRANT"); in getOSDefines()
633 Builder.defineMacro("_WIN32"); in getOSDefines()
639 Builder.defineMacro("_CPPRTTI"); in getVisualStudioDefines()
642 Builder.defineMacro("_CPPUNWIND"); in getVisualStudioDefines()
646 Builder.defineMacro("_CHAR_UNSIGNED"); in getVisualStudioDefines()
651 Builder.defineMacro("_MT"); in getVisualStudioDefines()
654 Builder.defineMacro("_MSC_VER", in getVisualStudioDefines()
656 Builder.defineMacro("_MSC_FULL_VER", Twine(Opts.MSCompatibilityVersion)); in getVisualStudioDefines()
658 Builder.defineMacro("_MSC_BUILD", Twine(1)); in getVisualStudioDefines()
661 Builder.defineMacro("_HAS_CHAR16_T_LANGUAGE_SUPPORT", Twine(1)); in getVisualStudioDefines()
665 Builder.defineMacro("_MSC_EXTENSIONS"); in getVisualStudioDefines()
668 Builder.defineMacro("_RVALUE_REFERENCES_V2_SUPPORTED"); in getVisualStudioDefines()
669 Builder.defineMacro("_RVALUE_REFERENCES_SUPPORTED"); in getVisualStudioDefines()
670 Builder.defineMacro("_NATIVE_NULLPTR_SUPPORTED"); in getVisualStudioDefines()
674 Builder.defineMacro("_INTEGRAL_MAX_BITS", "64"); in getVisualStudioDefines()
688 Builder.defineMacro("_REENTRANT"); in getOSDefines()
690 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
693 Builder.defineMacro("__ELF__"); in getOSDefines()
694 Builder.defineMacro("__native_client__"); in getOSDefines()
1066 Builder.defineMacro("__ppc__"); in getTargetDefines()
1067 Builder.defineMacro("__PPC__"); in getTargetDefines()
1068 Builder.defineMacro("_ARCH_PPC"); in getTargetDefines()
1069 Builder.defineMacro("__powerpc__"); in getTargetDefines()
1070 Builder.defineMacro("__POWERPC__"); in getTargetDefines()
1072 Builder.defineMacro("_ARCH_PPC64"); in getTargetDefines()
1073 Builder.defineMacro("__powerpc64__"); in getTargetDefines()
1074 Builder.defineMacro("__ppc64__"); in getTargetDefines()
1075 Builder.defineMacro("__PPC64__"); in getTargetDefines()
1080 Builder.defineMacro("_LITTLE_ENDIAN"); in getTargetDefines()
1084 Builder.defineMacro("_BIG_ENDIAN"); in getTargetDefines()
1089 Builder.defineMacro("_CALL_ELF", "1"); in getTargetDefines()
1091 Builder.defineMacro("_CALL_ELF", "2"); in getTargetDefines()
1094 Builder.defineMacro("__NATURAL_ALIGNMENT__"); in getTargetDefines()
1095 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
1099 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
1102 Builder.defineMacro("__VEC__", "10206"); in getTargetDefines()
1103 Builder.defineMacro("__ALTIVEC__"); in getTargetDefines()
1163 Builder.defineMacro(Twine("_ARCH_", StringRef(CPU).upper())); in getTargetDefines()
1165 Builder.defineMacro("_ARCH_PPCGR"); in getTargetDefines()
1167 Builder.defineMacro("_ARCH_PPCSQ"); in getTargetDefines()
1169 Builder.defineMacro("_ARCH_440"); in getTargetDefines()
1171 Builder.defineMacro("_ARCH_603"); in getTargetDefines()
1173 Builder.defineMacro("_ARCH_604"); in getTargetDefines()
1175 Builder.defineMacro("_ARCH_PWR4"); in getTargetDefines()
1177 Builder.defineMacro("_ARCH_PWR5"); in getTargetDefines()
1179 Builder.defineMacro("_ARCH_PWR5X"); in getTargetDefines()
1181 Builder.defineMacro("_ARCH_PWR6"); in getTargetDefines()
1183 Builder.defineMacro("_ARCH_PWR6X"); in getTargetDefines()
1185 Builder.defineMacro("_ARCH_PWR7"); in getTargetDefines()
1187 Builder.defineMacro("_ARCH_PWR8"); in getTargetDefines()
1189 Builder.defineMacro("_ARCH_A2"); in getTargetDefines()
1191 Builder.defineMacro("_ARCH_A2Q"); in getTargetDefines()
1192 Builder.defineMacro("_ARCH_QP"); in getTargetDefines()
1196 Builder.defineMacro("__bg__"); in getTargetDefines()
1197 Builder.defineMacro("__THW_BLUEGENE__"); in getTargetDefines()
1198 Builder.defineMacro("__bgq__"); in getTargetDefines()
1199 Builder.defineMacro("__TOS_BGQ__"); in getTargetDefines()
1203 Builder.defineMacro("__VSX__"); in getTargetDefines()
1205 Builder.defineMacro("__POWER8_VECTOR__"); in getTargetDefines()
1207 Builder.defineMacro("__CRYPTO__"); in getTargetDefines()
1209 Builder.defineMacro("__HTM__"); in getTargetDefines()
1534 Builder.defineMacro("__PTX__"); in getTargetDefines()
1535 Builder.defineMacro("__NVPTX__"); in getTargetDefines()
1558 Builder.defineMacro("__CUDA_ARCH__", CUDAArchCode); in getTargetDefines()
1753 Builder.defineMacro("__R600__"); in getTargetDefines()
1755 Builder.defineMacro("cl_khr_fp64"); in getTargetDefines()
2938 Builder.defineMacro("__amd64__"); in getTargetDefines()
2939 Builder.defineMacro("__amd64"); in getTargetDefines()
2940 Builder.defineMacro("__x86_64"); in getTargetDefines()
2941 Builder.defineMacro("__x86_64__"); in getTargetDefines()
2943 Builder.defineMacro("__x86_64h"); in getTargetDefines()
2944 Builder.defineMacro("__x86_64h__"); in getTargetDefines()
2958 Builder.defineMacro("__tune_i386__"); in getTargetDefines()
2967 Builder.defineMacro("__pentium_mmx__"); in getTargetDefines()
2968 Builder.defineMacro("__tune_pentium_mmx__"); in getTargetDefines()
2978 Builder.defineMacro("__tune_pentium3__"); in getTargetDefines()
2982 Builder.defineMacro("__tune_pentium2__"); in getTargetDefines()
2985 Builder.defineMacro("__tune_i686__"); in getTargetDefines()
2986 Builder.defineMacro("__tune_pentiumpro__"); in getTargetDefines()
2989 Builder.defineMacro("__i686"); in getTargetDefines()
2990 Builder.defineMacro("__i686__"); in getTargetDefines()
2992 Builder.defineMacro("__pentiumpro"); in getTargetDefines()
2993 Builder.defineMacro("__pentiumpro__"); in getTargetDefines()
3036 Builder.defineMacro("__k6_2__"); in getTargetDefines()
3037 Builder.defineMacro("__tune_k6_2__"); in getTargetDefines()
3044 Builder.defineMacro("__k6_3__"); in getTargetDefines()
3045 Builder.defineMacro("__tune_k6_3__"); in getTargetDefines()
3058 Builder.defineMacro("__athlon_sse__"); in getTargetDefines()
3059 Builder.defineMacro("__tune_athlon_sse__"); in getTargetDefines()
3099 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
3104 Builder.defineMacro("__NO_MATH_INLINES"); in getTargetDefines()
3107 Builder.defineMacro("__AES__"); in getTargetDefines()
3110 Builder.defineMacro("__PCLMUL__"); in getTargetDefines()
3113 Builder.defineMacro("__LZCNT__"); in getTargetDefines()
3116 Builder.defineMacro("__RDRND__"); in getTargetDefines()
3119 Builder.defineMacro("__FSGSBASE__"); in getTargetDefines()
3122 Builder.defineMacro("__BMI__"); in getTargetDefines()
3125 Builder.defineMacro("__BMI2__"); in getTargetDefines()
3128 Builder.defineMacro("__POPCNT__"); in getTargetDefines()
3131 Builder.defineMacro("__RTM__"); in getTargetDefines()
3134 Builder.defineMacro("__PRFCHW__"); in getTargetDefines()
3137 Builder.defineMacro("__RDSEED__"); in getTargetDefines()
3140 Builder.defineMacro("__ADX__"); in getTargetDefines()
3143 Builder.defineMacro("__TBM__"); in getTargetDefines()
3147 Builder.defineMacro("__XOP__"); in getTargetDefines()
3149 Builder.defineMacro("__FMA4__"); in getTargetDefines()
3151 Builder.defineMacro("__SSE4A__"); in getTargetDefines()
3157 Builder.defineMacro("__FMA__"); in getTargetDefines()
3160 Builder.defineMacro("__F16C__"); in getTargetDefines()
3163 Builder.defineMacro("__AVX512CD__"); in getTargetDefines()
3165 Builder.defineMacro("__AVX512ER__"); in getTargetDefines()
3167 Builder.defineMacro("__AVX512PF__"); in getTargetDefines()
3169 Builder.defineMacro("__AVX512DQ__"); in getTargetDefines()
3171 Builder.defineMacro("__AVX512BW__"); in getTargetDefines()
3173 Builder.defineMacro("__AVX512VL__"); in getTargetDefines()
3176 Builder.defineMacro("__SHA__"); in getTargetDefines()
3179 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16"); in getTargetDefines()
3184 Builder.defineMacro("__AVX512F__"); in getTargetDefines()
3186 Builder.defineMacro("__AVX2__"); in getTargetDefines()
3188 Builder.defineMacro("__AVX__"); in getTargetDefines()
3190 Builder.defineMacro("__SSE4_2__"); in getTargetDefines()
3192 Builder.defineMacro("__SSE4_1__"); in getTargetDefines()
3194 Builder.defineMacro("__SSSE3__"); in getTargetDefines()
3196 Builder.defineMacro("__SSE3__"); in getTargetDefines()
3198 Builder.defineMacro("__SSE2__"); in getTargetDefines()
3199 Builder.defineMacro("__SSE2_MATH__"); // -mfp-math=sse always implied. in getTargetDefines()
3201 Builder.defineMacro("__SSE__"); in getTargetDefines()
3202 Builder.defineMacro("__SSE_MATH__"); // -mfp-math=sse always implied. in getTargetDefines()
3217 Builder.defineMacro("_M_IX86_FP", Twine(2)); in getTargetDefines()
3220 Builder.defineMacro("_M_IX86_FP", Twine(1)); in getTargetDefines()
3223 Builder.defineMacro("_M_IX86_FP", Twine(0)); in getTargetDefines()
3230 Builder.defineMacro("__3dNOW_A__"); in getTargetDefines()
3232 Builder.defineMacro("__3dNOW__"); in getTargetDefines()
3234 Builder.defineMacro("__MMX__"); in getTargetDefines()
3240 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
3241 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
3242 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
3245 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
3558 Builder.defineMacro("_M_IX86", "600"); in getTargetDefines()
3564 Builder.defineMacro("__MSVCRT__"); in addMinGWDefines()
3565 Builder.defineMacro("__MINGW32__"); in addMinGWDefines()
3571 Builder.defineMacro("__declspec", "__declspec"); in addMinGWDefines()
3573 Builder.defineMacro("__declspec(a)", "__attribute__((a))"); in addMinGWDefines()
3584 Builder.defineMacro(Twine("_") + CC, GCCSpelling); in addMinGWDefines()
3585 Builder.defineMacro(Twine("__") + CC, GCCSpelling); in addMinGWDefines()
3601 Builder.defineMacro("_X86_"); in getTargetDefines()
3619 Builder.defineMacro("_X86_"); in getTargetDefines()
3620 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
3621 Builder.defineMacro("__CYGWIN32__"); in getTargetDefines()
3624 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
3642 Builder.defineMacro("__INTEL__"); in getTargetDefines()
3643 Builder.defineMacro("__HAIKU__"); in getTargetDefines()
3655 Builder.defineMacro("__rtems__"); in getOSDefines()
3656 Builder.defineMacro("__ELF__"); in getOSDefines()
3694 Builder.defineMacro("__INTEL__"); in getTargetDefines()
3695 Builder.defineMacro("__rtems__"); in getTargetDefines()
3779 Builder.defineMacro("_WIN64"); in getTargetDefines()
3815 Builder.defineMacro("_M_X64"); in getTargetDefines()
3816 Builder.defineMacro("_M_AMD64"); in getTargetDefines()
3829 Builder.defineMacro("__MINGW64__"); in getTargetDefines()
3834 Builder.defineMacro("__SEH__"); in getTargetDefines()
4339 Builder.defineMacro("__arm"); in getTargetDefines()
4340 Builder.defineMacro("__arm__"); in getTargetDefines()
4343 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
4349 Builder.defineMacro("__ARM_ARCH_" + CPUArch + "__"); in getTargetDefines()
4356 Builder.defineMacro("__ARM_ARCH", CPUArch.substr(0, 1)); in getTargetDefines()
4358 Builder.defineMacro("__ARM_FEATURE_NUMERIC_MAXMIN"); in getTargetDefines()
4359 Builder.defineMacro("__ARM_FEATURE_DIRECTED_ROUNDING"); in getTargetDefines()
4366 Builder.defineMacro("__ARM_ARCH_ISA_ARM", "1"); in getTargetDefines()
4372 Builder.defineMacro("__ARM_ARCH_ISA_THUMB", "2"); in getTargetDefines()
4374 Builder.defineMacro("__ARM_ARCH_ISA_THUMB", "1"); in getTargetDefines()
4378 Builder.defineMacro("__ARM_32BIT_STATE", "1"); in getTargetDefines()
4384 Builder.defineMacro("__ARM_ARCH_PROFILE", "'" + CPUProfile + "'"); in getTargetDefines()
4388 Builder.defineMacro("__ARM_FP", "0x" + llvm::utohexstr(HW_FP)); in getTargetDefines()
4391 Builder.defineMacro("__ARM_ACLE", "200"); in getTargetDefines()
4399 Builder.defineMacro("__THUMB_INTERWORK__"); in getTargetDefines()
4405 Builder.defineMacro("__ARM_EABI__"); in getTargetDefines()
4406 Builder.defineMacro("__ARM_PCS", "1"); in getTargetDefines()
4409 Builder.defineMacro("__ARM_PCS_VFP", "1"); in getTargetDefines()
4413 Builder.defineMacro("__SOFTFP__"); in getTargetDefines()
4416 Builder.defineMacro("__XSCALE__"); in getTargetDefines()
4419 Builder.defineMacro("__THUMBEL__"); in getTargetDefines()
4420 Builder.defineMacro("__thumb__"); in getTargetDefines()
4422 Builder.defineMacro("__thumb2__"); in getTargetDefines()
4425 Builder.defineMacro("__ARM_ARCH_EXT_IDIV__", "1"); in getTargetDefines()
4428 Builder.defineMacro("__APCS_32__"); in getTargetDefines()
4431 Builder.defineMacro("__VFP_FP__"); in getTargetDefines()
4433 Builder.defineMacro("__ARM_VFPV2__"); in getTargetDefines()
4435 Builder.defineMacro("__ARM_VFPV3__"); in getTargetDefines()
4437 Builder.defineMacro("__ARM_VFPV4__"); in getTargetDefines()
4445 Builder.defineMacro("__ARM_NEON"); in getTargetDefines()
4446 Builder.defineMacro("__ARM_NEON__"); in getTargetDefines()
4449 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", in getTargetDefines()
4452 Builder.defineMacro("__ARM_SIZEOF_MINIMAL_ENUM", in getTargetDefines()
4456 Builder.defineMacro("__ARM_FEATURE_CRC32"); in getTargetDefines()
4459 Builder.defineMacro("__ARM_FEATURE_CRYPTO"); in getTargetDefines()
4462 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
4463 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
4464 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
4465 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
4473 Builder.defineMacro("__ARM_FEATURE_DSP"); in getTargetDefines()
4670 Builder.defineMacro("__ARMEL__"); in getTargetDefines()
4681 Builder.defineMacro("__ARMEB__"); in getTargetDefines()
4682 Builder.defineMacro("__ARM_BIG_ENDIAN"); in getTargetDefines()
4702 Builder.defineMacro("_M_ARM_NT", "1"); in getVisualStudioDefines()
4703 Builder.defineMacro("_M_ARMT", "_M_ARM"); in getVisualStudioDefines()
4704 Builder.defineMacro("_M_THUMB", "_M_ARM"); in getVisualStudioDefines()
4710 Builder.defineMacro("_M_ARM", Triple.getArchName().substr(Offset)); in getVisualStudioDefines()
4714 Builder.defineMacro("_M_ARM_FP", "31"); in getVisualStudioDefines()
4855 Builder.defineMacro("__aarch64__"); in getTargetDefines()
4858 Builder.defineMacro("_LP64"); in getTargetDefines()
4859 Builder.defineMacro("__LP64__"); in getTargetDefines()
4862 Builder.defineMacro("__ARM_ACLE", "200"); in getTargetDefines()
4863 Builder.defineMacro("__ARM_ARCH", "8"); in getTargetDefines()
4864 Builder.defineMacro("__ARM_ARCH_PROFILE", "'A'"); in getTargetDefines()
4866 Builder.defineMacro("__ARM_64BIT_STATE"); in getTargetDefines()
4867 Builder.defineMacro("__ARM_PCS_AAPCS64"); in getTargetDefines()
4868 Builder.defineMacro("__ARM_ARCH_ISA_A64"); in getTargetDefines()
4870 Builder.defineMacro("__ARM_FEATURE_UNALIGNED"); in getTargetDefines()
4871 Builder.defineMacro("__ARM_FEATURE_CLZ"); in getTargetDefines()
4872 Builder.defineMacro("__ARM_FEATURE_FMA"); in getTargetDefines()
4873 Builder.defineMacro("__ARM_FEATURE_DIV"); in getTargetDefines()
4874 Builder.defineMacro("__ARM_FEATURE_IDIV"); // As specified in ACLE in getTargetDefines()
4875 Builder.defineMacro("__ARM_FEATURE_DIV"); // For backwards compatibility in getTargetDefines()
4876 Builder.defineMacro("__ARM_FEATURE_NUMERIC_MAXMIN"); in getTargetDefines()
4877 Builder.defineMacro("__ARM_FEATURE_DIRECTED_ROUNDING"); in getTargetDefines()
4879 Builder.defineMacro("__ARM_ALIGN_MAX_STACK_PWR", "4"); in getTargetDefines()
4882 Builder.defineMacro("__ARM_FP", "0xe"); in getTargetDefines()
4886 Builder.defineMacro("__ARM_FP16_FORMAT_IEEE"); in getTargetDefines()
4889 Builder.defineMacro("__ARM_FP_FAST"); in getTargetDefines()
4892 Builder.defineMacro("__ARM_FP_FENV_ROUNDING"); in getTargetDefines()
4894 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", Opts.ShortWChar ? "2" : "4"); in getTargetDefines()
4896 Builder.defineMacro("__ARM_SIZEOF_MINIMAL_ENUM", in getTargetDefines()
4900 Builder.defineMacro("__ARM_NEON"); in getTargetDefines()
4902 Builder.defineMacro("__ARM_NEON_FP", "0xe"); in getTargetDefines()
4906 Builder.defineMacro("__ARM_FEATURE_CRC32"); in getTargetDefines()
4909 Builder.defineMacro("__ARM_FEATURE_CRYPTO"); in getTargetDefines()
5108 Builder.defineMacro("__AARCH64EL__"); in getTargetDefines()
5124 Builder.defineMacro("__AARCH64EB__"); in getTargetDefines()
5125 Builder.defineMacro("__AARCH_BIG_ENDIAN"); in getTargetDefines()
5126 Builder.defineMacro("__ARM_BIG_ENDIAN"); in getTargetDefines()
5135 Builder.defineMacro("__AARCH64_SIMD__"); in getOSDefines()
5136 Builder.defineMacro("__ARM64_ARCH_8__"); in getOSDefines()
5137 Builder.defineMacro("__ARM_NEON__"); in getOSDefines()
5138 Builder.defineMacro("__LITTLE_ENDIAN__"); in getOSDefines()
5139 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getOSDefines()
5140 Builder.defineMacro("__arm64", "1"); in getOSDefines()
5141 Builder.defineMacro("__arm64__", "1"); in getOSDefines()
5227 Builder.defineMacro("qdsp6"); in getTargetDefines()
5228 Builder.defineMacro("__qdsp6", "1"); in getTargetDefines()
5229 Builder.defineMacro("__qdsp6__", "1"); in getTargetDefines()
5231 Builder.defineMacro("hexagon"); in getTargetDefines()
5232 Builder.defineMacro("__hexagon", "1"); in getTargetDefines()
5233 Builder.defineMacro("__hexagon__", "1"); in getTargetDefines()
5236 Builder.defineMacro("__HEXAGON_V1__"); in getTargetDefines()
5237 Builder.defineMacro("__HEXAGON_ARCH__", "1"); in getTargetDefines()
5239 Builder.defineMacro("__QDSP6_V1__"); in getTargetDefines()
5240 Builder.defineMacro("__QDSP6_ARCH__", "1"); in getTargetDefines()
5244 Builder.defineMacro("__HEXAGON_V2__"); in getTargetDefines()
5245 Builder.defineMacro("__HEXAGON_ARCH__", "2"); in getTargetDefines()
5247 Builder.defineMacro("__QDSP6_V2__"); in getTargetDefines()
5248 Builder.defineMacro("__QDSP6_ARCH__", "2"); in getTargetDefines()
5252 Builder.defineMacro("__HEXAGON_V3__"); in getTargetDefines()
5253 Builder.defineMacro("__HEXAGON_ARCH__", "3"); in getTargetDefines()
5255 Builder.defineMacro("__QDSP6_V3__"); in getTargetDefines()
5256 Builder.defineMacro("__QDSP6_ARCH__", "3"); in getTargetDefines()
5260 Builder.defineMacro("__HEXAGON_V4__"); in getTargetDefines()
5261 Builder.defineMacro("__HEXAGON_ARCH__", "4"); in getTargetDefines()
5263 Builder.defineMacro("__QDSP6_V4__"); in getTargetDefines()
5264 Builder.defineMacro("__QDSP6_ARCH__", "4"); in getTargetDefines()
5268 Builder.defineMacro("__HEXAGON_V5__"); in getTargetDefines()
5269 Builder.defineMacro("__HEXAGON_ARCH__", "5"); in getTargetDefines()
5271 Builder.defineMacro("__QDSP6_V5__"); in getTargetDefines()
5272 Builder.defineMacro("__QDSP6_ARCH__", "5"); in getTargetDefines()
5332 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
5335 Builder.defineMacro("SOFT_FLOAT", "1"); in getTargetDefines()
5441 Builder.defineMacro("__sparcv8"); in getTargetDefines()
5472 Builder.defineMacro("__sparcv9"); in getTargetDefines()
5473 Builder.defineMacro("__arch64__"); in getTargetDefines()
5476 Builder.defineMacro("__sparc64__"); in getTargetDefines()
5477 Builder.defineMacro("__sparc_v9__"); in getTargetDefines()
5478 Builder.defineMacro("__sparcv9__"); in getTargetDefines()
5532 Builder.defineMacro("__s390__"); in getTargetDefines()
5533 Builder.defineMacro("__s390x__"); in getTargetDefines()
5534 Builder.defineMacro("__zarch__"); in getTargetDefines()
5535 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
5537 Builder.defineMacro("__HTM__"); in getTargetDefines()
5663 Builder.defineMacro("MSP430"); in getTargetDefines()
5664 Builder.defineMacro("__MSP430__"); in getTargetDefines()
5770 Builder.defineMacro("__TCE__"); in getTargetDefines()
5771 Builder.defineMacro("__TCE_V1__"); in getTargetDefines()
5871 Builder.defineMacro("__mips__"); in getTargetDefines()
5872 Builder.defineMacro("_mips"); in getTargetDefines()
5874 Builder.defineMacro("mips"); in getTargetDefines()
5876 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
5880 Builder.defineMacro("__mips_hard_float", Twine(1)); in getTargetDefines()
5883 Builder.defineMacro("__mips_soft_float", Twine(1)); in getTargetDefines()
5888 Builder.defineMacro("__mips_single_float", Twine(1)); in getTargetDefines()
5890 Builder.defineMacro("__mips_fpr", HasFP64 ? Twine(64) : Twine(32)); in getTargetDefines()
5891 Builder.defineMacro("_MIPS_FPSET", in getTargetDefines()
5895 Builder.defineMacro("__mips16", Twine(1)); in getTargetDefines()
5898 Builder.defineMacro("__mips_micromips", Twine(1)); in getTargetDefines()
5901 Builder.defineMacro("__mips_nan2008", Twine(1)); in getTargetDefines()
5907 Builder.defineMacro("__mips_dsp_rev", Twine(1)); in getTargetDefines()
5908 Builder.defineMacro("__mips_dsp", Twine(1)); in getTargetDefines()
5911 Builder.defineMacro("__mips_dsp_rev", Twine(2)); in getTargetDefines()
5912 Builder.defineMacro("__mips_dspr2", Twine(1)); in getTargetDefines()
5913 Builder.defineMacro("__mips_dsp", Twine(1)); in getTargetDefines()
5918 Builder.defineMacro("__mips_msa", Twine(1)); in getTargetDefines()
5920 Builder.defineMacro("_MIPS_SZPTR", Twine(getPointerWidth(0))); in getTargetDefines()
5921 Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth())); in getTargetDefines()
5922 Builder.defineMacro("_MIPS_SZLONG", Twine(getLongWidth())); in getTargetDefines()
5924 Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\""); in getTargetDefines()
5925 Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper()); in getTargetDefines()
6132 Builder.defineMacro("__mips", "32"); in getTargetDefines()
6133 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS32"); in getTargetDefines()
6137 Builder.defineMacro("__mips_isa_rev", "1"); in getTargetDefines()
6139 Builder.defineMacro("__mips_isa_rev", "2"); in getTargetDefines()
6141 Builder.defineMacro("__mips_isa_rev", "3"); in getTargetDefines()
6143 Builder.defineMacro("__mips_isa_rev", "5"); in getTargetDefines()
6145 Builder.defineMacro("__mips_isa_rev", "6"); in getTargetDefines()
6148 Builder.defineMacro("__mips_o32"); in getTargetDefines()
6149 Builder.defineMacro("_ABIO32", "1"); in getTargetDefines()
6150 Builder.defineMacro("_MIPS_SIM", "_ABIO32"); in getTargetDefines()
6153 Builder.defineMacro("__mips_eabi"); in getTargetDefines()
6209 Builder.defineMacro("_MIPSEB"); in getTargetDefines()
6227 Builder.defineMacro("_MIPSEL"); in getTargetDefines()
6283 Builder.defineMacro("__mips", "64"); in getTargetDefines()
6284 Builder.defineMacro("__mips64"); in getTargetDefines()
6285 Builder.defineMacro("__mips64__"); in getTargetDefines()
6286 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS64"); in getTargetDefines()
6290 Builder.defineMacro("__mips_isa_rev", "1"); in getTargetDefines()
6292 Builder.defineMacro("__mips_isa_rev", "2"); in getTargetDefines()
6294 Builder.defineMacro("__mips_isa_rev", "3"); in getTargetDefines()
6296 Builder.defineMacro("__mips_isa_rev", "5"); in getTargetDefines()
6298 Builder.defineMacro("__mips_isa_rev", "6"); in getTargetDefines()
6301 Builder.defineMacro("__mips_n32"); in getTargetDefines()
6302 Builder.defineMacro("_ABIN32", "2"); in getTargetDefines()
6303 Builder.defineMacro("_MIPS_SIM", "_ABIN32"); in getTargetDefines()
6306 Builder.defineMacro("__mips_n64"); in getTargetDefines()
6307 Builder.defineMacro("_ABI64", "3"); in getTargetDefines()
6308 Builder.defineMacro("_MIPS_SIM", "_ABI64"); in getTargetDefines()
6370 Builder.defineMacro("_MIPSEB"); in getTargetDefines()
6391 Builder.defineMacro("_MIPSEL"); in getTargetDefines()
6419 Builder.defineMacro("__le32__"); in getArchDefines()
6420 Builder.defineMacro("__pnacl__"); in getArchDefines()
6478 Builder.defineMacro("__ELF__"); in getTargetDefines()
6628 Builder.defineMacro("__XS1B__"); in getTargetDefines()