Lines Matching refs:defineMacro
52 Builder.defineMacro(MacroName); in DefineStd()
55 Builder.defineMacro("__" + MacroName); in DefineStd()
58 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
63 Builder.defineMacro("__" + CPUName); in defineCPUMacros()
64 Builder.defineMacro("__" + CPUName + "__"); in defineCPUMacros()
66 Builder.defineMacro("__tune_" + CPUName + "__"); in defineCPUMacros()
99 Builder.defineMacro("__CloudABI__"); in getOSDefines()
100 Builder.defineMacro("__ELF__"); in getOSDefines()
103 Builder.defineMacro("__STDC_ISO_10646__", "201206L"); in getOSDefines()
104 Builder.defineMacro("__STDC_UTF_16__"); in getOSDefines()
105 Builder.defineMacro("__STDC_UTF_32__"); in getOSDefines()
117 Builder.defineMacro("__APPLE_CC__", "6000"); in getDarwinDefines()
118 Builder.defineMacro("__APPLE__"); in getDarwinDefines()
119 Builder.defineMacro("OBJC_NEW_PROPERTIES"); in getDarwinDefines()
123 Builder.defineMacro("_FORTIFY_SOURCE", "0"); in getDarwinDefines()
128 Builder.defineMacro("__weak", "__attribute__((objc_gc(weak)))"); in getDarwinDefines()
129 Builder.defineMacro("__strong", ""); in getDarwinDefines()
130 Builder.defineMacro("__unsafe_unretained", ""); in getDarwinDefines()
134 Builder.defineMacro("__STATIC__"); in getDarwinDefines()
136 Builder.defineMacro("__DYNAMIC__"); in getDarwinDefines()
139 Builder.defineMacro("_REENTRANT"); in getDarwinDefines()
170 Builder.defineMacro("__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
172 Builder.defineMacro("__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__", in getDarwinDefines()
184 Builder.defineMacro("__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
208 Builder.defineMacro("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
213 Builder.defineMacro("__MACH__"); in getDarwinDefines()
217 Builder.defineMacro("__ARM_DWARF_EH__"); in getDarwinDefines()
292 Builder.defineMacro("__DragonFly__"); in getOSDefines()
293 Builder.defineMacro("__DragonFly_cc_version", "100001"); in getOSDefines()
294 Builder.defineMacro("__ELF__"); in getOSDefines()
295 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
296 Builder.defineMacro("__tune_i386__"); in getOSDefines()
331 Builder.defineMacro("__FreeBSD__", Twine(Release)); in getOSDefines()
332 Builder.defineMacro("__FreeBSD_cc_version", Twine(CCVersion)); in getOSDefines()
333 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
335 Builder.defineMacro("__ELF__"); in getOSDefines()
346 Builder.defineMacro("__STDC_MB_MIGHT_NEQ_WC__", "1"); in getOSDefines()
380 Builder.defineMacro("__FreeBSD_kernel__"); in getOSDefines()
381 Builder.defineMacro("__GLIBC__"); in getOSDefines()
382 Builder.defineMacro("__ELF__"); in getOSDefines()
384 Builder.defineMacro("_REENTRANT"); in getOSDefines()
386 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
400 Builder.defineMacro("__HAIKU__"); in getOSDefines()
401 Builder.defineMacro("__ELF__"); in getOSDefines()
424 Builder.defineMacro("__minix", "3"); in getOSDefines()
425 Builder.defineMacro("_EM_WSIZE", "4"); in getOSDefines()
426 Builder.defineMacro("_EM_PSIZE", "4"); in getOSDefines()
427 Builder.defineMacro("_EM_SSIZE", "2"); in getOSDefines()
428 Builder.defineMacro("_EM_LSIZE", "4"); in getOSDefines()
429 Builder.defineMacro("_EM_FSIZE", "4"); in getOSDefines()
430 Builder.defineMacro("_EM_DSIZE", "8"); in getOSDefines()
431 Builder.defineMacro("__ELF__"); in getOSDefines()
448 Builder.defineMacro("__gnu_linux__"); in getOSDefines()
449 Builder.defineMacro("__ELF__"); in getOSDefines()
451 Builder.defineMacro("__ANDROID__", "1"); in getOSDefines()
458 Builder.defineMacro("_REENTRANT"); in getOSDefines()
460 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
462 Builder.defineMacro("__FLOAT128__"); in getOSDefines()
497 Builder.defineMacro("__NetBSD__"); in getOSDefines()
498 Builder.defineMacro("__unix__"); in getOSDefines()
499 Builder.defineMacro("__ELF__"); in getOSDefines()
501 Builder.defineMacro("_POSIX_THREADS"); in getOSDefines()
510 Builder.defineMacro("__ARM_DWARF_EH__"); in getOSDefines()
529 Builder.defineMacro("__OpenBSD__"); in getOSDefines()
531 Builder.defineMacro("__ELF__"); in getOSDefines()
533 Builder.defineMacro("_REENTRANT"); in getOSDefines()
566 Builder.defineMacro("__Bitrig__"); in getOSDefines()
568 Builder.defineMacro("__ELF__"); in getOSDefines()
570 Builder.defineMacro("_REENTRANT"); in getOSDefines()
579 Builder.defineMacro("__ARM_DWARF_EH__"); in getOSDefines()
597 Builder.defineMacro("PSP"); in getOSDefines()
598 Builder.defineMacro("_PSP"); in getOSDefines()
599 Builder.defineMacro("__psp__"); in getOSDefines()
600 Builder.defineMacro("__ELF__"); in getOSDefines()
613 Builder.defineMacro("__PPC__"); in getOSDefines()
614 Builder.defineMacro("__PPU__"); in getOSDefines()
615 Builder.defineMacro("__CELLOS_LV2__"); in getOSDefines()
616 Builder.defineMacro("__ELF__"); in getOSDefines()
617 Builder.defineMacro("__LP32__"); in getOSDefines()
618 Builder.defineMacro("_ARCH_PPC64"); in getOSDefines()
619 Builder.defineMacro("__powerpc64__"); in getOSDefines()
638 Builder.defineMacro("__FreeBSD__", "9"); in getOSDefines()
639 Builder.defineMacro("__FreeBSD_cc_version", "900001"); in getOSDefines()
640 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
642 Builder.defineMacro("__ELF__"); in getOSDefines()
643 Builder.defineMacro("__ORBIS__"); in getOSDefines()
674 Builder.defineMacro("__ELF__"); in getOSDefines()
675 Builder.defineMacro("__svr4__"); in getOSDefines()
676 Builder.defineMacro("__SVR4"); in getOSDefines()
682 Builder.defineMacro("_XOPEN_SOURCE", "600"); in getOSDefines()
684 Builder.defineMacro("_XOPEN_SOURCE", "500"); in getOSDefines()
686 Builder.defineMacro("__C99FEATURES__"); in getOSDefines()
687 Builder.defineMacro("_LARGEFILE_SOURCE"); in getOSDefines()
688 Builder.defineMacro("_LARGEFILE64_SOURCE"); in getOSDefines()
689 Builder.defineMacro("__EXTENSIONS__"); in getOSDefines()
690 Builder.defineMacro("_REENTRANT"); in getOSDefines()
706 Builder.defineMacro("_WIN32"); in getOSDefines()
712 Builder.defineMacro("_CPPRTTI"); in getVisualStudioDefines()
715 Builder.defineMacro("_CPPUNWIND"); in getVisualStudioDefines()
719 Builder.defineMacro("__BOOL_DEFINED"); in getVisualStudioDefines()
722 Builder.defineMacro("_CHAR_UNSIGNED"); in getVisualStudioDefines()
727 Builder.defineMacro("_MT"); in getVisualStudioDefines()
730 Builder.defineMacro("_MSC_VER", in getVisualStudioDefines()
732 Builder.defineMacro("_MSC_FULL_VER", Twine(Opts.MSCompatibilityVersion)); in getVisualStudioDefines()
734 Builder.defineMacro("_MSC_BUILD", Twine(1)); in getVisualStudioDefines()
737 Builder.defineMacro("_HAS_CHAR16_T_LANGUAGE_SUPPORT", Twine(1)); in getVisualStudioDefines()
741 Builder.defineMacro("_MSVC_LANG", "201403L"); in getVisualStudioDefines()
743 Builder.defineMacro("_MSVC_LANG", "201402L"); in getVisualStudioDefines()
748 Builder.defineMacro("_MSC_EXTENSIONS"); in getVisualStudioDefines()
751 Builder.defineMacro("_RVALUE_REFERENCES_V2_SUPPORTED"); in getVisualStudioDefines()
752 Builder.defineMacro("_RVALUE_REFERENCES_SUPPORTED"); in getVisualStudioDefines()
753 Builder.defineMacro("_NATIVE_NULLPTR_SUPPORTED"); in getVisualStudioDefines()
757 Builder.defineMacro("_INTEGRAL_MAX_BITS", "64"); in getVisualStudioDefines()
771 Builder.defineMacro("_REENTRANT"); in getOSDefines()
773 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
776 Builder.defineMacro("__ELF__"); in getOSDefines()
777 Builder.defineMacro("__native_client__"); in getOSDefines()
821 Builder.defineMacro("_REENTRANT"); in getOSDefines()
824 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
1162 Builder.defineMacro("__ppc__"); in getTargetDefines()
1163 Builder.defineMacro("__PPC__"); in getTargetDefines()
1164 Builder.defineMacro("_ARCH_PPC"); in getTargetDefines()
1165 Builder.defineMacro("__powerpc__"); in getTargetDefines()
1166 Builder.defineMacro("__POWERPC__"); in getTargetDefines()
1168 Builder.defineMacro("_ARCH_PPC64"); in getTargetDefines()
1169 Builder.defineMacro("__powerpc64__"); in getTargetDefines()
1170 Builder.defineMacro("__ppc64__"); in getTargetDefines()
1171 Builder.defineMacro("__PPC64__"); in getTargetDefines()
1176 Builder.defineMacro("_LITTLE_ENDIAN"); in getTargetDefines()
1180 Builder.defineMacro("_BIG_ENDIAN"); in getTargetDefines()
1185 Builder.defineMacro("_CALL_ELF", "1"); in getTargetDefines()
1187 Builder.defineMacro("_CALL_ELF", "2"); in getTargetDefines()
1190 Builder.defineMacro("__NATURAL_ALIGNMENT__"); in getTargetDefines()
1191 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
1195 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
1198 Builder.defineMacro("__VEC__", "10206"); in getTargetDefines()
1199 Builder.defineMacro("__ALTIVEC__"); in getTargetDefines()
1267 Builder.defineMacro(Twine("_ARCH_", StringRef(CPU).upper())); in getTargetDefines()
1269 Builder.defineMacro("_ARCH_PPCGR"); in getTargetDefines()
1271 Builder.defineMacro("_ARCH_PPCSQ"); in getTargetDefines()
1273 Builder.defineMacro("_ARCH_440"); in getTargetDefines()
1275 Builder.defineMacro("_ARCH_603"); in getTargetDefines()
1277 Builder.defineMacro("_ARCH_604"); in getTargetDefines()
1279 Builder.defineMacro("_ARCH_PWR4"); in getTargetDefines()
1281 Builder.defineMacro("_ARCH_PWR5"); in getTargetDefines()
1283 Builder.defineMacro("_ARCH_PWR5X"); in getTargetDefines()
1285 Builder.defineMacro("_ARCH_PWR6"); in getTargetDefines()
1287 Builder.defineMacro("_ARCH_PWR6X"); in getTargetDefines()
1289 Builder.defineMacro("_ARCH_PWR7"); in getTargetDefines()
1291 Builder.defineMacro("_ARCH_PWR8"); in getTargetDefines()
1293 Builder.defineMacro("_ARCH_PWR9"); in getTargetDefines()
1295 Builder.defineMacro("_ARCH_A2"); in getTargetDefines()
1297 Builder.defineMacro("_ARCH_A2Q"); in getTargetDefines()
1298 Builder.defineMacro("_ARCH_QP"); in getTargetDefines()
1302 Builder.defineMacro("__bg__"); in getTargetDefines()
1303 Builder.defineMacro("__THW_BLUEGENE__"); in getTargetDefines()
1304 Builder.defineMacro("__bgq__"); in getTargetDefines()
1305 Builder.defineMacro("__TOS_BGQ__"); in getTargetDefines()
1309 Builder.defineMacro("__VSX__"); in getTargetDefines()
1311 Builder.defineMacro("__POWER8_VECTOR__"); in getTargetDefines()
1313 Builder.defineMacro("__CRYPTO__"); in getTargetDefines()
1315 Builder.defineMacro("__HTM__"); in getTargetDefines()
1317 Builder.defineMacro("__FLOAT128__"); in getTargetDefines()
1319 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
1320 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
1321 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
1323 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
1774 Builder.defineMacro("__PTX__"); in getTargetDefines()
1775 Builder.defineMacro("__NVPTX__"); in getTargetDefines()
1810 Builder.defineMacro("__CUDA_ARCH__", CUDAArchCode); in getTargetDefines()
2025 Builder.defineMacro("__AMDGCN__"); in getTargetDefines()
2027 Builder.defineMacro("__R600__"); in getTargetDefines()
2030 Builder.defineMacro("__HAS_FMAF__"); in getTargetDefines()
2032 Builder.defineMacro("__HAS_LDEXPF__"); in getTargetDefines()
2034 Builder.defineMacro("__HAS_FP64__"); in getTargetDefines()
3406 Builder.defineMacro("__amd64__"); in getTargetDefines()
3407 Builder.defineMacro("__amd64"); in getTargetDefines()
3408 Builder.defineMacro("__x86_64"); in getTargetDefines()
3409 Builder.defineMacro("__x86_64__"); in getTargetDefines()
3411 Builder.defineMacro("__x86_64h"); in getTargetDefines()
3412 Builder.defineMacro("__x86_64h__"); in getTargetDefines()
3426 Builder.defineMacro("__tune_i386__"); in getTargetDefines()
3435 Builder.defineMacro("__pentium_mmx__"); in getTargetDefines()
3436 Builder.defineMacro("__tune_pentium_mmx__"); in getTargetDefines()
3446 Builder.defineMacro("__tune_pentium3__"); in getTargetDefines()
3450 Builder.defineMacro("__tune_pentium2__"); in getTargetDefines()
3453 Builder.defineMacro("__tune_i686__"); in getTargetDefines()
3454 Builder.defineMacro("__tune_pentiumpro__"); in getTargetDefines()
3457 Builder.defineMacro("__i686"); in getTargetDefines()
3458 Builder.defineMacro("__i686__"); in getTargetDefines()
3460 Builder.defineMacro("__pentiumpro"); in getTargetDefines()
3461 Builder.defineMacro("__pentiumpro__"); in getTargetDefines()
3503 Builder.defineMacro("__tune_lakemont__"); in getTargetDefines()
3506 Builder.defineMacro("__k6_2__"); in getTargetDefines()
3507 Builder.defineMacro("__tune_k6_2__"); in getTargetDefines()
3514 Builder.defineMacro("__k6_3__"); in getTargetDefines()
3515 Builder.defineMacro("__tune_k6_3__"); in getTargetDefines()
3528 Builder.defineMacro("__athlon_sse__"); in getTargetDefines()
3529 Builder.defineMacro("__tune_athlon_sse__"); in getTargetDefines()
3569 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
3574 Builder.defineMacro("__NO_MATH_INLINES"); in getTargetDefines()
3577 Builder.defineMacro("__AES__"); in getTargetDefines()
3580 Builder.defineMacro("__PCLMUL__"); in getTargetDefines()
3583 Builder.defineMacro("__LZCNT__"); in getTargetDefines()
3586 Builder.defineMacro("__RDRND__"); in getTargetDefines()
3589 Builder.defineMacro("__FSGSBASE__"); in getTargetDefines()
3592 Builder.defineMacro("__BMI__"); in getTargetDefines()
3595 Builder.defineMacro("__BMI2__"); in getTargetDefines()
3598 Builder.defineMacro("__POPCNT__"); in getTargetDefines()
3601 Builder.defineMacro("__RTM__"); in getTargetDefines()
3604 Builder.defineMacro("__PRFCHW__"); in getTargetDefines()
3607 Builder.defineMacro("__RDSEED__"); in getTargetDefines()
3610 Builder.defineMacro("__ADX__"); in getTargetDefines()
3613 Builder.defineMacro("__TBM__"); in getTargetDefines()
3616 Builder.defineMacro("__MWAITX__"); in getTargetDefines()
3620 Builder.defineMacro("__XOP__"); in getTargetDefines()
3622 Builder.defineMacro("__FMA4__"); in getTargetDefines()
3624 Builder.defineMacro("__SSE4A__"); in getTargetDefines()
3630 Builder.defineMacro("__FMA__"); in getTargetDefines()
3633 Builder.defineMacro("__F16C__"); in getTargetDefines()
3636 Builder.defineMacro("__AVX512CD__"); in getTargetDefines()
3638 Builder.defineMacro("__AVX512ER__"); in getTargetDefines()
3640 Builder.defineMacro("__AVX512PF__"); in getTargetDefines()
3642 Builder.defineMacro("__AVX512DQ__"); in getTargetDefines()
3644 Builder.defineMacro("__AVX512BW__"); in getTargetDefines()
3646 Builder.defineMacro("__AVX512VL__"); in getTargetDefines()
3648 Builder.defineMacro("__AVX512VBMI__"); in getTargetDefines()
3650 Builder.defineMacro("__AVX512IFMA__"); in getTargetDefines()
3653 Builder.defineMacro("__SHA__"); in getTargetDefines()
3656 Builder.defineMacro("__FXSR__"); in getTargetDefines()
3658 Builder.defineMacro("__XSAVE__"); in getTargetDefines()
3660 Builder.defineMacro("__XSAVEOPT__"); in getTargetDefines()
3662 Builder.defineMacro("__XSAVEC__"); in getTargetDefines()
3664 Builder.defineMacro("__XSAVES__"); in getTargetDefines()
3666 Builder.defineMacro("__PKU__"); in getTargetDefines()
3668 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16"); in getTargetDefines()
3673 Builder.defineMacro("__AVX512F__"); in getTargetDefines()
3675 Builder.defineMacro("__AVX2__"); in getTargetDefines()
3677 Builder.defineMacro("__AVX__"); in getTargetDefines()
3679 Builder.defineMacro("__SSE4_2__"); in getTargetDefines()
3681 Builder.defineMacro("__SSE4_1__"); in getTargetDefines()
3683 Builder.defineMacro("__SSSE3__"); in getTargetDefines()
3685 Builder.defineMacro("__SSE3__"); in getTargetDefines()
3687 Builder.defineMacro("__SSE2__"); in getTargetDefines()
3688 Builder.defineMacro("__SSE2_MATH__"); // -mfp-math=sse always implied. in getTargetDefines()
3690 Builder.defineMacro("__SSE__"); in getTargetDefines()
3691 Builder.defineMacro("__SSE_MATH__"); // -mfp-math=sse always implied. in getTargetDefines()
3706 Builder.defineMacro("_M_IX86_FP", Twine(2)); in getTargetDefines()
3709 Builder.defineMacro("_M_IX86_FP", Twine(1)); in getTargetDefines()
3712 Builder.defineMacro("_M_IX86_FP", Twine(0)); in getTargetDefines()
3719 Builder.defineMacro("__3dNOW_A__"); in getTargetDefines()
3721 Builder.defineMacro("__3dNOW__"); in getTargetDefines()
3723 Builder.defineMacro("__MMX__"); in getTargetDefines()
3729 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
3730 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
3731 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
3734 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
4148 Builder.defineMacro("_M_IX86", "600"); in getTargetDefines()
4157 Builder.defineMacro("__declspec", "__declspec"); in addCygMingDefines()
4159 Builder.defineMacro("__declspec(a)", "__attribute__((a))"); in addCygMingDefines()
4170 Builder.defineMacro(Twine("_") + CC, GCCSpelling); in addCygMingDefines()
4171 Builder.defineMacro(Twine("__") + CC, GCCSpelling); in addCygMingDefines()
4177 Builder.defineMacro("__MSVCRT__"); in addMinGWDefines()
4178 Builder.defineMacro("__MINGW32__"); in addMinGWDefines()
4192 Builder.defineMacro("_X86_"); in getTargetDefines()
4209 Builder.defineMacro("_X86_"); in getTargetDefines()
4210 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
4211 Builder.defineMacro("__CYGWIN32__"); in getTargetDefines()
4215 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
4228 Builder.defineMacro("__INTEL__"); in getTargetDefines()
4251 Builder.defineMacro("__iamcu"); in getTargetDefines()
4252 Builder.defineMacro("__iamcu__"); in getTargetDefines()
4268 Builder.defineMacro("__rtems__"); in getOSDefines()
4269 Builder.defineMacro("__ELF__"); in getOSDefines()
4306 Builder.defineMacro("__INTEL__"); in getTargetDefines()
4307 Builder.defineMacro("__rtems__"); in getTargetDefines()
4420 Builder.defineMacro("_WIN64"); in getTargetDefines()
4457 Builder.defineMacro("_M_X64", "100"); in getTargetDefines()
4458 Builder.defineMacro("_M_AMD64", "100"); in getTargetDefines()
4477 Builder.defineMacro("__MINGW64__"); in getTargetDefines()
4482 Builder.defineMacro("__SEH__"); in getTargetDefines()
4497 Builder.defineMacro("__x86_64__"); in getTargetDefines()
4498 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
4499 Builder.defineMacro("__CYGWIN64__"); in getTargetDefines()
4503 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
4507 Builder.defineMacro("__SEH__"); in getTargetDefines()
5078 Builder.defineMacro("__arm"); in getTargetDefines()
5079 Builder.defineMacro("__arm__"); in getTargetDefines()
5083 Builder.defineMacro("__ELF__"); in getTargetDefines()
5086 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
5091 Builder.defineMacro("__ARM_ARCH_7K__", "2"); in getTargetDefines()
5094 Builder.defineMacro("__ARM_ARCH_" + CPUAttr + "__"); in getTargetDefines()
5098 Builder.defineMacro("__ARM_ARCH", Twine(ArchVersion)); in getTargetDefines()
5103 Builder.defineMacro("__ARM_FEATURE_CRYPTO", "1"); in getTargetDefines()
5106 Builder.defineMacro("__ARM_FEATURE_CRC32", "1"); in getTargetDefines()
5108 Builder.defineMacro("__ARM_FEATURE_NUMERIC_MAXMIN", "1"); in getTargetDefines()
5110 Builder.defineMacro("__ARM_FEATURE_DIRECTED_ROUNDING", "1"); in getTargetDefines()
5117 Builder.defineMacro("__ARM_ARCH_ISA_ARM", "1"); in getTargetDefines()
5124 Builder.defineMacro("__ARM_ARCH_ISA_THUMB", "2"); in getTargetDefines()
5126 Builder.defineMacro("__ARM_ARCH_ISA_THUMB", "1"); in getTargetDefines()
5130 Builder.defineMacro("__ARM_32BIT_STATE", "1"); in getTargetDefines()
5136 Builder.defineMacro("__ARM_ARCH_PROFILE", "'" + CPUProfile + "'"); in getTargetDefines()
5140 Builder.defineMacro("__ARM_FEATURE_UNALIGNED", "1"); in getTargetDefines()
5144 Builder.defineMacro("__ARM_FEATURE_LDREX", "0x" + llvm::utohexstr(LDREX)); in getTargetDefines()
5150 Builder.defineMacro("__ARM_FEATURE_CLZ", "1"); in getTargetDefines()
5154 Builder.defineMacro("__ARM_FP", "0x" + llvm::utohexstr(HW_FP)); in getTargetDefines()
5157 Builder.defineMacro("__ARM_ACLE", "200"); in getTargetDefines()
5160 Builder.defineMacro("__ARM_FP16_FORMAT_IEEE", "1"); in getTargetDefines()
5161 Builder.defineMacro("__ARM_FP16_ARGS", "1"); in getTargetDefines()
5165 Builder.defineMacro("__ARM_FEATURE_FMA", "1"); in getTargetDefines()
5173 Builder.defineMacro("__THUMB_INTERWORK__"); in getTargetDefines()
5179 Builder.defineMacro("__ARM_EABI__"); in getTargetDefines()
5180 Builder.defineMacro("__ARM_PCS", "1"); in getTargetDefines()
5185 Builder.defineMacro("__ARM_PCS_VFP", "1"); in getTargetDefines()
5188 Builder.defineMacro("__SOFTFP__"); in getTargetDefines()
5191 Builder.defineMacro("__XSCALE__"); in getTargetDefines()
5194 Builder.defineMacro("__THUMBEL__"); in getTargetDefines()
5195 Builder.defineMacro("__thumb__"); in getTargetDefines()
5197 Builder.defineMacro("__thumb2__"); in getTargetDefines()
5202 Builder.defineMacro("__ARM_FEATURE_SIMD32", "1"); in getTargetDefines()
5207 Builder.defineMacro("__ARM_FEATURE_IDIV", "1"); in getTargetDefines()
5208 Builder.defineMacro("__ARM_ARCH_EXT_IDIV__", "1"); in getTargetDefines()
5212 Builder.defineMacro("__APCS_32__"); in getTargetDefines()
5215 Builder.defineMacro("__VFP_FP__"); in getTargetDefines()
5217 Builder.defineMacro("__ARM_VFPV2__"); in getTargetDefines()
5219 Builder.defineMacro("__ARM_VFPV3__"); in getTargetDefines()
5221 Builder.defineMacro("__ARM_VFPV4__"); in getTargetDefines()
5229 Builder.defineMacro("__ARM_NEON", "1"); in getTargetDefines()
5230 Builder.defineMacro("__ARM_NEON__"); in getTargetDefines()
5233 Builder.defineMacro("__ARM_NEON_FP", in getTargetDefines()
5237 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", in getTargetDefines()
5240 Builder.defineMacro("__ARM_SIZEOF_MINIMAL_ENUM", in getTargetDefines()
5244 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
5245 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
5246 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
5247 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
5252 Builder.defineMacro("__ARM_FEATURE_DSP", "1"); in getTargetDefines()
5258 Builder.defineMacro("__ARM_FEATURE_SAT", "1"); in getTargetDefines()
5264 Builder.defineMacro("__ARM_FEATURE_QBIT", "1"); in getTargetDefines()
5267 Builder.defineMacro("__ARM_FP_FAST", "1"); in getTargetDefines()
5270 Builder.defineMacro("__ARM_FEATURE_QRDMX", "1"); in getTargetDefines()
5478 Builder.defineMacro("__ARMEL__"); in getTargetDefines()
5489 Builder.defineMacro("__ARMEB__"); in getTargetDefines()
5490 Builder.defineMacro("__ARM_BIG_ENDIAN"); in getTargetDefines()
5508 Builder.defineMacro("_M_ARM_NT", "1"); in getVisualStudioDefines()
5509 Builder.defineMacro("_M_ARMT", "_M_ARM"); in getVisualStudioDefines()
5510 Builder.defineMacro("_M_THUMB", "_M_ARM"); in getVisualStudioDefines()
5516 Builder.defineMacro("_M_ARM", Triple.getArchName().substr(Offset)); in getVisualStudioDefines()
5520 Builder.defineMacro("_M_ARM_FP", "31"); in getVisualStudioDefines()
5587 Builder.defineMacro("_ARM_"); in getTargetDefines()
5605 Builder.defineMacro("_ARM_"); in getTargetDefines()
5606 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
5607 Builder.defineMacro("__CYGWIN32__"); in getTargetDefines()
5610 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
5733 Builder.defineMacro("__aarch64__"); in getTargetDefines()
5736 Builder.defineMacro("_LP64"); in getTargetDefines()
5737 Builder.defineMacro("__LP64__"); in getTargetDefines()
5740 Builder.defineMacro("__ARM_ACLE", "200"); in getTargetDefines()
5741 Builder.defineMacro("__ARM_ARCH", "8"); in getTargetDefines()
5742 Builder.defineMacro("__ARM_ARCH_PROFILE", "'A'"); in getTargetDefines()
5744 Builder.defineMacro("__ARM_64BIT_STATE", "1"); in getTargetDefines()
5745 Builder.defineMacro("__ARM_PCS_AAPCS64", "1"); in getTargetDefines()
5746 Builder.defineMacro("__ARM_ARCH_ISA_A64", "1"); in getTargetDefines()
5748 Builder.defineMacro("__ARM_FEATURE_CLZ", "1"); in getTargetDefines()
5749 Builder.defineMacro("__ARM_FEATURE_FMA", "1"); in getTargetDefines()
5750 Builder.defineMacro("__ARM_FEATURE_LDREX", "0xF"); in getTargetDefines()
5751 Builder.defineMacro("__ARM_FEATURE_IDIV", "1"); // As specified in ACLE in getTargetDefines()
5752 Builder.defineMacro("__ARM_FEATURE_DIV"); // For backwards compatibility in getTargetDefines()
5753 Builder.defineMacro("__ARM_FEATURE_NUMERIC_MAXMIN", "1"); in getTargetDefines()
5754 Builder.defineMacro("__ARM_FEATURE_DIRECTED_ROUNDING", "1"); in getTargetDefines()
5756 Builder.defineMacro("__ARM_ALIGN_MAX_STACK_PWR", "4"); in getTargetDefines()
5759 Builder.defineMacro("__ARM_FP", "0xE"); in getTargetDefines()
5763 Builder.defineMacro("__ARM_FP16_FORMAT_IEEE", "1"); in getTargetDefines()
5764 Builder.defineMacro("__ARM_FP16_ARGS", "1"); in getTargetDefines()
5767 Builder.defineMacro("__ARM_FP_FAST", "1"); in getTargetDefines()
5769 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", Opts.ShortWChar ? "2" : "4"); in getTargetDefines()
5771 Builder.defineMacro("__ARM_SIZEOF_MINIMAL_ENUM", in getTargetDefines()
5775 Builder.defineMacro("__ARM_NEON", "1"); in getTargetDefines()
5777 Builder.defineMacro("__ARM_NEON_FP", "0xE"); in getTargetDefines()
5781 Builder.defineMacro("__ARM_FEATURE_CRC32", "1"); in getTargetDefines()
5784 Builder.defineMacro("__ARM_FEATURE_CRYPTO", "1"); in getTargetDefines()
5787 Builder.defineMacro("__ARM_FEATURE_UNALIGNED", "1"); in getTargetDefines()
5790 Builder.defineMacro("__ARM_FEATURE_QRDMX", "1"); in getTargetDefines()
5793 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
5794 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
5795 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
5796 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
6008 Builder.defineMacro("__AARCH64EL__"); in getTargetDefines()
6024 Builder.defineMacro("__AARCH64EB__"); in getTargetDefines()
6025 Builder.defineMacro("__AARCH_BIG_ENDIAN"); in getTargetDefines()
6026 Builder.defineMacro("__ARM_BIG_ENDIAN"); in getTargetDefines()
6035 Builder.defineMacro("__AARCH64_SIMD__"); in getOSDefines()
6036 Builder.defineMacro("__ARM64_ARCH_8__"); in getOSDefines()
6037 Builder.defineMacro("__ARM_NEON__"); in getOSDefines()
6038 Builder.defineMacro("__LITTLE_ENDIAN__"); in getOSDefines()
6039 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getOSDefines()
6040 Builder.defineMacro("__arm64", "1"); in getOSDefines()
6041 Builder.defineMacro("__arm64__", "1"); in getOSDefines()
6171 Builder.defineMacro("__qdsp6__", "1"); in getTargetDefines()
6172 Builder.defineMacro("__hexagon__", "1"); in getTargetDefines()
6175 Builder.defineMacro("__HEXAGON_V4__"); in getTargetDefines()
6176 Builder.defineMacro("__HEXAGON_ARCH__", "4"); in getTargetDefines()
6178 Builder.defineMacro("__QDSP6_V4__"); in getTargetDefines()
6179 Builder.defineMacro("__QDSP6_ARCH__", "4"); in getTargetDefines()
6182 Builder.defineMacro("__HEXAGON_V5__"); in getTargetDefines()
6183 Builder.defineMacro("__HEXAGON_ARCH__", "5"); in getTargetDefines()
6185 Builder.defineMacro("__QDSP6_V5__"); in getTargetDefines()
6186 Builder.defineMacro("__QDSP6_ARCH__", "5"); in getTargetDefines()
6189 Builder.defineMacro("__HEXAGON_V55__"); in getTargetDefines()
6190 Builder.defineMacro("__HEXAGON_ARCH__", "55"); in getTargetDefines()
6191 Builder.defineMacro("__QDSP6_V55__"); in getTargetDefines()
6192 Builder.defineMacro("__QDSP6_ARCH__", "55"); in getTargetDefines()
6194 Builder.defineMacro("__HEXAGON_V60__"); in getTargetDefines()
6195 Builder.defineMacro("__HEXAGON_ARCH__", "60"); in getTargetDefines()
6196 Builder.defineMacro("__QDSP6_V60__"); in getTargetDefines()
6197 Builder.defineMacro("__QDSP6_ARCH__", "60"); in getTargetDefines()
6201 Builder.defineMacro("__HVX__"); in getTargetDefines()
6203 Builder.defineMacro("__HVXDBL__"); in getTargetDefines()
6306 Builder.defineMacro("__lanai__"); in getTargetDefines()
6311 Builder.defineMacro("__LANAI_V11__"); in getTargetDefines()
6398 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
6401 Builder.defineMacro("SOFT_FLOAT", "1"); in getTargetDefines()
6628 Builder.defineMacro("__sparcv8"); in getTargetDefines()
6630 Builder.defineMacro("__sparcv8__"); in getTargetDefines()
6633 Builder.defineMacro("__sparcv9"); in getTargetDefines()
6635 Builder.defineMacro("__sparcv9__"); in getTargetDefines()
6636 Builder.defineMacro("__sparc_v9__"); in getTargetDefines()
6643 Builder.defineMacro("__myriad2", "1"); in getTargetDefines()
6644 Builder.defineMacro("__myriad2__", "1"); in getTargetDefines()
6647 Builder.defineMacro("__myriad2", "2"); in getTargetDefines()
6648 Builder.defineMacro("__myriad2__", "2"); in getTargetDefines()
6699 Builder.defineMacro("__sparcv9"); in getTargetDefines()
6700 Builder.defineMacro("__arch64__"); in getTargetDefines()
6703 Builder.defineMacro("__sparc64__"); in getTargetDefines()
6704 Builder.defineMacro("__sparc_v9__"); in getTargetDefines()
6705 Builder.defineMacro("__sparcv9__"); in getTargetDefines()
6743 Builder.defineMacro("__s390__"); in getTargetDefines()
6744 Builder.defineMacro("__s390x__"); in getTargetDefines()
6745 Builder.defineMacro("__zarch__"); in getTargetDefines()
6746 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
6748 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
6749 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
6750 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
6751 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
6754 Builder.defineMacro("__HTM__"); in getTargetDefines()
6756 Builder.defineMacro("__VEC__", "10301"); in getTargetDefines()
6921 Builder.defineMacro("MSP430"); in getTargetDefines()
6922 Builder.defineMacro("__MSP430__"); in getTargetDefines()
7020 Builder.defineMacro("__TCE__"); in getTargetDefines()
7021 Builder.defineMacro("__TCE_V1__"); in getTargetDefines()
7065 Builder.defineMacro("__BPF__"); in getTargetDefines()
7277 Builder.defineMacro("_MIPSEB"); in getTargetDefines()
7280 Builder.defineMacro("_MIPSEL"); in getTargetDefines()
7283 Builder.defineMacro("__mips__"); in getTargetDefines()
7284 Builder.defineMacro("_mips"); in getTargetDefines()
7286 Builder.defineMacro("mips"); in getTargetDefines()
7289 Builder.defineMacro("__mips", "32"); in getTargetDefines()
7290 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS32"); in getTargetDefines()
7292 Builder.defineMacro("__mips", "64"); in getTargetDefines()
7293 Builder.defineMacro("__mips64"); in getTargetDefines()
7294 Builder.defineMacro("__mips64__"); in getTargetDefines()
7295 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS64"); in getTargetDefines()
7306 Builder.defineMacro("__mips_isa_rev", ISARev); in getTargetDefines()
7309 Builder.defineMacro("__mips_o32"); in getTargetDefines()
7310 Builder.defineMacro("_ABIO32", "1"); in getTargetDefines()
7311 Builder.defineMacro("_MIPS_SIM", "_ABIO32"); in getTargetDefines()
7313 Builder.defineMacro("__mips_n32"); in getTargetDefines()
7314 Builder.defineMacro("_ABIN32", "2"); in getTargetDefines()
7315 Builder.defineMacro("_MIPS_SIM", "_ABIN32"); in getTargetDefines()
7317 Builder.defineMacro("__mips_n64"); in getTargetDefines()
7318 Builder.defineMacro("_ABI64", "3"); in getTargetDefines()
7319 Builder.defineMacro("_MIPS_SIM", "_ABI64"); in getTargetDefines()
7323 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
7327 Builder.defineMacro("__mips_hard_float", Twine(1)); in getTargetDefines()
7330 Builder.defineMacro("__mips_soft_float", Twine(1)); in getTargetDefines()
7335 Builder.defineMacro("__mips_single_float", Twine(1)); in getTargetDefines()
7337 Builder.defineMacro("__mips_fpr", HasFP64 ? Twine(64) : Twine(32)); in getTargetDefines()
7338 Builder.defineMacro("_MIPS_FPSET", in getTargetDefines()
7342 Builder.defineMacro("__mips16", Twine(1)); in getTargetDefines()
7345 Builder.defineMacro("__mips_micromips", Twine(1)); in getTargetDefines()
7348 Builder.defineMacro("__mips_nan2008", Twine(1)); in getTargetDefines()
7354 Builder.defineMacro("__mips_dsp_rev", Twine(1)); in getTargetDefines()
7355 Builder.defineMacro("__mips_dsp", Twine(1)); in getTargetDefines()
7358 Builder.defineMacro("__mips_dsp_rev", Twine(2)); in getTargetDefines()
7359 Builder.defineMacro("__mips_dspr2", Twine(1)); in getTargetDefines()
7360 Builder.defineMacro("__mips_dsp", Twine(1)); in getTargetDefines()
7365 Builder.defineMacro("__mips_msa", Twine(1)); in getTargetDefines()
7367 Builder.defineMacro("_MIPS_SZPTR", Twine(getPointerWidth(0))); in getTargetDefines()
7368 Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth())); in getTargetDefines()
7369 Builder.defineMacro("_MIPS_SZLONG", Twine(getLongWidth())); in getTargetDefines()
7371 Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\""); in getTargetDefines()
7372 Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper()); in getTargetDefines()
7376 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
7377 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
7378 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
7385 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
7655 Builder.defineMacro("__le32__"); in getArchDefines()
7656 Builder.defineMacro("__pnacl__"); in getArchDefines()
7717 Builder.defineMacro("__ELF__"); in getTargetDefines()
7768 Builder.defineMacro("__wasm_simd128__"); in getTargetDefines()
8013 Builder.defineMacro("__XS1B__"); in getTargetDefines()
8094 Builder.defineMacro("__RENDERSCRIPT__"); in getTargetDefines()
8113 Builder.defineMacro("__RENDERSCRIPT__"); in getTargetDefines()