Home
last modified time | relevance | path

Searched refs:EnumTy (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DBPF.cpp49 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
50 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
69 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
70 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
H A DPNaCl.cpp68 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType() local
70 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
102 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
103 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
H A DNVPTX.cpp165 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
166 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
174 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
175 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
H A DLanai.cpp123 if (const auto *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
124 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
H A DMips.cpp226 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
227 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
317 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
318 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
H A DCSKY.cpp117 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
118 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
H A DHexagon.cpp100 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
101 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
159 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
160 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
H A DARC.cpp105 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
106 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
H A DX86.cpp567 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
568 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
886 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
887 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
2172 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectReturnResult() local
2173 Ty = EnumTy->getDecl()->getIntegerType(); in getIndirectReturnResult()
2214 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectResult() local
2215 Ty = EnumTy->getDecl()->getIntegerType(); in getIndirectResult()
2619 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
2620 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
[all …]
H A DARM.cpp352 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType() local
353 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
555 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
556 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
H A DSparc.cpp238 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyType() local
239 Ty = EnumTy->getDecl()->getIntegerType(); in classifyType()
H A DAArch64.cpp299 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
300 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
402 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
403 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
H A DPPC.cpp156 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI() local
157 Ty = EnumTy->getDecl()->getIntegerType(); in isPromotableTypeForABI()
705 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI() local
706 Ty = EnumTy->getDecl()->getIntegerType(); in isPromotableTypeForABI()
H A DLoongArch.cpp371 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
372 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
H A DRISCV.cpp428 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
429 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
H A DSystemZ.cpp147 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableIntegerTypeForABI() local
148 Ty = EnumTy->getDecl()->getIntegerType(); in isPromotableIntegerTypeForABI()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.cpp30 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() local
31 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
53 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType() local
54 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp927 if (const EnumType *EnumTy = qt->getAs<EnumType>()) { in migrateNSEnumDecl() local
928 if (EnumTy->getDecl() == EnumDcl) { in migrateNSEnumDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp9186 for (QualType EnumTy : CandidateTypes[ArgIdx].enumeration_types()) { in addGenericBinaryPointerOrEnumeralOverloads() local
9187 CanQualType CanonType = S.Context.getCanonicalType(EnumTy); in addGenericBinaryPointerOrEnumeralOverloads()
9195 QualType ParamTypes[2] = {EnumTy, EnumTy}; in addGenericBinaryPointerOrEnumeralOverloads()
9399 for (QualType EnumTy : CandidateTypes[ArgIdx].enumeration_types()) { in addAssignmentMemberPointerOrEnumeralOverloads() local
9400 if (!AddedTypes.insert(S.Context.getCanonicalType(EnumTy)).second) in addAssignmentMemberPointerOrEnumeralOverloads()
9403 AddBuiltinAssignmentOperatorCandidates(S, EnumTy, Args, CandidateSet); in addAssignmentMemberPointerOrEnumeralOverloads()
9742 for (QualType EnumTy : CandidateTypes[ArgIdx].enumeration_types()) { in addConditionalOperatorOverloads() local
9743 if (!EnumTy->castAs<EnumType>()->getDecl()->isScoped()) in addConditionalOperatorOverloads()
9746 if (!AddedTypes.insert(S.Context.getCanonicalType(EnumTy)).second) in addConditionalOperatorOverloads()
9749 QualType ParamTypes[2] = {EnumTy, EnumTy}; in addConditionalOperatorOverloads()
H A DSemaDecl.cpp17151 QualType EnumTy = ED->getIntegerType(); in ActOnTag() local
17152 ED->setPromotionType(Context.isPromotableIntegerType(EnumTy) in ActOnTag()
17153 ? Context.getPromotedIntegerType(EnumTy) in ActOnTag()
17154 : EnumTy); in ActOnTag()
17784 QualType EnumTy = ED->getIntegerType(); in ActOnTag() local
17785 ED->setPromotionType(Context.isPromotableIntegerType(EnumTy) in ActOnTag()
17786 ? Context.getPromotedIntegerType(EnumTy) in ActOnTag()
17787 : EnumTy); in ActOnTag()
H A DSemaDeclCXX.cpp12286 QualType EnumTy = GetTypeFromParser(Ty, &TSI); in ActOnUsingEnumDeclaration() local
12287 if (EnumTy.isNull()) { in ActOnUsingEnumDeclaration()
12296 if (EnumTy->isDependentType()) { in ActOnUsingEnumDeclaration()
12301 auto *Enum = dyn_cast_if_present<EnumDecl>(EnumTy->getAsTagDecl()); in ActOnUsingEnumDeclaration()
12303 Diag(IdentLoc, diag::err_using_enum_not_enum) << EnumTy; in ActOnUsingEnumDeclaration()
12311 TSI = Context.getTrivialTypeSourceInfo(EnumTy, IdentLoc); in ActOnUsingEnumDeclaration()
H A DSemaChecking.cpp7364 if (auto EnumTy = ExprTy->getAs<EnumType>()) { in checkFormatExpr() local
7365 IntendedTy = EnumTy->getDecl()->getIntegerType(); in checkFormatExpr()
7366 if (EnumTy->isUnscopedEnumerationType()) { in checkFormatExpr()
10267 if (const auto *EnumTy = OriginalInit->getType()->getAs<EnumType>()) { in AnalyzeBitFieldAssignment() local
10268 EnumDecl *ED = EnumTy->getDecl(); in AnalyzeBitFieldAssignment()