Lines Matching refs:defineMacro

51     Builder.defineMacro(MacroName);  in DefineStd()
54 Builder.defineMacro("__" + MacroName); in DefineStd()
57 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
62 Builder.defineMacro("__" + CPUName); in defineCPUMacros()
63 Builder.defineMacro("__" + CPUName + "__"); in defineCPUMacros()
65 Builder.defineMacro("__tune_" + CPUName + "__"); in defineCPUMacros()
94 Builder.defineMacro("__CloudABI__"); in getOSDefines()
95 Builder.defineMacro("__ELF__"); in getOSDefines()
98 Builder.defineMacro("__STDC_ISO_10646__", "201206L"); in getOSDefines()
99 Builder.defineMacro("__STDC_UTF_16__"); in getOSDefines()
100 Builder.defineMacro("__STDC_UTF_32__"); in getOSDefines()
114 Builder.defineMacro("__APPLE_CC__", "6000"); in getDarwinDefines()
115 Builder.defineMacro("__APPLE__"); in getDarwinDefines()
116 Builder.defineMacro("OBJC_NEW_PROPERTIES"); in getDarwinDefines()
120 Builder.defineMacro("_FORTIFY_SOURCE", "0"); in getDarwinDefines()
125 Builder.defineMacro("__weak", "__attribute__((objc_gc(weak)))"); in getDarwinDefines()
126 Builder.defineMacro("__strong", ""); in getDarwinDefines()
127 Builder.defineMacro("__unsafe_unretained", ""); in getDarwinDefines()
131 Builder.defineMacro("__STATIC__"); in getDarwinDefines()
133 Builder.defineMacro("__DYNAMIC__"); in getDarwinDefines()
136 Builder.defineMacro("_REENTRANT"); in getDarwinDefines()
167 Builder.defineMacro("__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
169 Builder.defineMacro("__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__", in getDarwinDefines()
181 Builder.defineMacro("__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
205 Builder.defineMacro("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__", Str); in getDarwinDefines()
210 Builder.defineMacro("__MACH__"); in getDarwinDefines()
260 Builder.defineMacro("__DragonFly__"); in getOSDefines()
261 Builder.defineMacro("__DragonFly_cc_version", "100001"); in getOSDefines()
262 Builder.defineMacro("__ELF__"); in getOSDefines()
263 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
264 Builder.defineMacro("__tune_i386__"); in getOSDefines()
294 Builder.defineMacro("__FreeBSD__", Twine(Release)); in getOSDefines()
295 Builder.defineMacro("__FreeBSD_cc_version", Twine(Release * 100000U + 1U)); in getOSDefines()
296 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
298 Builder.defineMacro("__ELF__"); in getOSDefines()
309 Builder.defineMacro("__STDC_MB_MIGHT_NEQ_WC__", "1"); in getOSDefines()
344 Builder.defineMacro("__FreeBSD_kernel__"); in getOSDefines()
345 Builder.defineMacro("__GLIBC__"); in getOSDefines()
346 Builder.defineMacro("__ELF__"); in getOSDefines()
348 Builder.defineMacro("_REENTRANT"); in getOSDefines()
350 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
367 Builder.defineMacro("__minix", "3"); in getOSDefines()
368 Builder.defineMacro("_EM_WSIZE", "4"); in getOSDefines()
369 Builder.defineMacro("_EM_PSIZE", "4"); in getOSDefines()
370 Builder.defineMacro("_EM_SSIZE", "2"); in getOSDefines()
371 Builder.defineMacro("_EM_LSIZE", "4"); in getOSDefines()
372 Builder.defineMacro("_EM_FSIZE", "4"); in getOSDefines()
373 Builder.defineMacro("_EM_DSIZE", "8"); in getOSDefines()
374 Builder.defineMacro("__ELF__"); in getOSDefines()
392 Builder.defineMacro("__gnu_linux__"); in getOSDefines()
393 Builder.defineMacro("__ELF__"); in getOSDefines()
395 Builder.defineMacro("__ANDROID__", "1"); in getOSDefines()
402 Builder.defineMacro("_REENTRANT"); in getOSDefines()
404 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
434 Builder.defineMacro("__NetBSD__"); in getOSDefines()
435 Builder.defineMacro("__unix__"); in getOSDefines()
436 Builder.defineMacro("__ELF__"); in getOSDefines()
438 Builder.defineMacro("_POSIX_THREADS"); in getOSDefines()
447 Builder.defineMacro("__ARM_DWARF_EH__"); in getOSDefines()
466 Builder.defineMacro("__OpenBSD__"); in getOSDefines()
468 Builder.defineMacro("__ELF__"); in getOSDefines()
470 Builder.defineMacro("_REENTRANT"); in getOSDefines()
503 Builder.defineMacro("__Bitrig__"); in getOSDefines()
505 Builder.defineMacro("__ELF__"); in getOSDefines()
507 Builder.defineMacro("_REENTRANT"); in getOSDefines()
516 Builder.defineMacro("__ARM_DWARF_EH__"); in getOSDefines()
534 Builder.defineMacro("PSP"); in getOSDefines()
535 Builder.defineMacro("_PSP"); in getOSDefines()
536 Builder.defineMacro("__psp__"); in getOSDefines()
537 Builder.defineMacro("__ELF__"); in getOSDefines()
552 Builder.defineMacro("__PPC__"); in getOSDefines()
553 Builder.defineMacro("__PPU__"); in getOSDefines()
554 Builder.defineMacro("__CELLOS_LV2__"); in getOSDefines()
555 Builder.defineMacro("__ELF__"); in getOSDefines()
556 Builder.defineMacro("__LP32__"); in getOSDefines()
557 Builder.defineMacro("_ARCH_PPC64"); in getOSDefines()
558 Builder.defineMacro("__powerpc64__"); in getOSDefines()
577 Builder.defineMacro("__FreeBSD__", "9"); in getOSDefines()
578 Builder.defineMacro("__FreeBSD_cc_version", "900001"); in getOSDefines()
579 Builder.defineMacro("__KPRINTF_ATTRIBUTE__"); in getOSDefines()
581 Builder.defineMacro("__ELF__"); in getOSDefines()
582 Builder.defineMacro("__PS4__"); in getOSDefines()
609 Builder.defineMacro("__ELF__"); in getOSDefines()
610 Builder.defineMacro("__svr4__"); in getOSDefines()
611 Builder.defineMacro("__SVR4"); in getOSDefines()
617 Builder.defineMacro("_XOPEN_SOURCE", "600"); in getOSDefines()
619 Builder.defineMacro("_XOPEN_SOURCE", "500"); in getOSDefines()
621 Builder.defineMacro("__C99FEATURES__"); in getOSDefines()
622 Builder.defineMacro("_LARGEFILE_SOURCE"); in getOSDefines()
623 Builder.defineMacro("_LARGEFILE64_SOURCE"); in getOSDefines()
624 Builder.defineMacro("__EXTENSIONS__"); in getOSDefines()
625 Builder.defineMacro("_REENTRANT"); in getOSDefines()
641 Builder.defineMacro("_WIN32"); in getOSDefines()
647 Builder.defineMacro("_CPPRTTI"); in getVisualStudioDefines()
650 Builder.defineMacro("_CPPUNWIND"); in getVisualStudioDefines()
654 Builder.defineMacro("__BOOL_DEFINED"); in getVisualStudioDefines()
657 Builder.defineMacro("_CHAR_UNSIGNED"); in getVisualStudioDefines()
662 Builder.defineMacro("_MT"); in getVisualStudioDefines()
665 Builder.defineMacro("_MSC_VER", in getVisualStudioDefines()
667 Builder.defineMacro("_MSC_FULL_VER", Twine(Opts.MSCompatibilityVersion)); in getVisualStudioDefines()
669 Builder.defineMacro("_MSC_BUILD", Twine(1)); in getVisualStudioDefines()
672 Builder.defineMacro("_HAS_CHAR16_T_LANGUAGE_SUPPORT", Twine(1)); in getVisualStudioDefines()
676 Builder.defineMacro("_MSC_EXTENSIONS"); in getVisualStudioDefines()
679 Builder.defineMacro("_RVALUE_REFERENCES_V2_SUPPORTED"); in getVisualStudioDefines()
680 Builder.defineMacro("_RVALUE_REFERENCES_SUPPORTED"); in getVisualStudioDefines()
681 Builder.defineMacro("_NATIVE_NULLPTR_SUPPORTED"); in getVisualStudioDefines()
685 Builder.defineMacro("_INTEGRAL_MAX_BITS", "64"); in getVisualStudioDefines()
699 Builder.defineMacro("_REENTRANT"); in getOSDefines()
701 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
704 Builder.defineMacro("__ELF__"); in getOSDefines()
705 Builder.defineMacro("__native_client__"); in getOSDefines()
749 Builder.defineMacro("_REENTRANT"); in getOSDefines()
752 Builder.defineMacro("_GNU_SOURCE"); in getOSDefines()
1085 Builder.defineMacro("__ppc__"); in getTargetDefines()
1086 Builder.defineMacro("__PPC__"); in getTargetDefines()
1087 Builder.defineMacro("_ARCH_PPC"); in getTargetDefines()
1088 Builder.defineMacro("__powerpc__"); in getTargetDefines()
1089 Builder.defineMacro("__POWERPC__"); in getTargetDefines()
1091 Builder.defineMacro("_ARCH_PPC64"); in getTargetDefines()
1092 Builder.defineMacro("__powerpc64__"); in getTargetDefines()
1093 Builder.defineMacro("__ppc64__"); in getTargetDefines()
1094 Builder.defineMacro("__PPC64__"); in getTargetDefines()
1099 Builder.defineMacro("_LITTLE_ENDIAN"); in getTargetDefines()
1103 Builder.defineMacro("_BIG_ENDIAN"); in getTargetDefines()
1108 Builder.defineMacro("_CALL_ELF", "1"); in getTargetDefines()
1110 Builder.defineMacro("_CALL_ELF", "2"); in getTargetDefines()
1113 Builder.defineMacro("__NATURAL_ALIGNMENT__"); in getTargetDefines()
1114 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
1118 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
1121 Builder.defineMacro("__VEC__", "10206"); in getTargetDefines()
1122 Builder.defineMacro("__ALTIVEC__"); in getTargetDefines()
1182 Builder.defineMacro(Twine("_ARCH_", StringRef(CPU).upper())); in getTargetDefines()
1184 Builder.defineMacro("_ARCH_PPCGR"); in getTargetDefines()
1186 Builder.defineMacro("_ARCH_PPCSQ"); in getTargetDefines()
1188 Builder.defineMacro("_ARCH_440"); in getTargetDefines()
1190 Builder.defineMacro("_ARCH_603"); in getTargetDefines()
1192 Builder.defineMacro("_ARCH_604"); in getTargetDefines()
1194 Builder.defineMacro("_ARCH_PWR4"); in getTargetDefines()
1196 Builder.defineMacro("_ARCH_PWR5"); in getTargetDefines()
1198 Builder.defineMacro("_ARCH_PWR5X"); in getTargetDefines()
1200 Builder.defineMacro("_ARCH_PWR6"); in getTargetDefines()
1202 Builder.defineMacro("_ARCH_PWR6X"); in getTargetDefines()
1204 Builder.defineMacro("_ARCH_PWR7"); in getTargetDefines()
1206 Builder.defineMacro("_ARCH_PWR8"); in getTargetDefines()
1208 Builder.defineMacro("_ARCH_A2"); in getTargetDefines()
1210 Builder.defineMacro("_ARCH_A2Q"); in getTargetDefines()
1211 Builder.defineMacro("_ARCH_QP"); in getTargetDefines()
1215 Builder.defineMacro("__bg__"); in getTargetDefines()
1216 Builder.defineMacro("__THW_BLUEGENE__"); in getTargetDefines()
1217 Builder.defineMacro("__bgq__"); in getTargetDefines()
1218 Builder.defineMacro("__TOS_BGQ__"); in getTargetDefines()
1222 Builder.defineMacro("__VSX__"); in getTargetDefines()
1224 Builder.defineMacro("__POWER8_VECTOR__"); in getTargetDefines()
1226 Builder.defineMacro("__CRYPTO__"); in getTargetDefines()
1228 Builder.defineMacro("__HTM__"); in getTargetDefines()
1230 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
1231 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
1232 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
1234 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
1620 Builder.defineMacro("__PTX__"); in getTargetDefines()
1621 Builder.defineMacro("__NVPTX__"); in getTargetDefines()
1644 Builder.defineMacro("__CUDA_ARCH__", CUDAArchCode); in getTargetDefines()
1847 Builder.defineMacro("__R600__"); in getTargetDefines()
1849 Builder.defineMacro("__HAS_FMAF__"); in getTargetDefines()
1851 Builder.defineMacro("__HAS_LDEXPF__"); in getTargetDefines()
1853 Builder.defineMacro("cl_khr_fp64"); in getTargetDefines()
1856 Builder.defineMacro("cl_khr_byte_addressable_store"); in getTargetDefines()
1857 Builder.defineMacro("cl_khr_global_int32_base_atomics"); in getTargetDefines()
1858 Builder.defineMacro("cl_khr_global_int32_extended_atomics"); in getTargetDefines()
1859 Builder.defineMacro("cl_khr_local_int32_base_atomics"); in getTargetDefines()
1860 Builder.defineMacro("cl_khr_local_int32_extended_atomics"); in getTargetDefines()
3075 Builder.defineMacro("__amd64__"); in getTargetDefines()
3076 Builder.defineMacro("__amd64"); in getTargetDefines()
3077 Builder.defineMacro("__x86_64"); in getTargetDefines()
3078 Builder.defineMacro("__x86_64__"); in getTargetDefines()
3080 Builder.defineMacro("__x86_64h"); in getTargetDefines()
3081 Builder.defineMacro("__x86_64h__"); in getTargetDefines()
3095 Builder.defineMacro("__tune_i386__"); in getTargetDefines()
3104 Builder.defineMacro("__pentium_mmx__"); in getTargetDefines()
3105 Builder.defineMacro("__tune_pentium_mmx__"); in getTargetDefines()
3115 Builder.defineMacro("__tune_pentium3__"); in getTargetDefines()
3119 Builder.defineMacro("__tune_pentium2__"); in getTargetDefines()
3122 Builder.defineMacro("__tune_i686__"); in getTargetDefines()
3123 Builder.defineMacro("__tune_pentiumpro__"); in getTargetDefines()
3126 Builder.defineMacro("__i686"); in getTargetDefines()
3127 Builder.defineMacro("__i686__"); in getTargetDefines()
3129 Builder.defineMacro("__pentiumpro"); in getTargetDefines()
3130 Builder.defineMacro("__pentiumpro__"); in getTargetDefines()
3173 Builder.defineMacro("__k6_2__"); in getTargetDefines()
3174 Builder.defineMacro("__tune_k6_2__"); in getTargetDefines()
3181 Builder.defineMacro("__k6_3__"); in getTargetDefines()
3182 Builder.defineMacro("__tune_k6_3__"); in getTargetDefines()
3195 Builder.defineMacro("__athlon_sse__"); in getTargetDefines()
3196 Builder.defineMacro("__tune_athlon_sse__"); in getTargetDefines()
3236 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
3241 Builder.defineMacro("__NO_MATH_INLINES"); in getTargetDefines()
3244 Builder.defineMacro("__AES__"); in getTargetDefines()
3247 Builder.defineMacro("__PCLMUL__"); in getTargetDefines()
3250 Builder.defineMacro("__LZCNT__"); in getTargetDefines()
3253 Builder.defineMacro("__RDRND__"); in getTargetDefines()
3256 Builder.defineMacro("__FSGSBASE__"); in getTargetDefines()
3259 Builder.defineMacro("__BMI__"); in getTargetDefines()
3262 Builder.defineMacro("__BMI2__"); in getTargetDefines()
3265 Builder.defineMacro("__POPCNT__"); in getTargetDefines()
3268 Builder.defineMacro("__RTM__"); in getTargetDefines()
3271 Builder.defineMacro("__PRFCHW__"); in getTargetDefines()
3274 Builder.defineMacro("__RDSEED__"); in getTargetDefines()
3277 Builder.defineMacro("__ADX__"); in getTargetDefines()
3280 Builder.defineMacro("__TBM__"); in getTargetDefines()
3284 Builder.defineMacro("__XOP__"); in getTargetDefines()
3286 Builder.defineMacro("__FMA4__"); in getTargetDefines()
3288 Builder.defineMacro("__SSE4A__"); in getTargetDefines()
3294 Builder.defineMacro("__FMA__"); in getTargetDefines()
3297 Builder.defineMacro("__F16C__"); in getTargetDefines()
3300 Builder.defineMacro("__AVX512CD__"); in getTargetDefines()
3302 Builder.defineMacro("__AVX512ER__"); in getTargetDefines()
3304 Builder.defineMacro("__AVX512PF__"); in getTargetDefines()
3306 Builder.defineMacro("__AVX512DQ__"); in getTargetDefines()
3308 Builder.defineMacro("__AVX512BW__"); in getTargetDefines()
3310 Builder.defineMacro("__AVX512VL__"); in getTargetDefines()
3313 Builder.defineMacro("__SHA__"); in getTargetDefines()
3316 Builder.defineMacro("__FXSR__"); in getTargetDefines()
3318 Builder.defineMacro("__XSAVE__"); in getTargetDefines()
3320 Builder.defineMacro("__XSAVEOPT__"); in getTargetDefines()
3322 Builder.defineMacro("__XSAVEC__"); in getTargetDefines()
3324 Builder.defineMacro("__XSAVES__"); in getTargetDefines()
3327 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16"); in getTargetDefines()
3332 Builder.defineMacro("__AVX512F__"); in getTargetDefines()
3334 Builder.defineMacro("__AVX2__"); in getTargetDefines()
3336 Builder.defineMacro("__AVX__"); in getTargetDefines()
3338 Builder.defineMacro("__SSE4_2__"); in getTargetDefines()
3340 Builder.defineMacro("__SSE4_1__"); in getTargetDefines()
3342 Builder.defineMacro("__SSSE3__"); in getTargetDefines()
3344 Builder.defineMacro("__SSE3__"); in getTargetDefines()
3346 Builder.defineMacro("__SSE2__"); in getTargetDefines()
3347 Builder.defineMacro("__SSE2_MATH__"); // -mfp-math=sse always implied. in getTargetDefines()
3349 Builder.defineMacro("__SSE__"); in getTargetDefines()
3350 Builder.defineMacro("__SSE_MATH__"); // -mfp-math=sse always implied. in getTargetDefines()
3365 Builder.defineMacro("_M_IX86_FP", Twine(2)); in getTargetDefines()
3368 Builder.defineMacro("_M_IX86_FP", Twine(1)); in getTargetDefines()
3371 Builder.defineMacro("_M_IX86_FP", Twine(0)); in getTargetDefines()
3378 Builder.defineMacro("__3dNOW_A__"); in getTargetDefines()
3380 Builder.defineMacro("__3dNOW__"); in getTargetDefines()
3382 Builder.defineMacro("__MMX__"); in getTargetDefines()
3388 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
3389 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
3390 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
3393 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
3783 Builder.defineMacro("_M_IX86", "600"); in getTargetDefines()
3792 Builder.defineMacro("__declspec", "__declspec"); in addCygMingDefines()
3794 Builder.defineMacro("__declspec(a)", "__attribute__((a))"); in addCygMingDefines()
3805 Builder.defineMacro(Twine("_") + CC, GCCSpelling); in addCygMingDefines()
3806 Builder.defineMacro(Twine("__") + CC, GCCSpelling); in addCygMingDefines()
3812 Builder.defineMacro("__MSVCRT__"); in addMinGWDefines()
3813 Builder.defineMacro("__MINGW32__"); in addMinGWDefines()
3827 Builder.defineMacro("_X86_"); in getTargetDefines()
3844 Builder.defineMacro("_X86_"); in getTargetDefines()
3845 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
3846 Builder.defineMacro("__CYGWIN32__"); in getTargetDefines()
3850 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
3868 Builder.defineMacro("__INTEL__"); in getTargetDefines()
3869 Builder.defineMacro("__HAIKU__"); in getTargetDefines()
3889 Builder.defineMacro("__iamcu"); in getTargetDefines()
3890 Builder.defineMacro("__iamcu__"); in getTargetDefines()
3902 Builder.defineMacro("__rtems__"); in getOSDefines()
3903 Builder.defineMacro("__ELF__"); in getOSDefines()
3941 Builder.defineMacro("__INTEL__"); in getTargetDefines()
3942 Builder.defineMacro("__rtems__"); in getTargetDefines()
4045 Builder.defineMacro("_WIN64"); in getTargetDefines()
4081 Builder.defineMacro("_M_X64", "100"); in getTargetDefines()
4082 Builder.defineMacro("_M_AMD64", "100"); in getTargetDefines()
4101 Builder.defineMacro("__MINGW64__"); in getTargetDefines()
4106 Builder.defineMacro("__SEH__"); in getTargetDefines()
4121 Builder.defineMacro("__x86_64__"); in getTargetDefines()
4122 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
4123 Builder.defineMacro("__CYGWIN64__"); in getTargetDefines()
4127 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
4131 Builder.defineMacro("__SEH__"); in getTargetDefines()
4689 Builder.defineMacro("__arm"); in getTargetDefines()
4690 Builder.defineMacro("__arm__"); in getTargetDefines()
4693 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
4698 Builder.defineMacro("__ARM_ARCH_7K__", "2"); in getTargetDefines()
4701 Builder.defineMacro("__ARM_ARCH_" + CPUAttr + "__"); in getTargetDefines()
4705 Builder.defineMacro("__ARM_ARCH", llvm::utostr(ArchVersion)); in getTargetDefines()
4710 Builder.defineMacro("__ARM_FEATURE_CRYPTO", "1"); in getTargetDefines()
4713 Builder.defineMacro("__ARM_FEATURE_CRC32", "1"); in getTargetDefines()
4715 Builder.defineMacro("__ARM_FEATURE_NUMERIC_MAXMIN", "1"); in getTargetDefines()
4717 Builder.defineMacro("__ARM_FEATURE_DIRECTED_ROUNDING", "1"); in getTargetDefines()
4724 Builder.defineMacro("__ARM_ARCH_ISA_ARM", "1"); in getTargetDefines()
4730 Builder.defineMacro("__ARM_ARCH_ISA_THUMB", "2"); in getTargetDefines()
4732 Builder.defineMacro("__ARM_ARCH_ISA_THUMB", "1"); in getTargetDefines()
4736 Builder.defineMacro("__ARM_32BIT_STATE", "1"); in getTargetDefines()
4742 Builder.defineMacro("__ARM_ARCH_PROFILE", "'" + CPUProfile + "'"); in getTargetDefines()
4746 Builder.defineMacro("__ARM_FEATURE_UNALIGNED", "1"); in getTargetDefines()
4750 Builder.defineMacro("__ARM_FEATURE_LDREX", "0x" + llvm::utohexstr(LDREX)); in getTargetDefines()
4756 Builder.defineMacro("__ARM_FEATURE_CLZ", "1"); in getTargetDefines()
4760 Builder.defineMacro("__ARM_FP", "0x" + llvm::utohexstr(HW_FP)); in getTargetDefines()
4763 Builder.defineMacro("__ARM_ACLE", "200"); in getTargetDefines()
4766 Builder.defineMacro("__ARM_FP16_FORMAT_IEEE", "1"); in getTargetDefines()
4767 Builder.defineMacro("__ARM_FP16_ARGS", "1"); in getTargetDefines()
4771 Builder.defineMacro("__ARM_FEATURE_FMA", "1"); in getTargetDefines()
4779 Builder.defineMacro("__THUMB_INTERWORK__"); in getTargetDefines()
4785 Builder.defineMacro("__ARM_EABI__"); in getTargetDefines()
4786 Builder.defineMacro("__ARM_PCS", "1"); in getTargetDefines()
4789 Builder.defineMacro("__ARM_PCS_VFP", "1"); in getTargetDefines()
4793 Builder.defineMacro("__SOFTFP__"); in getTargetDefines()
4796 Builder.defineMacro("__XSCALE__"); in getTargetDefines()
4799 Builder.defineMacro("__THUMBEL__"); in getTargetDefines()
4800 Builder.defineMacro("__thumb__"); in getTargetDefines()
4802 Builder.defineMacro("__thumb2__"); in getTargetDefines()
4807 Builder.defineMacro("__ARM_FEATURE_SIMD32", "1"); in getTargetDefines()
4812 Builder.defineMacro("__ARM_FEATURE_IDIV", "1"); in getTargetDefines()
4813 Builder.defineMacro("__ARM_ARCH_EXT_IDIV__", "1"); in getTargetDefines()
4817 Builder.defineMacro("__APCS_32__"); in getTargetDefines()
4820 Builder.defineMacro("__VFP_FP__"); in getTargetDefines()
4822 Builder.defineMacro("__ARM_VFPV2__"); in getTargetDefines()
4824 Builder.defineMacro("__ARM_VFPV3__"); in getTargetDefines()
4826 Builder.defineMacro("__ARM_VFPV4__"); in getTargetDefines()
4834 Builder.defineMacro("__ARM_NEON", "1"); in getTargetDefines()
4835 Builder.defineMacro("__ARM_NEON__"); in getTargetDefines()
4838 Builder.defineMacro("__ARM_NEON_FP", in getTargetDefines()
4842 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", in getTargetDefines()
4845 Builder.defineMacro("__ARM_SIZEOF_MINIMAL_ENUM", in getTargetDefines()
4849 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
4850 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
4851 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
4852 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
4857 Builder.defineMacro("__ARM_FEATURE_DSP", "1"); in getTargetDefines()
4863 Builder.defineMacro("__ARM_FEATURE_SAT", "1"); in getTargetDefines()
4869 Builder.defineMacro("__ARM_FEATURE_QBIT", "1"); in getTargetDefines()
4872 Builder.defineMacro("__ARM_FP_FAST", "1"); in getTargetDefines()
4875 Builder.defineMacro("__ARM_FEATURE_QRDMX", "1"); in getTargetDefines()
5076 Builder.defineMacro("__ARMEL__"); in getTargetDefines()
5087 Builder.defineMacro("__ARMEB__"); in getTargetDefines()
5088 Builder.defineMacro("__ARM_BIG_ENDIAN"); in getTargetDefines()
5108 Builder.defineMacro("_M_ARM_NT", "1"); in getVisualStudioDefines()
5109 Builder.defineMacro("_M_ARMT", "_M_ARM"); in getVisualStudioDefines()
5110 Builder.defineMacro("_M_THUMB", "_M_ARM"); in getVisualStudioDefines()
5116 Builder.defineMacro("_M_ARM", Triple.getArchName().substr(Offset)); in getVisualStudioDefines()
5120 Builder.defineMacro("_M_ARM_FP", "31"); in getVisualStudioDefines()
5185 Builder.defineMacro("_ARM_"); in getTargetDefines()
5202 Builder.defineMacro("_ARM_"); in getTargetDefines()
5203 Builder.defineMacro("__CYGWIN__"); in getTargetDefines()
5204 Builder.defineMacro("__CYGWIN32__"); in getTargetDefines()
5207 Builder.defineMacro("_GNU_SOURCE"); in getTargetDefines()
5324 Builder.defineMacro("__aarch64__"); in getTargetDefines()
5327 Builder.defineMacro("_LP64"); in getTargetDefines()
5328 Builder.defineMacro("__LP64__"); in getTargetDefines()
5331 Builder.defineMacro("__ARM_ACLE", "200"); in getTargetDefines()
5332 Builder.defineMacro("__ARM_ARCH", "8"); in getTargetDefines()
5333 Builder.defineMacro("__ARM_ARCH_PROFILE", "'A'"); in getTargetDefines()
5335 Builder.defineMacro("__ARM_64BIT_STATE", "1"); in getTargetDefines()
5336 Builder.defineMacro("__ARM_PCS_AAPCS64", "1"); in getTargetDefines()
5337 Builder.defineMacro("__ARM_ARCH_ISA_A64", "1"); in getTargetDefines()
5339 Builder.defineMacro("__ARM_FEATURE_CLZ", "1"); in getTargetDefines()
5340 Builder.defineMacro("__ARM_FEATURE_FMA", "1"); in getTargetDefines()
5341 Builder.defineMacro("__ARM_FEATURE_LDREX", "0xF"); in getTargetDefines()
5342 Builder.defineMacro("__ARM_FEATURE_IDIV", "1"); // As specified in ACLE in getTargetDefines()
5343 Builder.defineMacro("__ARM_FEATURE_DIV"); // For backwards compatibility in getTargetDefines()
5344 Builder.defineMacro("__ARM_FEATURE_NUMERIC_MAXMIN", "1"); in getTargetDefines()
5345 Builder.defineMacro("__ARM_FEATURE_DIRECTED_ROUNDING", "1"); in getTargetDefines()
5347 Builder.defineMacro("__ARM_ALIGN_MAX_STACK_PWR", "4"); in getTargetDefines()
5350 Builder.defineMacro("__ARM_FP", "0xE"); in getTargetDefines()
5354 Builder.defineMacro("__ARM_FP16_FORMAT_IEEE", "1"); in getTargetDefines()
5355 Builder.defineMacro("__ARM_FP16_ARGS", "1"); in getTargetDefines()
5358 Builder.defineMacro("__ARM_FP_FAST", "1"); in getTargetDefines()
5360 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", Opts.ShortWChar ? "2" : "4"); in getTargetDefines()
5362 Builder.defineMacro("__ARM_SIZEOF_MINIMAL_ENUM", in getTargetDefines()
5366 Builder.defineMacro("__ARM_NEON", "1"); in getTargetDefines()
5368 Builder.defineMacro("__ARM_NEON_FP", "0xE"); in getTargetDefines()
5372 Builder.defineMacro("__ARM_FEATURE_CRC32", "1"); in getTargetDefines()
5375 Builder.defineMacro("__ARM_FEATURE_CRYPTO", "1"); in getTargetDefines()
5378 Builder.defineMacro("__ARM_FEATURE_UNALIGNED", "1"); in getTargetDefines()
5381 Builder.defineMacro("__ARM_FEATURE_QRDMX", "1"); in getTargetDefines()
5384 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); in getTargetDefines()
5385 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); in getTargetDefines()
5386 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); in getTargetDefines()
5387 Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8"); in getTargetDefines()
5587 Builder.defineMacro("__AARCH64EL__"); in getTargetDefines()
5603 Builder.defineMacro("__AARCH64EB__"); in getTargetDefines()
5604 Builder.defineMacro("__AARCH_BIG_ENDIAN"); in getTargetDefines()
5605 Builder.defineMacro("__ARM_BIG_ENDIAN"); in getTargetDefines()
5614 Builder.defineMacro("__AARCH64_SIMD__"); in getOSDefines()
5615 Builder.defineMacro("__ARM64_ARCH_8__"); in getOSDefines()
5616 Builder.defineMacro("__ARM_NEON__"); in getOSDefines()
5617 Builder.defineMacro("__LITTLE_ENDIAN__"); in getOSDefines()
5618 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getOSDefines()
5619 Builder.defineMacro("__arm64", "1"); in getOSDefines()
5620 Builder.defineMacro("__arm64__", "1"); in getOSDefines()
5734 Builder.defineMacro("__qdsp6__", "1"); in getTargetDefines()
5735 Builder.defineMacro("__hexagon__", "1"); in getTargetDefines()
5738 Builder.defineMacro("__HEXAGON_V4__"); in getTargetDefines()
5739 Builder.defineMacro("__HEXAGON_ARCH__", "4"); in getTargetDefines()
5741 Builder.defineMacro("__QDSP6_V4__"); in getTargetDefines()
5742 Builder.defineMacro("__QDSP6_ARCH__", "4"); in getTargetDefines()
5745 Builder.defineMacro("__HEXAGON_V5__"); in getTargetDefines()
5746 Builder.defineMacro("__HEXAGON_ARCH__", "5"); in getTargetDefines()
5748 Builder.defineMacro("__QDSP6_V5__"); in getTargetDefines()
5749 Builder.defineMacro("__QDSP6_ARCH__", "5"); in getTargetDefines()
5752 Builder.defineMacro("__HEXAGON_V60__"); in getTargetDefines()
5753 Builder.defineMacro("__HEXAGON_ARCH__", "60"); in getTargetDefines()
5754 Builder.defineMacro("__QDSP6_V60__"); in getTargetDefines()
5755 Builder.defineMacro("__QDSP6_ARCH__", "60"); in getTargetDefines()
5840 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
5843 Builder.defineMacro("SOFT_FLOAT", "1"); in getTargetDefines()
6033 Builder.defineMacro("__sparcv8"); in getTargetDefines()
6035 Builder.defineMacro("__sparcv8__"); in getTargetDefines()
6038 Builder.defineMacro("__sparcv9"); in getTargetDefines()
6040 Builder.defineMacro("__sparcv9__"); in getTargetDefines()
6041 Builder.defineMacro("__sparc_v9__"); in getTargetDefines()
6084 Builder.defineMacro("__sparcv9"); in getTargetDefines()
6085 Builder.defineMacro("__arch64__"); in getTargetDefines()
6088 Builder.defineMacro("__sparc64__"); in getTargetDefines()
6089 Builder.defineMacro("__sparc_v9__"); in getTargetDefines()
6090 Builder.defineMacro("__sparcv9__"); in getTargetDefines()
6128 Builder.defineMacro("__s390__"); in getTargetDefines()
6129 Builder.defineMacro("__s390x__"); in getTargetDefines()
6130 Builder.defineMacro("__zarch__"); in getTargetDefines()
6131 Builder.defineMacro("__LONG_DOUBLE_128__"); in getTargetDefines()
6133 Builder.defineMacro("__HTM__"); in getTargetDefines()
6135 Builder.defineMacro("__VEC__", "10301"); in getTargetDefines()
6287 Builder.defineMacro("MSP430"); in getTargetDefines()
6288 Builder.defineMacro("__MSP430__"); in getTargetDefines()
6385 Builder.defineMacro("__TCE__"); in getTargetDefines()
6386 Builder.defineMacro("__TCE_V1__"); in getTargetDefines()
6429 Builder.defineMacro("__BPF__"); in getTargetDefines()
6535 Builder.defineMacro("__mips__"); in getTargetDefines()
6536 Builder.defineMacro("_mips"); in getTargetDefines()
6538 Builder.defineMacro("mips"); in getTargetDefines()
6540 Builder.defineMacro("__REGISTER_PREFIX__", ""); in getTargetDefines()
6544 Builder.defineMacro("__mips_hard_float", Twine(1)); in getTargetDefines()
6547 Builder.defineMacro("__mips_soft_float", Twine(1)); in getTargetDefines()
6552 Builder.defineMacro("__mips_single_float", Twine(1)); in getTargetDefines()
6554 Builder.defineMacro("__mips_fpr", HasFP64 ? Twine(64) : Twine(32)); in getTargetDefines()
6555 Builder.defineMacro("_MIPS_FPSET", in getTargetDefines()
6559 Builder.defineMacro("__mips16", Twine(1)); in getTargetDefines()
6562 Builder.defineMacro("__mips_micromips", Twine(1)); in getTargetDefines()
6565 Builder.defineMacro("__mips_nan2008", Twine(1)); in getTargetDefines()
6571 Builder.defineMacro("__mips_dsp_rev", Twine(1)); in getTargetDefines()
6572 Builder.defineMacro("__mips_dsp", Twine(1)); in getTargetDefines()
6575 Builder.defineMacro("__mips_dsp_rev", Twine(2)); in getTargetDefines()
6576 Builder.defineMacro("__mips_dspr2", Twine(1)); in getTargetDefines()
6577 Builder.defineMacro("__mips_dsp", Twine(1)); in getTargetDefines()
6582 Builder.defineMacro("__mips_msa", Twine(1)); in getTargetDefines()
6584 Builder.defineMacro("_MIPS_SZPTR", Twine(getPointerWidth(0))); in getTargetDefines()
6585 Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth())); in getTargetDefines()
6586 Builder.defineMacro("_MIPS_SZLONG", Twine(getLongWidth())); in getTargetDefines()
6588 Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\""); in getTargetDefines()
6589 Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper()); in getTargetDefines()
6786 Builder.defineMacro("__mips", "32"); in getTargetDefines()
6787 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS32"); in getTargetDefines()
6791 Builder.defineMacro("__mips_isa_rev", "1"); in getTargetDefines()
6793 Builder.defineMacro("__mips_isa_rev", "2"); in getTargetDefines()
6795 Builder.defineMacro("__mips_isa_rev", "3"); in getTargetDefines()
6797 Builder.defineMacro("__mips_isa_rev", "5"); in getTargetDefines()
6799 Builder.defineMacro("__mips_isa_rev", "6"); in getTargetDefines()
6802 Builder.defineMacro("__mips_o32"); in getTargetDefines()
6803 Builder.defineMacro("_ABIO32", "1"); in getTargetDefines()
6804 Builder.defineMacro("_MIPS_SIM", "_ABIO32"); in getTargetDefines()
6807 Builder.defineMacro("__mips_eabi"); in getTargetDefines()
6861 Builder.defineMacro("_MIPSEB"); in getTargetDefines()
6879 Builder.defineMacro("_MIPSEL"); in getTargetDefines()
6935 Builder.defineMacro("__mips", "64"); in getTargetDefines()
6936 Builder.defineMacro("__mips64"); in getTargetDefines()
6937 Builder.defineMacro("__mips64__"); in getTargetDefines()
6938 Builder.defineMacro("_MIPS_ISA", "_MIPS_ISA_MIPS64"); in getTargetDefines()
6942 Builder.defineMacro("__mips_isa_rev", "1"); in getTargetDefines()
6944 Builder.defineMacro("__mips_isa_rev", "2"); in getTargetDefines()
6946 Builder.defineMacro("__mips_isa_rev", "3"); in getTargetDefines()
6948 Builder.defineMacro("__mips_isa_rev", "5"); in getTargetDefines()
6950 Builder.defineMacro("__mips_isa_rev", "6"); in getTargetDefines()
6953 Builder.defineMacro("__mips_n32"); in getTargetDefines()
6954 Builder.defineMacro("_ABIN32", "2"); in getTargetDefines()
6955 Builder.defineMacro("_MIPS_SIM", "_ABIN32"); in getTargetDefines()
6958 Builder.defineMacro("__mips_n64"); in getTargetDefines()
6959 Builder.defineMacro("_ABI64", "3"); in getTargetDefines()
6960 Builder.defineMacro("_MIPS_SIM", "_ABI64"); in getTargetDefines()
7020 Builder.defineMacro("_MIPSEB"); in getTargetDefines()
7041 Builder.defineMacro("_MIPSEL"); in getTargetDefines()
7067 Builder.defineMacro("__le32__"); in getArchDefines()
7068 Builder.defineMacro("__pnacl__"); in getArchDefines()
7129 Builder.defineMacro("__ELF__"); in getTargetDefines()
7180 Builder.defineMacro("__wasm_simd128__"); in getTargetDefines()
7413 Builder.defineMacro("__XS1B__"); in getTargetDefines()