Home
last modified time | relevance | path

Searched refs:EnumType (Results 1 – 25 of 55) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.cpp731 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
754 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1008 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1879 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
2835 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
4198 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classify()
4490 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
4981 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
7095 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
7320 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableIntegerTypeForABI()
[all …]
H A DCodeGenTBAA.cpp198 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTypeInfoHelper()
H A DCGDebugInfo.h212 llvm::DIType *CreateEnumType(const EnumType *Ty);
213 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
H A DCodeGenTypes.cpp735 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DFormatString.cpp346 if (const EnumType *ETy = argTy->getAs<EnumType>()) { in matchesType()
369 if (const EnumType *ETy = argTy->getAs<EnumType>()) { in matchesType()
H A DType.cpp81 ND = ty->castAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
613 if (const auto *ET = getAs<EnumType>()) in isScopedEnumeralType()
1943 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isUnscopedEnumerationType()
2012 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerType()
2123 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isRealType()
2133 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isArithmeticType()
2163 } else if (isa<EnumType>(T)) { in getScalarTypeKind()
2164 assert(cast<EnumType>(T)->getDecl()->isComplete()); in getScalarTypeKind()
2720 if (const auto *ET = getAs<EnumType>()) { in isAlignValT()
2729 if (const auto *ET = getAs<EnumType>()) { in isStdByteType()
[all …]
H A DScanfFormatString.cpp426 if (const EnumType *ETy = PT->getAs<EnumType>()) { in fixType()
H A DTemplateBase.cpp62 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
H A DPrintfFormatString.cpp727 if (const EnumType *ETy = QT->getAs<EnumType>()) in fixType()
H A DASTContext.cpp2296 if (const auto *ET = dyn_cast<EnumType>(TT)) { in getTypeInfoImpl()
2496 if (const auto *ET = T->getAs<EnumType>()) in getPreferredTypeAlign()
6417 if (const auto *ET = Promotable->getAs<EnumType>()) in getPromotedIntegerType()
6491 if (const auto *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
6493 if (const auto *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
7382 if (const auto *ET = T->getAs<EnumType>()) in EncodeBitField()
9743 if (const auto *ETy = LHS->getAs<EnumType>()) { in mergeTypes()
9746 if (const EnumType* ETy = RHS->getAs<EnumType>()) { in mergeTypes()
10133 if (const auto *ET = T->getAs<EnumType>()) in getIntWidth()
10158 if (const auto *ETy = T->getAs<EnumType>()) in getCorrespondingUnsignedType()
[all …]
H A DTypePrinter.cpp1386 void TypePrinter::printEnumBefore(const EnumType *T, raw_ostream &OS) { in printEnumBefore()
1390 void TypePrinter::printEnumAfter(const EnumType *T, raw_ostream &OS) {} in printEnumAfter()
H A DODRHash.cpp1014 void VisitEnumType(const EnumType *T) { VisitTagType(T); } in VisitEnumType()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DEnumCastOutOfRangeChecker.cpp128 const EnumDecl *ED = T->castAs<EnumType>()->getDecl(); in checkPreStmt()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h563 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
H A DType.h4641 class EnumType : public TagType {
4644 explicit EnumType(const EnumDecl *D)
6770 return isa<EnumType>(CanonicalType);
6990 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
7045 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
7064 if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp3206 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>( in IsEnumerationType()
3222 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>( in IsScopedEnumerationType()
3901 this, llvm::cast<clang::EnumType>(qual_type) in GetTypeInfo()
4597 if (const clang::EnumType *et = qual_type->getAs<clang::EnumType>()) in CreateTypedef()
5515 const clang::EnumType *enum_type = in ForEachEnumerator()
7189 const clang::EnumType *enutype = in GetAsEnumDecl()
7491 if (const EnumType *enum_type = llvm::dyn_cast<EnumType>(qt.getTypePtr())) { in SetIntegerInitializerForVariable()
8231 const clang::EnumType *enutype = qual_type->getAs<clang::EnumType>(); in CompleteTagDeclarationDefinition()
8295 const clang::EnumType *enutype = llvm::dyn_cast<clang::EnumType>(clang_type); in AddEnumerationValueToEnumerationType()
8578 const clang::EnumType *enutype = in DumpValue()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td90 def EnumType : TypeNode<TagType>, LeafType;
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp1131 QualType EnumType = S.Context.getTypeDeclType(ED); in ShouldDiagnoseSwitchCaseNotInEnum() local
1133 S.Context.hasSameUnqualifiedType(EnumType, VarType)) in ShouldDiagnoseSwitchCaseNotInEnum()
1155 const EnumType *CondEnumType = CondType->getAs<EnumType>(); in checkEnumTypesInSwitchStmt()
1156 const EnumType *CaseEnumType = CaseType->getAs<EnumType>(); in checkEnumTypesInSwitchStmt()
1460 const EnumType *ET = CondTypeBeforePromotion->getAs<EnumType>(); in ActOnFinishSwitchStmt()
1596 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
H A DSemaCast.cpp1325 if (const EnumType *Enum = SrcType->getAs<EnumType>()) { in TryStaticCast()
1357 const EnumType *Enum = DestType->getAs<EnumType>(); in TryStaticCast()
H A DSemaChecking.cpp2632 } else if (const auto *ET = Ty->getAs<EnumType>()) { in isValidBPFPreserveTypeInfoArg()
2672 const auto *ET = Ty->getAs<EnumType>(); in isValidBPFPreserveEnumValueArg()
6273 const EnumDecl *ED = Type->castAs<EnumType>()->getDecl(); in SemaBuiltinVAStart()
9114 if (auto EnumTy = ExprTy->getAs<EnumType>()) { in checkFormatExpr()
10966 if (const EnumType *ET = dyn_cast<EnumType>(T)) in forValueOfCanonicalType()
10968 } else if (const EnumType *ET = dyn_cast<EnumType>(T)) { in forValueOfCanonicalType()
11011 if (const EnumType *ET = dyn_cast<EnumType>(T)) in forTargetOfCanonicalType()
12945 if (const EnumType *SourceEnum = Source->getAs<EnumType>()) in CheckImplicitConversion()
12946 if (const EnumType *TargetEnum = Target->getAs<EnumType>()) in CheckImplicitConversion()
15978 cast<EnumType>(T1)->getDecl(), in isLayoutCompatible()
[all …]
H A DSemaTemplate.cpp747 IsEnum = dyn_cast_or_null<EnumType>(NNS->getAsType()); in ActOnDependentIdExpression()
3138 if (const EnumType *EnumT = T->getAs<EnumType>()) { in MatchTemplateParametersToScopeSpecifier()
6091 bool UnnamedLocalNoLinkageFinder::VisitEnumType(const EnumType* T) { in VisitEnumType()
7099 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
7181 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
7604 if (const EnumType *ET = OrigT->getAs<EnumType>()) in BuildExpressionFromIntegralTemplateArgument()
H A DSemaLambda.cpp632 if (const EnumType *ET = E->getType()->getAs<EnumType>()) { in findEnumForBlockReturn()
H A DSemaCXXScopeSpec.cpp750 } else if (isa<EnumType>(T)) { in BuildCXXNestedNameSpecifier()
H A DSemaStmtAsm.cpp739 bool IsEnum = isa<clang::EnumType>(T); in FillInlineAsmIdentifierInfo()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.cpp378 llvm::cast<clang::EnumType>(qual_type)->getDecl(); in CanImport()
452 llvm::cast<clang::EnumType>(qual_type)->getDecl(); in Import()

123