Lines Matching refs:defineMacro
57 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
59 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
62 Builder.defineMacro(Macro); in DefineBuiltinMacro()
160 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros()
161 Builder.defineMacro(DefPrefix + "HAS_DENORM__"); in DefineFloatMacros()
162 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros()
163 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros()
164 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros()
165 Builder.defineMacro(DefPrefix + "HAS_INFINITY__"); in DefineFloatMacros()
166 Builder.defineMacro(DefPrefix + "HAS_QUIET_NAN__"); in DefineFloatMacros()
167 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros()
169 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros()
170 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); in DefineFloatMacros()
171 Builder.defineMacro(DefPrefix + "MAX__", Twine(Max)+Ext); in DefineFloatMacros()
173 Builder.defineMacro(DefPrefix + "MIN_10_EXP__","("+Twine(Min10Exp)+")"); in DefineFloatMacros()
174 Builder.defineMacro(DefPrefix + "MIN_EXP__", "("+Twine(MinExp)+")"); in DefineFloatMacros()
175 Builder.defineMacro(DefPrefix + "MIN__", Twine(Min)+Ext); in DefineFloatMacros()
187 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize()
203 Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__", in DefineFmt()
210 Builder.defineMacro(MacroName, TargetInfo::getTypeName(Ty)); in DefineType()
215 Builder.defineMacro(MacroName, Twine(TI.getTypeWidth(Ty))); in DefineTypeWidth()
220 Builder.defineMacro(MacroName, in DefineTypeSizeof()
241 Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix); in DefineExactWidthIntType()
306 Builder.defineMacro("_GLIBCXX_PREDEFINED_OBJC_ARC_IS_SCALAR"); in AddObjCXXARCLibstdcxxDefines()
360 Builder.defineMacro("__STDC__"); in InitializeStandardPredefinedMacros()
362 Builder.defineMacro("__STDC_HOSTED__", "0"); in InitializeStandardPredefinedMacros()
364 Builder.defineMacro("__STDC_HOSTED__"); in InitializeStandardPredefinedMacros()
368 Builder.defineMacro("__STDC_VERSION__", "201112L"); in InitializeStandardPredefinedMacros()
370 Builder.defineMacro("__STDC_VERSION__", "199901L"); in InitializeStandardPredefinedMacros()
372 Builder.defineMacro("__STDC_VERSION__", "199409L"); in InitializeStandardPredefinedMacros()
376 Builder.defineMacro("__cplusplus", "201406L"); in InitializeStandardPredefinedMacros()
381 Builder.defineMacro("__cplusplus", "201402L"); in InitializeStandardPredefinedMacros()
386 Builder.defineMacro("__cplusplus", "201103L"); in InitializeStandardPredefinedMacros()
391 Builder.defineMacro("__cplusplus", "199711L"); in InitializeStandardPredefinedMacros()
399 Builder.defineMacro("__STDC_UTF_16__", "1"); in InitializeStandardPredefinedMacros()
400 Builder.defineMacro("__STDC_UTF_32__", "1"); in InitializeStandardPredefinedMacros()
403 Builder.defineMacro("__OBJC__"); in InitializeStandardPredefinedMacros()
407 Builder.defineMacro("__ASSEMBLER__"); in InitializeStandardPredefinedMacros()
416 Builder.defineMacro("__cpp_rtti", "199711"); in InitializeCPlusPlusFeatureTestMacros()
418 Builder.defineMacro("__cpp_exceptions", "199711"); in InitializeCPlusPlusFeatureTestMacros()
422 Builder.defineMacro("__cpp_unicode_characters", "200704"); in InitializeCPlusPlusFeatureTestMacros()
423 Builder.defineMacro("__cpp_raw_strings", "200710"); in InitializeCPlusPlusFeatureTestMacros()
424 Builder.defineMacro("__cpp_unicode_literals", "200710"); in InitializeCPlusPlusFeatureTestMacros()
425 Builder.defineMacro("__cpp_user_defined_literals", "200809"); in InitializeCPlusPlusFeatureTestMacros()
426 Builder.defineMacro("__cpp_lambdas", "200907"); in InitializeCPlusPlusFeatureTestMacros()
427 Builder.defineMacro("__cpp_constexpr", in InitializeCPlusPlusFeatureTestMacros()
429 Builder.defineMacro("__cpp_range_based_for", "200907"); in InitializeCPlusPlusFeatureTestMacros()
430 Builder.defineMacro("__cpp_static_assert", "200410"); in InitializeCPlusPlusFeatureTestMacros()
431 Builder.defineMacro("__cpp_decltype", "200707"); in InitializeCPlusPlusFeatureTestMacros()
432 Builder.defineMacro("__cpp_attributes", "200809"); in InitializeCPlusPlusFeatureTestMacros()
433 Builder.defineMacro("__cpp_rvalue_references", "200610"); in InitializeCPlusPlusFeatureTestMacros()
434 Builder.defineMacro("__cpp_variadic_templates", "200704"); in InitializeCPlusPlusFeatureTestMacros()
435 Builder.defineMacro("__cpp_initializer_lists", "200806"); in InitializeCPlusPlusFeatureTestMacros()
436 Builder.defineMacro("__cpp_delegating_constructors", "200604"); in InitializeCPlusPlusFeatureTestMacros()
437 Builder.defineMacro("__cpp_nsdmi", "200809"); in InitializeCPlusPlusFeatureTestMacros()
438 Builder.defineMacro("__cpp_inheriting_constructors", "200802"); in InitializeCPlusPlusFeatureTestMacros()
439 Builder.defineMacro("__cpp_ref_qualifiers", "200710"); in InitializeCPlusPlusFeatureTestMacros()
440 Builder.defineMacro("__cpp_alias_templates", "200704"); in InitializeCPlusPlusFeatureTestMacros()
445 Builder.defineMacro("__cpp_binary_literals", "201304"); in InitializeCPlusPlusFeatureTestMacros()
446 Builder.defineMacro("__cpp_digit_separators", "201309"); in InitializeCPlusPlusFeatureTestMacros()
447 Builder.defineMacro("__cpp_init_captures", "201304"); in InitializeCPlusPlusFeatureTestMacros()
448 Builder.defineMacro("__cpp_generic_lambdas", "201304"); in InitializeCPlusPlusFeatureTestMacros()
449 Builder.defineMacro("__cpp_decltype_auto", "201304"); in InitializeCPlusPlusFeatureTestMacros()
450 Builder.defineMacro("__cpp_return_type_deduction", "201304"); in InitializeCPlusPlusFeatureTestMacros()
451 Builder.defineMacro("__cpp_aggregate_nsdmi", "201304"); in InitializeCPlusPlusFeatureTestMacros()
452 Builder.defineMacro("__cpp_variable_templates", "201304"); in InitializeCPlusPlusFeatureTestMacros()
455 Builder.defineMacro("__cpp_sized_deallocation", "201309"); in InitializeCPlusPlusFeatureTestMacros()
463 Builder.defineMacro("__llvm__"); // LLVM Backend in InitializePredefinedMacros()
464 Builder.defineMacro("__clang__"); // Clang Frontend in InitializePredefinedMacros()
467 Builder.defineMacro("__clang_major__", TOSTR(CLANG_VERSION_MAJOR)); in InitializePredefinedMacros()
468 Builder.defineMacro("__clang_minor__", TOSTR(CLANG_VERSION_MINOR)); in InitializePredefinedMacros()
470 Builder.defineMacro("__clang_patchlevel__", TOSTR(CLANG_VERSION_PATCHLEVEL)); in InitializePredefinedMacros()
472 Builder.defineMacro("__clang_patchlevel__", "0"); in InitializePredefinedMacros()
474 Builder.defineMacro("__clang_version__", in InitializePredefinedMacros()
482 Builder.defineMacro("__GNUC_MINOR__", "2"); in InitializePredefinedMacros()
483 Builder.defineMacro("__GNUC_PATCHLEVEL__", "1"); in InitializePredefinedMacros()
484 Builder.defineMacro("__GNUC__", "4"); in InitializePredefinedMacros()
485 Builder.defineMacro("__GXX_ABI_VERSION", "1002"); in InitializePredefinedMacros()
489 Builder.defineMacro("__ATOMIC_RELAXED", "0"); in InitializePredefinedMacros()
490 Builder.defineMacro("__ATOMIC_CONSUME", "1"); in InitializePredefinedMacros()
491 Builder.defineMacro("__ATOMIC_ACQUIRE", "2"); in InitializePredefinedMacros()
492 Builder.defineMacro("__ATOMIC_RELEASE", "3"); in InitializePredefinedMacros()
493 Builder.defineMacro("__ATOMIC_ACQ_REL", "4"); in InitializePredefinedMacros()
494 Builder.defineMacro("__ATOMIC_SEQ_CST", "5"); in InitializePredefinedMacros()
497 Builder.defineMacro("__PRAGMA_REDEFINE_EXTNAME", "1"); in InitializePredefinedMacros()
502 Builder.defineMacro("__VERSION__", "\"4.2.1 Compatible " + in InitializePredefinedMacros()
509 Builder.defineMacro("__STRICT_ANSI__"); in InitializePredefinedMacros()
512 Builder.defineMacro("__GXX_EXPERIMENTAL_CXX0X__"); in InitializePredefinedMacros()
516 Builder.defineMacro("__OBJC2__"); in InitializePredefinedMacros()
519 Builder.defineMacro("OBJC_ZEROCOST_EXCEPTIONS"); in InitializePredefinedMacros()
523 Builder.defineMacro("__OBJC_GC__"); in InitializePredefinedMacros()
526 Builder.defineMacro("__NEXT_RUNTIME__"); in InitializePredefinedMacros()
539 Builder.defineMacro("__OBJFW_RUNTIME_ABI__", in InitializePredefinedMacros()
544 Builder.defineMacro("IBOutlet", "__attribute__((iboutlet))"); in InitializePredefinedMacros()
545 Builder.defineMacro("IBOutletCollection(ClassName)", in InitializePredefinedMacros()
547 Builder.defineMacro("IBAction", "void)__attribute__((ibaction)"); in InitializePredefinedMacros()
548 Builder.defineMacro("IBInspectable", ""); in InitializePredefinedMacros()
549 Builder.defineMacro("IB_DESIGNABLE", ""); in InitializePredefinedMacros()
558 Builder.defineMacro("__CONSTANT_CFSTRINGS__"); in InitializePredefinedMacros()
561 Builder.defineMacro("OBJC_NEW_PROPERTIES"); in InitializePredefinedMacros()
564 Builder.defineMacro("__PASCAL_STRINGS__"); in InitializePredefinedMacros()
567 Builder.defineMacro("__block", "__attribute__((__blocks__(byref)))"); in InitializePredefinedMacros()
568 Builder.defineMacro("__BLOCKS__"); in InitializePredefinedMacros()
572 Builder.defineMacro("__EXCEPTIONS"); in InitializePredefinedMacros()
574 Builder.defineMacro("__GXX_RTTI"); in InitializePredefinedMacros()
576 Builder.defineMacro("__USING_SJLJ_EXCEPTIONS__"); in InitializePredefinedMacros()
579 Builder.defineMacro("__DEPRECATED"); in InitializePredefinedMacros()
582 Builder.defineMacro("__GNUG__", "4"); in InitializePredefinedMacros()
583 Builder.defineMacro("__GXX_WEAK__"); in InitializePredefinedMacros()
584 Builder.defineMacro("__private_extern__", "extern"); in InitializePredefinedMacros()
590 Builder.defineMacro("_WCHAR_T_DEFINED"); in InitializePredefinedMacros()
591 Builder.defineMacro("_NATIVE_WCHAR_T_DEFINED"); in InitializePredefinedMacros()
596 Builder.defineMacro("__OPTIMIZE__"); in InitializePredefinedMacros()
598 Builder.defineMacro("__OPTIMIZE_SIZE__"); in InitializePredefinedMacros()
601 Builder.defineMacro("__FAST_MATH__"); in InitializePredefinedMacros()
610 Builder.defineMacro("__ORDER_LITTLE_ENDIAN__", "1234"); in InitializePredefinedMacros()
611 Builder.defineMacro("__ORDER_BIG_ENDIAN__", "4321"); in InitializePredefinedMacros()
612 Builder.defineMacro("__ORDER_PDP_ENDIAN__", "3412"); in InitializePredefinedMacros()
614 Builder.defineMacro("__BYTE_ORDER__", "__ORDER_BIG_ENDIAN__"); in InitializePredefinedMacros()
615 Builder.defineMacro("__BIG_ENDIAN__"); in InitializePredefinedMacros()
617 Builder.defineMacro("__BYTE_ORDER__", "__ORDER_LITTLE_ENDIAN__"); in InitializePredefinedMacros()
618 Builder.defineMacro("__LITTLE_ENDIAN__"); in InitializePredefinedMacros()
623 Builder.defineMacro("_LP64"); in InitializePredefinedMacros()
624 Builder.defineMacro("__LP64__"); in InitializePredefinedMacros()
629 Builder.defineMacro("_ILP32"); in InitializePredefinedMacros()
630 Builder.defineMacro("__ILP32__"); in InitializePredefinedMacros()
635 Builder.defineMacro("__CHAR_BIT__", "8"); in InitializePredefinedMacros()
672 Builder.defineMacro("__INTMAX_C_SUFFIX__", in InitializePredefinedMacros()
676 Builder.defineMacro("__UINTMAX_C_SUFFIX__", in InitializePredefinedMacros()
707 Builder.defineMacro("__POINTER_WIDTH__", in InitializePredefinedMacros()
711 Builder.defineMacro("__BIGGEST_ALIGNMENT__", in InitializePredefinedMacros()
715 Builder.defineMacro("__CHAR_UNSIGNED__"); in InitializePredefinedMacros()
718 Builder.defineMacro("__WCHAR_UNSIGNED__"); in InitializePredefinedMacros()
721 Builder.defineMacro("__WINT_UNSIGNED__"); in InitializePredefinedMacros()
785 Builder.defineMacro("__USER_LABEL_PREFIX__", Prefix); in InitializePredefinedMacros()
788 Builder.defineMacro("__FINITE_MATH_ONLY__", "1"); in InitializePredefinedMacros()
790 Builder.defineMacro("__FINITE_MATH_ONLY__", "0"); in InitializePredefinedMacros()
794 Builder.defineMacro("__GNUC_GNU_INLINE__"); in InitializePredefinedMacros()
796 Builder.defineMacro("__GNUC_STDC_INLINE__"); in InitializePredefinedMacros()
800 Builder.defineMacro("__GCC_ATOMIC_TEST_AND_SET_TRUEVAL", "1"); in InitializePredefinedMacros()
805 Builder.defineMacro("__GCC_ATOMIC_" #TYPE "_LOCK_FREE", \ in InitializePredefinedMacros()
818 Builder.defineMacro("__GCC_ATOMIC_POINTER_LOCK_FREE", in InitializePredefinedMacros()
826 Builder.defineMacro("__NO_INLINE__"); in InitializePredefinedMacros()
829 Builder.defineMacro("__PIC__", Twine(PICLevel)); in InitializePredefinedMacros()
830 Builder.defineMacro("__pic__", Twine(PICLevel)); in InitializePredefinedMacros()
833 Builder.defineMacro("__PIE__", Twine(PIELevel)); in InitializePredefinedMacros()
834 Builder.defineMacro("__pie__", Twine(PIELevel)); in InitializePredefinedMacros()
838 Builder.defineMacro("__FLT_EVAL_METHOD__", Twine(TI.getFloatEvalMethod())); in InitializePredefinedMacros()
839 Builder.defineMacro("__FLT_RADIX__", "2"); in InitializePredefinedMacros()
840 Builder.defineMacro("__DECIMAL_DIG__", "__LDBL_DECIMAL_DIG__"); in InitializePredefinedMacros()
843 Builder.defineMacro("__SSP__"); in InitializePredefinedMacros()
845 Builder.defineMacro("__SSP_STRONG__", "2"); in InitializePredefinedMacros()
847 Builder.defineMacro("__SSP_ALL__", "3"); in InitializePredefinedMacros()
850 Builder.defineMacro("__weak", "__attribute__((objc_gc(weak)))"); in InitializePredefinedMacros()
854 Builder.defineMacro("__clang_analyzer__"); in InitializePredefinedMacros()
857 Builder.defineMacro("__FAST_RELAXED_MATH__"); in InitializePredefinedMacros()
860 Builder.defineMacro("__weak", "__attribute__((objc_ownership(weak)))"); in InitializePredefinedMacros()
861 Builder.defineMacro("__strong", "__attribute__((objc_ownership(strong)))"); in InitializePredefinedMacros()
862 Builder.defineMacro("__autoreleasing", in InitializePredefinedMacros()
864 Builder.defineMacro("__unsafe_unretained", in InitializePredefinedMacros()
875 Builder.defineMacro("_OPENMP", "201307"); in InitializePredefinedMacros()
882 Builder.defineMacro("__CUDA_ARCH__"); in InitializePredefinedMacros()