Lines Matching refs:defineMacro
58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
60 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
63 Builder.defineMacro(Macro); in DefineBuiltinMacro()
162 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros()
163 Builder.defineMacro(DefPrefix + "HAS_DENORM__"); in DefineFloatMacros()
164 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros()
165 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros()
166 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros()
167 Builder.defineMacro(DefPrefix + "HAS_INFINITY__"); in DefineFloatMacros()
168 Builder.defineMacro(DefPrefix + "HAS_QUIET_NAN__"); in DefineFloatMacros()
169 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros()
171 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros()
172 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); in DefineFloatMacros()
173 Builder.defineMacro(DefPrefix + "MAX__", Twine(Max)+Ext); in DefineFloatMacros()
175 Builder.defineMacro(DefPrefix + "MIN_10_EXP__","("+Twine(Min10Exp)+")"); in DefineFloatMacros()
176 Builder.defineMacro(DefPrefix + "MIN_EXP__", "("+Twine(MinExp)+")"); in DefineFloatMacros()
177 Builder.defineMacro(DefPrefix + "MIN__", Twine(Min)+Ext); in DefineFloatMacros()
189 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize()
205 Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__", in DefineFmt()
212 Builder.defineMacro(MacroName, TargetInfo::getTypeName(Ty)); in DefineType()
217 Builder.defineMacro(MacroName, Twine(TI.getTypeWidth(Ty))); in DefineTypeWidth()
222 Builder.defineMacro(MacroName, in DefineTypeSizeof()
243 Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix); in DefineExactWidthIntType()
308 Builder.defineMacro("_GLIBCXX_PREDEFINED_OBJC_ARC_IS_SCALAR"); in AddObjCXXARCLibstdcxxDefines()
366 Builder.defineMacro("__STDC__"); in InitializeStandardPredefinedMacros()
368 Builder.defineMacro("__STDC_HOSTED__", "0"); in InitializeStandardPredefinedMacros()
370 Builder.defineMacro("__STDC_HOSTED__"); in InitializeStandardPredefinedMacros()
374 Builder.defineMacro("__STDC_VERSION__", "201112L"); in InitializeStandardPredefinedMacros()
376 Builder.defineMacro("__STDC_VERSION__", "199901L"); in InitializeStandardPredefinedMacros()
378 Builder.defineMacro("__STDC_VERSION__", "199409L"); in InitializeStandardPredefinedMacros()
382 Builder.defineMacro("__cplusplus", "201406L"); in InitializeStandardPredefinedMacros()
387 Builder.defineMacro("__cplusplus", "201402L"); in InitializeStandardPredefinedMacros()
392 Builder.defineMacro("__cplusplus", "201103L"); in InitializeStandardPredefinedMacros()
397 Builder.defineMacro("__cplusplus", "199711L"); in InitializeStandardPredefinedMacros()
405 Builder.defineMacro("__STDC_UTF_16__", "1"); in InitializeStandardPredefinedMacros()
406 Builder.defineMacro("__STDC_UTF_32__", "1"); in InitializeStandardPredefinedMacros()
409 Builder.defineMacro("__OBJC__"); in InitializeStandardPredefinedMacros()
413 Builder.defineMacro("__ASSEMBLER__"); in InitializeStandardPredefinedMacros()
415 Builder.defineMacro("__CUDA__"); in InitializeStandardPredefinedMacros()
424 Builder.defineMacro("__cpp_rtti", "199711"); in InitializeCPlusPlusFeatureTestMacros()
426 Builder.defineMacro("__cpp_exceptions", "199711"); in InitializeCPlusPlusFeatureTestMacros()
430 Builder.defineMacro("__cpp_unicode_characters", "200704"); in InitializeCPlusPlusFeatureTestMacros()
431 Builder.defineMacro("__cpp_raw_strings", "200710"); in InitializeCPlusPlusFeatureTestMacros()
432 Builder.defineMacro("__cpp_unicode_literals", "200710"); in InitializeCPlusPlusFeatureTestMacros()
433 Builder.defineMacro("__cpp_user_defined_literals", "200809"); in InitializeCPlusPlusFeatureTestMacros()
434 Builder.defineMacro("__cpp_lambdas", "200907"); in InitializeCPlusPlusFeatureTestMacros()
435 Builder.defineMacro("__cpp_constexpr", in InitializeCPlusPlusFeatureTestMacros()
437 Builder.defineMacro("__cpp_range_based_for", "200907"); in InitializeCPlusPlusFeatureTestMacros()
438 Builder.defineMacro("__cpp_static_assert", "200410"); in InitializeCPlusPlusFeatureTestMacros()
439 Builder.defineMacro("__cpp_decltype", "200707"); in InitializeCPlusPlusFeatureTestMacros()
440 Builder.defineMacro("__cpp_attributes", "200809"); in InitializeCPlusPlusFeatureTestMacros()
441 Builder.defineMacro("__cpp_rvalue_references", "200610"); in InitializeCPlusPlusFeatureTestMacros()
442 Builder.defineMacro("__cpp_variadic_templates", "200704"); in InitializeCPlusPlusFeatureTestMacros()
443 Builder.defineMacro("__cpp_initializer_lists", "200806"); in InitializeCPlusPlusFeatureTestMacros()
444 Builder.defineMacro("__cpp_delegating_constructors", "200604"); in InitializeCPlusPlusFeatureTestMacros()
445 Builder.defineMacro("__cpp_nsdmi", "200809"); in InitializeCPlusPlusFeatureTestMacros()
446 Builder.defineMacro("__cpp_inheriting_constructors", "200802"); in InitializeCPlusPlusFeatureTestMacros()
447 Builder.defineMacro("__cpp_ref_qualifiers", "200710"); in InitializeCPlusPlusFeatureTestMacros()
448 Builder.defineMacro("__cpp_alias_templates", "200704"); in InitializeCPlusPlusFeatureTestMacros()
453 Builder.defineMacro("__cpp_binary_literals", "201304"); in InitializeCPlusPlusFeatureTestMacros()
454 Builder.defineMacro("__cpp_digit_separators", "201309"); in InitializeCPlusPlusFeatureTestMacros()
455 Builder.defineMacro("__cpp_init_captures", "201304"); in InitializeCPlusPlusFeatureTestMacros()
456 Builder.defineMacro("__cpp_generic_lambdas", "201304"); in InitializeCPlusPlusFeatureTestMacros()
457 Builder.defineMacro("__cpp_decltype_auto", "201304"); in InitializeCPlusPlusFeatureTestMacros()
458 Builder.defineMacro("__cpp_return_type_deduction", "201304"); in InitializeCPlusPlusFeatureTestMacros()
459 Builder.defineMacro("__cpp_aggregate_nsdmi", "201304"); in InitializeCPlusPlusFeatureTestMacros()
460 Builder.defineMacro("__cpp_variable_templates", "201304"); in InitializeCPlusPlusFeatureTestMacros()
463 Builder.defineMacro("__cpp_sized_deallocation", "201309"); in InitializeCPlusPlusFeatureTestMacros()
465 Builder.defineMacro("__cpp_experimental_concepts", "1"); in InitializeCPlusPlusFeatureTestMacros()
467 Builder.defineMacro("__cpp_coroutines", "1"); in InitializeCPlusPlusFeatureTestMacros()
475 Builder.defineMacro("__llvm__"); // LLVM Backend in InitializePredefinedMacros()
476 Builder.defineMacro("__clang__"); // Clang Frontend in InitializePredefinedMacros()
479 Builder.defineMacro("__clang_major__", TOSTR(CLANG_VERSION_MAJOR)); in InitializePredefinedMacros()
480 Builder.defineMacro("__clang_minor__", TOSTR(CLANG_VERSION_MINOR)); in InitializePredefinedMacros()
482 Builder.defineMacro("__clang_patchlevel__", TOSTR(CLANG_VERSION_PATCHLEVEL)); in InitializePredefinedMacros()
484 Builder.defineMacro("__clang_patchlevel__", "0"); in InitializePredefinedMacros()
486 Builder.defineMacro("__clang_version__", in InitializePredefinedMacros()
494 Builder.defineMacro("__GNUC_MINOR__", "2"); in InitializePredefinedMacros()
495 Builder.defineMacro("__GNUC_PATCHLEVEL__", "1"); in InitializePredefinedMacros()
496 Builder.defineMacro("__GNUC__", "4"); in InitializePredefinedMacros()
497 Builder.defineMacro("__GXX_ABI_VERSION", "1002"); in InitializePredefinedMacros()
501 Builder.defineMacro("__ATOMIC_RELAXED", "0"); in InitializePredefinedMacros()
502 Builder.defineMacro("__ATOMIC_CONSUME", "1"); in InitializePredefinedMacros()
503 Builder.defineMacro("__ATOMIC_ACQUIRE", "2"); in InitializePredefinedMacros()
504 Builder.defineMacro("__ATOMIC_RELEASE", "3"); in InitializePredefinedMacros()
505 Builder.defineMacro("__ATOMIC_ACQ_REL", "4"); in InitializePredefinedMacros()
506 Builder.defineMacro("__ATOMIC_SEQ_CST", "5"); in InitializePredefinedMacros()
509 Builder.defineMacro("__PRAGMA_REDEFINE_EXTNAME", "1"); in InitializePredefinedMacros()
514 Builder.defineMacro("__VERSION__", "\"4.2.1 Compatible " + in InitializePredefinedMacros()
521 Builder.defineMacro("__STRICT_ANSI__"); in InitializePredefinedMacros()
524 Builder.defineMacro("__GXX_EXPERIMENTAL_CXX0X__"); in InitializePredefinedMacros()
528 Builder.defineMacro("__OBJC2__"); in InitializePredefinedMacros()
531 Builder.defineMacro("OBJC_ZEROCOST_EXCEPTIONS"); in InitializePredefinedMacros()
535 Builder.defineMacro("__OBJC_GC__"); in InitializePredefinedMacros()
538 Builder.defineMacro("__NEXT_RUNTIME__"); in InitializePredefinedMacros()
551 Builder.defineMacro("__OBJFW_RUNTIME_ABI__", in InitializePredefinedMacros()
556 Builder.defineMacro("IBOutlet", "__attribute__((iboutlet))"); in InitializePredefinedMacros()
557 Builder.defineMacro("IBOutletCollection(ClassName)", in InitializePredefinedMacros()
559 Builder.defineMacro("IBAction", "void)__attribute__((ibaction)"); in InitializePredefinedMacros()
560 Builder.defineMacro("IBInspectable", ""); in InitializePredefinedMacros()
561 Builder.defineMacro("IB_DESIGNABLE", ""); in InitializePredefinedMacros()
570 Builder.defineMacro("__CONSTANT_CFSTRINGS__"); in InitializePredefinedMacros()
573 Builder.defineMacro("OBJC_NEW_PROPERTIES"); in InitializePredefinedMacros()
576 Builder.defineMacro("__PASCAL_STRINGS__"); in InitializePredefinedMacros()
579 Builder.defineMacro("__block", "__attribute__((__blocks__(byref)))"); in InitializePredefinedMacros()
580 Builder.defineMacro("__BLOCKS__"); in InitializePredefinedMacros()
584 Builder.defineMacro("__EXCEPTIONS"); in InitializePredefinedMacros()
586 Builder.defineMacro("__GXX_RTTI"); in InitializePredefinedMacros()
588 Builder.defineMacro("__USING_SJLJ_EXCEPTIONS__"); in InitializePredefinedMacros()
591 Builder.defineMacro("__DEPRECATED"); in InitializePredefinedMacros()
594 Builder.defineMacro("__GNUG__", "4"); in InitializePredefinedMacros()
595 Builder.defineMacro("__GXX_WEAK__"); in InitializePredefinedMacros()
596 Builder.defineMacro("__private_extern__", "extern"); in InitializePredefinedMacros()
602 Builder.defineMacro("_WCHAR_T_DEFINED"); in InitializePredefinedMacros()
603 Builder.defineMacro("_NATIVE_WCHAR_T_DEFINED"); in InitializePredefinedMacros()
608 Builder.defineMacro("__OPTIMIZE__"); in InitializePredefinedMacros()
610 Builder.defineMacro("__OPTIMIZE_SIZE__"); in InitializePredefinedMacros()
613 Builder.defineMacro("__FAST_MATH__"); in InitializePredefinedMacros()
622 Builder.defineMacro("__ORDER_LITTLE_ENDIAN__", "1234"); in InitializePredefinedMacros()
623 Builder.defineMacro("__ORDER_BIG_ENDIAN__", "4321"); in InitializePredefinedMacros()
624 Builder.defineMacro("__ORDER_PDP_ENDIAN__", "3412"); in InitializePredefinedMacros()
626 Builder.defineMacro("__BYTE_ORDER__", "__ORDER_BIG_ENDIAN__"); in InitializePredefinedMacros()
627 Builder.defineMacro("__BIG_ENDIAN__"); in InitializePredefinedMacros()
629 Builder.defineMacro("__BYTE_ORDER__", "__ORDER_LITTLE_ENDIAN__"); in InitializePredefinedMacros()
630 Builder.defineMacro("__LITTLE_ENDIAN__"); in InitializePredefinedMacros()
635 Builder.defineMacro("_LP64"); in InitializePredefinedMacros()
636 Builder.defineMacro("__LP64__"); in InitializePredefinedMacros()
641 Builder.defineMacro("_ILP32"); in InitializePredefinedMacros()
642 Builder.defineMacro("__ILP32__"); in InitializePredefinedMacros()
647 Builder.defineMacro("__CHAR_BIT__", "8"); in InitializePredefinedMacros()
684 Builder.defineMacro("__INTMAX_C_SUFFIX__", in InitializePredefinedMacros()
688 Builder.defineMacro("__UINTMAX_C_SUFFIX__", in InitializePredefinedMacros()
719 Builder.defineMacro("__POINTER_WIDTH__", in InitializePredefinedMacros()
723 Builder.defineMacro("__BIGGEST_ALIGNMENT__", in InitializePredefinedMacros()
727 Builder.defineMacro("__CHAR_UNSIGNED__"); in InitializePredefinedMacros()
730 Builder.defineMacro("__WCHAR_UNSIGNED__"); in InitializePredefinedMacros()
733 Builder.defineMacro("__WINT_UNSIGNED__"); in InitializePredefinedMacros()
797 Builder.defineMacro("__USER_LABEL_PREFIX__", Prefix); in InitializePredefinedMacros()
800 Builder.defineMacro("__FINITE_MATH_ONLY__", "1"); in InitializePredefinedMacros()
802 Builder.defineMacro("__FINITE_MATH_ONLY__", "0"); in InitializePredefinedMacros()
806 Builder.defineMacro("__GNUC_GNU_INLINE__"); in InitializePredefinedMacros()
808 Builder.defineMacro("__GNUC_STDC_INLINE__"); in InitializePredefinedMacros()
812 Builder.defineMacro("__GCC_ATOMIC_TEST_AND_SET_TRUEVAL", "1"); in InitializePredefinedMacros()
817 Builder.defineMacro("__GCC_ATOMIC_" #TYPE "_LOCK_FREE", \ in InitializePredefinedMacros()
830 Builder.defineMacro("__GCC_ATOMIC_POINTER_LOCK_FREE", in InitializePredefinedMacros()
838 Builder.defineMacro("__NO_INLINE__"); in InitializePredefinedMacros()
841 Builder.defineMacro("__PIC__", Twine(PICLevel)); in InitializePredefinedMacros()
842 Builder.defineMacro("__pic__", Twine(PICLevel)); in InitializePredefinedMacros()
845 Builder.defineMacro("__PIE__", Twine(PIELevel)); in InitializePredefinedMacros()
846 Builder.defineMacro("__pie__", Twine(PIELevel)); in InitializePredefinedMacros()
850 Builder.defineMacro("__FLT_EVAL_METHOD__", Twine(TI.getFloatEvalMethod())); in InitializePredefinedMacros()
851 Builder.defineMacro("__FLT_RADIX__", "2"); in InitializePredefinedMacros()
852 Builder.defineMacro("__DECIMAL_DIG__", "__LDBL_DECIMAL_DIG__"); in InitializePredefinedMacros()
855 Builder.defineMacro("__SSP__"); in InitializePredefinedMacros()
857 Builder.defineMacro("__SSP_STRONG__", "2"); in InitializePredefinedMacros()
859 Builder.defineMacro("__SSP_ALL__", "3"); in InitializePredefinedMacros()
863 Builder.defineMacro("__clang_analyzer__"); in InitializePredefinedMacros()
866 Builder.defineMacro("__FAST_RELAXED_MATH__"); in InitializePredefinedMacros()
870 Builder.defineMacro("__weak", "__attribute__((objc_gc(weak)))"); in InitializePredefinedMacros()
871 Builder.defineMacro("__strong", "__attribute__((objc_gc(strong)))"); in InitializePredefinedMacros()
872 Builder.defineMacro("__autoreleasing", ""); in InitializePredefinedMacros()
873 Builder.defineMacro("__unsafe_unretained", ""); in InitializePredefinedMacros()
875 Builder.defineMacro("__weak", "__attribute__((objc_ownership(weak)))"); in InitializePredefinedMacros()
876 Builder.defineMacro("__strong", "__attribute__((objc_ownership(strong)))"); in InitializePredefinedMacros()
877 Builder.defineMacro("__autoreleasing", in InitializePredefinedMacros()
879 Builder.defineMacro("__unsafe_unretained", in InitializePredefinedMacros()
886 Builder.defineMacro("__nonnull", "_Nonnull"); in InitializePredefinedMacros()
887 Builder.defineMacro("__null_unspecified", "_Null_unspecified"); in InitializePredefinedMacros()
888 Builder.defineMacro("__nullable", "_Nullable"); in InitializePredefinedMacros()
898 Builder.defineMacro("_OPENMP", "201307"); in InitializePredefinedMacros()
905 Builder.defineMacro("__CUDA_ARCH__"); in InitializePredefinedMacros()