Lines Matching refs:TargetInfo

17 #include "clang/Basic/TargetInfo.h"
174 /// DefineTypeSize - An overloaded helper that uses TargetInfo to determine
176 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty,
177 const TargetInfo &TI, MacroBuilder &Builder) {
182 static void DefineFmt(const Twine &Prefix, TargetInfo::IntType Ty,
183 const TargetInfo &TI, MacroBuilder &Builder) {
192 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty,
194 Builder.defineMacro(MacroName, TargetInfo::getTypeName(Ty));
197 static void DefineTypeWidth(StringRef MacroName, TargetInfo::IntType Ty,
198 const TargetInfo &TI, MacroBuilder &Builder) {
203 const TargetInfo &TI, MacroBuilder &Builder) {
208 static void DefineExactWidthIntType(TargetInfo::IntType Ty,
209 const TargetInfo &TI,
228 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty,
229 const TargetInfo &TI,
244 const TargetInfo &TI,
246 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned);
247 if (Ty == TargetInfo::NoInt)
257 const TargetInfo &TI, MacroBuilder &Builder) {
260 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned);
261 if (Ty == TargetInfo::NoInt)
343 static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
581 static void InitializePredefinedMacros(const TargetInfo &TI,
800 DefineTypeSize("__SCHAR_MAX__", TargetInfo::SignedChar, TI, Builder);
801 DefineTypeSize("__SHRT_MAX__", TargetInfo::SignedShort, TI, Builder);
802 DefineTypeSize("__INT_MAX__", TargetInfo::SignedInt, TI, Builder);
803 DefineTypeSize("__LONG_MAX__", TargetInfo::SignedLong, TI, Builder);
804 DefineTypeSize("__LONG_LONG_MAX__", TargetInfo::SignedLongLong, TI, Builder);
883 if (!TargetInfo::isTypeSigned(TI.getWCharType()))
886 if (!TargetInfo::isTypeSigned(TI.getWIntType()))
890 DefineExactWidthIntType(TargetInfo::SignedChar, TI, Builder);
893 DefineExactWidthIntType(TargetInfo::SignedShort, TI, Builder);
896 DefineExactWidthIntType(TargetInfo::SignedInt, TI, Builder);
899 DefineExactWidthIntType(TargetInfo::SignedLong, TI, Builder);
902 DefineExactWidthIntType(TargetInfo::SignedLongLong, TI, Builder);
904 DefineExactWidthIntType(TargetInfo::UnsignedChar, TI, Builder);
905 DefineExactWidthIntTypeSize(TargetInfo::UnsignedChar, TI, Builder);
906 DefineExactWidthIntTypeSize(TargetInfo::SignedChar, TI, Builder);
909 DefineExactWidthIntType(TargetInfo::UnsignedShort, TI, Builder);
910 DefineExactWidthIntTypeSize(TargetInfo::UnsignedShort, TI, Builder);
911 DefineExactWidthIntTypeSize(TargetInfo::SignedShort, TI, Builder);
915 DefineExactWidthIntType(TargetInfo::UnsignedInt, TI, Builder);
916 DefineExactWidthIntTypeSize(TargetInfo::UnsignedInt, TI, Builder);
917 DefineExactWidthIntTypeSize(TargetInfo::SignedInt, TI, Builder);
921 DefineExactWidthIntType(TargetInfo::UnsignedLong, TI, Builder);
922 DefineExactWidthIntTypeSize(TargetInfo::UnsignedLong, TI, Builder);
923 DefineExactWidthIntTypeSize(TargetInfo::SignedLong, TI, Builder);
927 DefineExactWidthIntType(TargetInfo::UnsignedLongLong, TI, Builder);
928 DefineExactWidthIntTypeSize(TargetInfo::UnsignedLongLong, TI, Builder);
929 DefineExactWidthIntTypeSize(TargetInfo::SignedLongLong, TI, Builder);