# Changeset View

Changeset View

# Standalone View

Standalone View

# lib/AST/ASTContext.cpp

- This file is larger than 256 KB, so syntax highlighting is disabled by default.

Show First 20 Lines • Show All 1128 Lines • ▼ Show 20 Line(s) | 1088 | void ASTContext::InitBuiltinTypes(const TargetInfo &Target, | |||
---|---|---|---|---|---|

1129 | 1129 | | |||

1130 | // GNU extension, __float128 for IEEE quadruple precision | 1130 | // GNU extension, __float128 for IEEE quadruple precision | ||

1131 | InitBuiltinType(Float128Ty, BuiltinType::Float128); | 1131 | InitBuiltinType(Float128Ty, BuiltinType::Float128); | ||

1132 | 1132 | | |||

1133 | // C11 extension ISO/IEC TS 18661-3 | 1133 | // C11 extension ISO/IEC TS 18661-3 | ||

1134 | InitBuiltinType(Float16Ty, BuiltinType::Float16); | 1134 | InitBuiltinType(Float16Ty, BuiltinType::Float16); | ||

1135 | 1135 | | |||

1136 | // ISO/IEC JTC1 SC22 WG14 N1169 Extension | 1136 | // ISO/IEC JTC1 SC22 WG14 N1169 Extension | ||

1137 | InitBuiltinType(ShortAccumTy, BuiltinType::ShortAccum); | 1137 | InitBuiltinType(ShortAccumTy, BuiltinType::ShortAccum); | ||

1138 | InitBuiltinType(AccumTy, BuiltinType::Accum); | 1138 | InitBuiltinType(AccumTy, BuiltinType::Accum); | ||

1139 | InitBuiltinType(LongAccumTy, BuiltinType::LongAccum); | 1139 | InitBuiltinType(LongAccumTy, BuiltinType::LongAccum); | ||

1140 | InitBuiltinType(UnsignedShortAccumTy, BuiltinType::UShortAccum); | 1140 | InitBuiltinType(UnsignedShortAccumTy, BuiltinType::UShortAccum); | ||

1141 | InitBuiltinType(UnsignedAccumTy, BuiltinType::UAccum); | 1141 | InitBuiltinType(UnsignedAccumTy, BuiltinType::UAccum); | ||

1142 | InitBuiltinType(UnsignedLongAccumTy, BuiltinType::ULongAccum); | 1142 | InitBuiltinType(UnsignedLongAccumTy, BuiltinType::ULongAccum); | ||

1143 | InitBuiltinType(ShortFractTy, BuiltinType::ShortFract); | ||||

1144 | InitBuiltinType(FractTy, BuiltinType::Fract); | ||||

1145 | InitBuiltinType(LongFractTy, BuiltinType::LongFract); | ||||

1146 | InitBuiltinType(UnsignedShortFractTy, BuiltinType::UShortFract); | ||||

1147 | InitBuiltinType(UnsignedFractTy, BuiltinType::UFract); | ||||

1148 | InitBuiltinType(UnsignedLongFractTy, BuiltinType::ULongFract); | ||||

1149 | InitBuiltinType(SatShortAccumTy, BuiltinType::SatShortAccum); | ||||

1150 | InitBuiltinType(SatAccumTy, BuiltinType::SatAccum); | ||||

1151 | InitBuiltinType(SatLongAccumTy, BuiltinType::SatLongAccum); | ||||

1152 | InitBuiltinType(SatUnsignedShortAccumTy, BuiltinType::SatUShortAccum); | ||||

1153 | InitBuiltinType(SatUnsignedAccumTy, BuiltinType::SatUAccum); | ||||

1154 | InitBuiltinType(SatUnsignedLongAccumTy, BuiltinType::SatULongAccum); | ||||

1155 | InitBuiltinType(SatShortFractTy, BuiltinType::SatShortFract); | ||||

1156 | InitBuiltinType(SatFractTy, BuiltinType::SatFract); | ||||

1157 | InitBuiltinType(SatLongFractTy, BuiltinType::SatLongFract); | ||||

1158 | InitBuiltinType(SatUnsignedShortFractTy, BuiltinType::SatUShortFract); | ||||

1159 | InitBuiltinType(SatUnsignedFractTy, BuiltinType::SatUFract); | ||||

1160 | InitBuiltinType(SatUnsignedLongFractTy, BuiltinType::SatULongFract); | ||||

1143 | 1161 | | |||

1144 | // GNU extension, 128-bit integers. | 1162 | // GNU extension, 128-bit integers. | ||

1145 | InitBuiltinType(Int128Ty, BuiltinType::Int128); | 1163 | InitBuiltinType(Int128Ty, BuiltinType::Int128); | ||

1146 | InitBuiltinType(UnsignedInt128Ty, BuiltinType::UInt128); | 1164 | InitBuiltinType(UnsignedInt128Ty, BuiltinType::UInt128); | ||

1147 | 1165 | | |||

1148 | // C++ 3.9.1p5 | 1166 | // C++ 3.9.1p5 | ||

1149 | if (TargetInfo::isTypeSigned(Target.getWCharType())) | 1167 | if (TargetInfo::isTypeSigned(Target.getWCharType())) | ||

1150 | InitBuiltinType(WCharTy, BuiltinType::WChar_S); | 1168 | InitBuiltinType(WCharTy, BuiltinType::WChar_S); | ||

▲ Show 20 Lines • Show All 5102 Lines • ▼ Show 20 Line(s) | 6270 | case BuiltinType::ObjCSel: | |||

6253 | llvm_unreachable("@encoding ObjC primitive type"); | 6271 | llvm_unreachable("@encoding ObjC primitive type"); | ||

6254 | 6272 | | |||

6255 | case BuiltinType::ShortAccum: | 6273 | case BuiltinType::ShortAccum: | ||

6256 | case BuiltinType::Accum: | 6274 | case BuiltinType::Accum: | ||

6257 | case BuiltinType::LongAccum: | 6275 | case BuiltinType::LongAccum: | ||

6258 | case BuiltinType::UShortAccum: | 6276 | case BuiltinType::UShortAccum: | ||

6259 | case BuiltinType::UAccum: | 6277 | case BuiltinType::UAccum: | ||

6260 | case BuiltinType::ULongAccum: | 6278 | case BuiltinType::ULongAccum: | ||

6279 | case BuiltinType::ShortFract: | ||||

6280 | case BuiltinType::Fract: | ||||

6281 | case BuiltinType::LongFract: | ||||

6282 | case BuiltinType::UShortFract: | ||||

6283 | case BuiltinType::UFract: | ||||

6284 | case BuiltinType::ULongFract: | ||||

6285 | case BuiltinType::SatShortAccum: | ||||

6286 | case BuiltinType::SatAccum: | ||||

6287 | case BuiltinType::SatLongAccum: | ||||

6288 | case BuiltinType::SatUShortAccum: | ||||

6289 | case BuiltinType::SatUAccum: | ||||

6290 | case BuiltinType::SatULongAccum: | ||||

6291 | case BuiltinType::SatShortFract: | ||||

6292 | case BuiltinType::SatFract: | ||||

6293 | case BuiltinType::SatLongFract: | ||||

6294 | case BuiltinType::SatUShortFract: | ||||

6295 | case BuiltinType::SatUFract: | ||||

6296 | case BuiltinType::SatULongFract: | ||||

6261 | llvm_unreachable("No ObjC encoding for fixed point types"); | 6297 | llvm_unreachable("No ObjC encoding for fixed point types"); | ||

6262 | 6298 | | |||

6263 | // OpenCL and placeholder types don't need @encodings. | 6299 | // OpenCL and placeholder types don't need @encodings. | ||

6264 | #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ | 6300 | #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ | ||

6265 | case BuiltinType::Id: | 6301 | case BuiltinType::Id: | ||

6266 | #include "clang/Basic/OpenCLImageTypes.def" | 6302 | #include "clang/Basic/OpenCLImageTypes.def" | ||

6267 | case BuiltinType::OCLEvent: | 6303 | case BuiltinType::OCLEvent: | ||

6268 | case BuiltinType::OCLClkEvent: | 6304 | case BuiltinType::OCLClkEvent: | ||

▲ Show 20 Lines • Show All 3741 Lines • Show Last 20 Lines |