Home | History | Annotate | Download | only in Frontend

Lines Matching full:targetinfo

18 #include "clang/Basic/TargetInfo.h"
190 /// DefineTypeSize - An overloaded helper that uses TargetInfo to determine
192 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty,
193 const TargetInfo &TI, MacroBuilder &Builder) {
198 static void DefineFmt(const Twine &Prefix, TargetInfo::IntType Ty,
199 const TargetInfo &TI, MacroBuilder &Builder) {
208 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty,
210 Builder.defineMacro(MacroName, TargetInfo::getTypeName(Ty));
213 static void DefineTypeWidth(StringRef MacroName, TargetInfo::IntType Ty,
214 const TargetInfo &TI, MacroBuilder &Builder) {
219 const TargetInfo &TI, MacroBuilder &Builder) {
224 static void DefineExactWidthIntType(TargetInfo::IntType Ty,
225 const TargetInfo &TI,
244 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty,
245 const TargetInfo &TI,
260 const TargetInfo &TI,
262 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned);
263 if (Ty == TargetInfo::NoInt)
273 const TargetInfo &TI, MacroBuilder &Builder) {
276 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned);
277 if (Ty == TargetInfo::NoInt)
355 static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
458 static void InitializePredefinedMacros(const TargetInfo &TI,
637 DefineTypeSize("__SCHAR_MAX__", TargetInfo::SignedChar, TI, Builder);
638 DefineTypeSize("__SHRT_MAX__", TargetInfo::SignedShort, TI, Builder);
639 DefineTypeSize("__INT_MAX__", TargetInfo::SignedInt, TI, Builder);
640 DefineTypeSize("__LONG_MAX__", TargetInfo::SignedLong, TI, Builder);
641 DefineTypeSize("__LONG_LONG_MAX__", TargetInfo::SignedLongLong, TI, Builder);
717 if (!TargetInfo::isTypeSigned(TI.getWCharType()))
720 if (!TargetInfo::isTypeSigned(TI.getWIntType()))
724 DefineExactWidthIntType(TargetInfo::SignedChar, TI, Builder);
727 DefineExactWidthIntType(TargetInfo::SignedShort, TI, Builder);
730 DefineExactWidthIntType(TargetInfo::SignedInt, TI, Builder);
733 DefineExactWidthIntType(TargetInfo::SignedLong, TI, Builder);
736 DefineExactWidthIntType(TargetInfo::SignedLongLong, TI, Builder);
738 DefineExactWidthIntType(TargetInfo::UnsignedChar, TI, Builder);
739 DefineExactWidthIntTypeSize(TargetInfo::UnsignedChar, TI, Builder);
740 DefineExactWidthIntTypeSize(TargetInfo::SignedChar, TI, Builder);
743 DefineExactWidthIntType(TargetInfo::UnsignedShort, TI, Builder);
744 DefineExactWidthIntTypeSize(TargetInfo::UnsignedShort, TI, Builder);
745 DefineExactWidthIntTypeSize(TargetInfo::SignedShort, TI, Builder);
749 DefineExactWidthIntType(TargetInfo::UnsignedInt, TI, Builder);
750 DefineExactWidthIntTypeSize(TargetInfo::UnsignedInt, TI, Builder);
751 DefineExactWidthIntTypeSize(TargetInfo::SignedInt, TI, Builder);
755 DefineExactWidthIntType(TargetInfo::UnsignedLong, TI, Builder);
756 DefineExactWidthIntTypeSize(TargetInfo::UnsignedLong, TI, Builder);
757 DefineExactWidthIntTypeSize(TargetInfo::SignedLong, TI, Builder);
761 DefineExactWidthIntType(TargetInfo::UnsignedLongLong, TI, Builder);
762 DefineExactWidthIntTypeSize(TargetInfo::UnsignedLongLong, TI, Builder);
763 DefineExactWidthIntTypeSize(TargetInfo::SignedLongLong, TI, Builder);