Home
last modified time | relevance | path

Searched refs:to_underlying (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDXILResource.cpp291 MDVals.push_back(getIntMD(llvm::to_underlying(SamplerTy))); in getAsMetadata()
294 MDVals.push_back(getIntMD(llvm::to_underlying(Kind))); in getAsMetadata()
312 getIntMD(llvm::to_underlying(ExtPropTags::StructuredBufferStride))); in getAsMetadata()
315 Tags.push_back(getIntMD(llvm::to_underlying(ExtPropTags::ElementType))); in getAsMetadata()
316 Tags.push_back(getIntMD(llvm::to_underlying(Typed.ElementTy))); in getAsMetadata()
319 getIntMD(llvm::to_underlying(ExtPropTags::SamplerFeedbackKind))); in getAsMetadata()
320 Tags.push_back(getIntMD(llvm::to_underlying(Feedback.Type))); in getAsMetadata()
329 uint32_t ResourceKind = llvm::to_underlying(Kind); in getAnnotateProps()
356 Word1 = llvm::to_underlying(Feedback.Type); in getAnnotateProps()
358 uint32_t CompType = llvm::to_underlying(Typed.ElementTy); in getAnnotateProps()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DVisibility.h64 : linkage_(llvm::to_underlying(Linkage::External)), in LinkageInfo()
67 : linkage_(llvm::to_underlying(L)), visibility_(V), explicit_(E) { in LinkageInfo()
92 void setLinkage(Linkage L) { linkage_ = llvm::to_underlying(L); } in setLinkage()
H A DIdentifierTable.h208 InterestingIdentifierID(llvm::to_underlying( in IdentifierInfo()
344 assert(0 == llvm::to_underlying(InterestingIdentifier::objc_not_keyword)); in getObjCKeywordID()
351 assert(0 == llvm::to_underlying(InterestingIdentifier::objc_not_keyword)); in setObjCKeywordID()
363 llvm::to_underlying(InterestingIdentifier::NotBuiltin); in getBuiltinID()
370 auto FirstBuiltin = llvm::to_underlying(InterestingIdentifier::NotBuiltin); in setBuiltinID()
376 llvm::to_underlying(InterestingIdentifier::NotInterestingIdentifier); in clearBuiltinID()
385 1 + llvm::to_underlying(InterestingIdentifier::NUM_OBJC_KEYWORDS); in getNotableIdentifierID()
394 1 + llvm::to_underlying(InterestingIdentifier::NUM_OBJC_KEYWORDS); in setNotableIdentifierID()
H A DPointerAuthOptions.h88 DiscriminationKind(OtherDiscrimination), Key(llvm::to_underlying(Key)) { in TheKind()
146 return llvm::to_underlying(getARM8_3Key()); in getKey()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp437 << (unsigned)CSM << llvm::to_underlying(*InferredTarget) in inferTargetForImplicitSpecialMember()
438 << llvm::to_underlying(BaseMethodTarget); in inferTargetForImplicitSpecialMember()
481 << (unsigned)CSM << llvm::to_underlying(*InferredTarget) in inferTargetForImplicitSpecialMember()
482 << llvm::to_underlying(FieldMethodTarget); in inferTargetForImplicitSpecialMember()
698 << llvm::to_underlying(InitFnTarget) << InitFn; in checkAllowedInitializer()
937 << llvm::to_underlying(IdentifyTarget(Callee)) << /*function*/ 0 << Callee in CheckCall()
938 << llvm::to_underlying(IdentifyTarget(Caller)); in CheckCall()
1034 << llvm::to_underlying(NewTarget) << NewFD->getDeclName() in checkTargetOverload()
1035 << llvm::to_underlying(OldTarget) << OldFD; in checkTargetOverload()
1045 << llvm::to_underlying(NewTarget) << llvm::to_underlying(OldTarget); in checkTargetOverload()
H A DSemaAccess.cpp1675 << llvm::to_underlying(getSpecialMember(Constructor)); in CheckConstructorAccess()
1683 << llvm::to_underlying(getSpecialMember(Constructor)); in CheckConstructorAccess()
1691 << llvm::to_underlying(getSpecialMember(Constructor)); in CheckConstructorAccess()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h55 return static_cast<Class>(llvm::to_underlying(a) | \
56 llvm::to_underlying(b)); \
59 return static_cast<Class>(llvm::to_underlying(a) & \
60 llvm::to_underlying(b)); \
63 return static_cast<Class>(~llvm::to_underlying(a)); \
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.h430 return static_cast<FnInfoOpts>(llvm::to_underlying(A) |
431 llvm::to_underlying(B));
435 return static_cast<FnInfoOpts>(llvm::to_underlying(A) &
436 llvm::to_underlying(B));
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dutility.cppm
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dto_underlying.h31 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr underlying_type_t<_Tp> to_underlying(_Tp __val) noexc… in to_underlying() function
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProf.h66 Schema.set(llvm::to_underlying(Id)); in PortableMemInfoBlock()
96 Schema.set(llvm::to_underlying(Id)); in deserialize()
137 std::bitset<llvm::to_underlying(Meta::Size)> getSchema() const { in getSchema()
144 assert(Schema[llvm::to_underlying(Meta::Name)]); \
157 if (Schema[llvm::to_underlying(Meta::Name)] && \
190 std::bitset<llvm::to_underlying(Meta::Size)> Schema;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DODRHash.cpp394 ID.AddInteger(llvm::to_underlying(Method->getImplementationControl())); in VisitObjCMethodDecl()
399 ID.AddInteger(llvm::to_underlying(Cmd->getParameterKind())); in VisitObjCMethodDecl()
404 ID.AddInteger(llvm::to_underlying(Self->getParameterKind())); in VisitObjCMethodDecl()
951 ID.AddInteger(llvm::to_underlying(T->getSizeModifier())); in VisitArrayType()
1205 ID.AddInteger(llvm::to_underlying(T->getKeyword())); in VisitTypeWithKeyword()
1246 ID.AddInteger(llvm::to_underlying(T->getVectorKind())); in VisitVectorType()
H A DType.cpp159 ArrayTypeBits.SizeModifier = llvm::to_underlying(sm); in ArrayType()
236 ID.AddInteger(llvm::to_underlying(SizeMod)); in Profile()
257 ID.AddInteger(llvm::to_underlying(SizeMod)); in Profile()
272 VectorTypeBits.VecKind = llvm::to_underlying(VecKind); in DependentVectorType()
280 ID.AddInteger(llvm::to_underlying(VecKind)); in Profile()
376 VectorTypeBits.VecKind = llvm::to_underlying(vecKind); in VectorType()
3248 ID.AddInteger(llvm::to_underlying(Keyword)); in Profile()
4460 T->TypeBits.CachedLinkage = llvm::to_underlying(Result.getLinkage()); in ensure()
5064 AutoTypeBits.Keyword = llvm::to_underlying(Keyword); in AutoType()
H A DStmtProfile.cpp1344 ID.AddInteger(llvm::to_underlying(S->getIdentKind())); in VisitPredefinedExpr()
1369 ID.AddInteger(llvm::to_underlying(S->getKind())); in VisitCharacterLiteral()
1387 ID.AddInteger(llvm::to_underlying(S->getKind())); in VisitStringLiteral()
2131 ID.AddInteger(llvm::to_underlying(S->getInitializationStyle())); in VisitCXXNewExpr()
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCTypeEncodingParser.cpp86 llvm::to_underlying(clang::TagTypeKind::Struct)); in BuildStruct()
92 llvm::to_underlying(clang::TagTypeKind::Union)); in BuildUnion()
/freebsd/contrib/llvm-project/lldb/source/Plugins/RegisterTypeBuilder/
H A DRegisterTypeBuilderClang.cpp62 register_type_name, llvm::to_underlying(clang::TagTypeKind::Struct), in GetRegisterType()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h511 llvm::to_underlying(FirstCoroutineStmtKind::CoReturn)) in setFirstCoroutineStmt()
513 llvm::to_underlying(FirstCoroutineStmtKind::CoAwait)) in setFirstCoroutineStmt()
515 llvm::to_underlying(FirstCoroutineStmtKind::CoYield)); in setFirstCoroutineStmt()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dutility241 // [utility.underlying], to_underlying
243 constexpr underlying_type_t<T> to_underlying( T value ) noexcept; // C++23
275 # include <__utility/to_underlying.h>
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.cpp52 return llvm::to_underlying(clang::TagTypeKind::Class); in TranslateUdtKind()
54 return llvm::to_underlying(clang::TagTypeKind::Struct); in TranslateUdtKind()
56 return llvm::to_underlying(clang::TagTypeKind::Union); in TranslateUdtKind()
58 return llvm::to_underlying(clang::TagTypeKind::Interface); in TranslateUdtKind()
1392 record_kind == llvm::to_underlying(clang::TagTypeKind::Class)); in AddRecordBases()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp496 TagDeclBits.addBits(llvm::to_underlying(D->getTagKind()), /*BitWidth=*/3); in VisitTagDecl()
578 RecordDeclBits.addBits(llvm::to_underlying(D->getArgPassingRestrictions()), 2); in VisitRecordDecl()
716 FunctionDeclBits.addBits(llvm::to_underlying(D->getLinkageInternal()), 3); in VisitFunctionDecl()
819 Record.push_back(llvm::to_underlying(D->getImplementationControl())); in VisitObjCMethodDecl()
1111 VarDeclBits.addBits(llvm::to_underlying(D->getLinkageInternal()), in VisitVarDecl()
1152 VarDeclBits.addBits(llvm::to_underlying(IPD->getParameterKind()), in VisitVarDecl()
1347 Record.push_back(llvm::to_underlying(D->getLanguage())); in VisitLinkageSpecDecl()
2132 Record.push_back(llvm::to_underlying(D->getInitializerKind())); in VisitOMPDeclareReductionDecl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h401 CacheValidAndLinkage(llvm::to_underlying(Linkage::Invalid)) { in Decl()
410 CacheValidAndLinkage(llvm::to_underlying(Linkage::Invalid)) { in Decl()
424 CacheValidAndLinkage = llvm::to_underlying(L); in setCachedLinkage()
H A DType.h204 ? llvm::to_underlying(AddressDiscriminatedMask)
207 (llvm::to_underlying(AuthenticationMode)
2292 TypeBits.CachedLinkage = llvm::to_underlying(Linkage::Invalid);
3750 ID.AddInteger(llvm::to_underlying(SizeMod));
4026 ID.AddInteger(llvm::to_underlying(VecKind));
6712 TypeWithKeywordBits.Keyword = llvm::to_underlying(Keyword);
6818 ID.AddInteger(llvm::to_underlying(Keyword));
6877 ID.AddInteger(llvm::to_underlying(Keyword));
8488 PD.AddTaggedVal(llvm::to_underlying(AS),
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h96 ID.AddInteger(llvm::to_underlying(getKind())); in Profile()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DSymbolFileCTF.cpp508 llvm::to_underlying(tag_kind), eLanguageTypeC); in CreateRecord()
565 llvm::to_underlying(clang::TagTypeKind::Struct), eLanguageTypeC); in CreateForward()
/freebsd/contrib/llvm-project/lldb/include/lldb/Symbol/
H A DType.h520 llvm::to_underlying(name.type_class),

123