| /src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | DXILResource.cpp | 291 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()
|
| /src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Visibility.h | 64 : 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 D | IdentifierTable.h | 208 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 D | PointerAuthOptions.h | 88 DiscriminationKind(OtherDiscrimination), Key(llvm::to_underlying(Key)) { in TheKind() 146 return llvm::to_underlying(getARM8_3Key()); in getKey()
|
| /src/contrib/llvm-project/lldb/source/Plugins/Platform/NetBSD/ |
| H A D | PlatformNetBSD.cpp | 231 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType() 241 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType() 252 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType() 258 llvm::to_underlying(clang::TagTypeKind::Struct), lldb::eLanguageTypeC); in GetSiginfoType() 275 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 437 << (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()
|
| /src/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeView.h | 55 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)); \
|
| /src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCall.h | 430 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));
|
| /src/contrib/llvm-project/lldb/source/Plugins/Platform/FreeBSD/ |
| H A D | PlatformFreeBSD.cpp | 209 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType() 220 llvm::to_underlying(clang::TagTypeKind::Struct), lldb::eLanguageTypeC); in GetSiginfoType() 242 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
|
| /src/contrib/llvm-project/libcxx/modules/std/ |
| H A D | utility.inc | 43 // [utility.underlying], to_underlying 44 using std::to_underlying;
|
| /src/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | BitmaskEnum.h | 130 auto U = llvm::to_underlying(Val); 192 uint64_t{llvm::to_underlying(E::LLVM_BITMASK_LARGEST_ENUMERATOR)});
|
| H A D | STLForwardCompat.h | 66 [[nodiscard]] constexpr std::underlying_type_t<Enum> to_underlying(Enum E) { in to_underlying() function
|
| /src/contrib/llvm-project/libcxx/include/__utility/ |
| H A D | to_underlying.h | 31 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr underlying_type_t<_Tp> to_underlying(_Tp __val) noexc… in to_underlying() function
|
| /src/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | MemProf.h | 66 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;
|
| /src/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | SwapByteOrder.h | 57 return static_cast<T>(llvm::byteswap(llvm::to_underlying(C))); in getSwappedBytes()
|
| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | ODRHash.cpp | 394 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()
|
| /src/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCTypeEncodingParser.cpp | 86 llvm::to_underlying(clang::TagTypeKind::Struct)); in BuildStruct() 92 llvm::to_underlying(clang::TagTypeKind::Union)); in BuildUnion()
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Comment.h | 230 CommentBits.Kind = llvm::to_underlying(K); 347 InlineCommandCommentBits.RenderKind = llvm::to_underlying(RK); 728 llvm::to_underlying(ParamCommandPassDirection::In); 748 ParamCommandCommentBits.Direction = llvm::to_underlying(Direction);
|
| /src/contrib/llvm-project/lldb/source/Plugins/RegisterTypeBuilder/ |
| H A D | RegisterTypeBuilderClang.cpp | 62 register_type_name, llvm::to_underlying(clang::TagTypeKind::Struct), in GetRegisterType()
|
| /src/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 511 llvm::to_underlying(FirstCoroutineStmtKind::CoReturn)) in setFirstCoroutineStmt() 513 llvm::to_underlying(FirstCoroutineStmtKind::CoAwait)) in setFirstCoroutineStmt() 515 llvm::to_underlying(FirstCoroutineStmtKind::CoYield)); in setFirstCoroutineStmt()
|
| /src/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | FormatUtil.h | 38 return formatv("unknown ({0})", llvm::to_underlying(Value)).str(); in formatUnknownEnum()
|
| /src/contrib/llvm-project/libcxx/include/ |
| H A D | utility | 241 // [utility.underlying], to_underlying 243 constexpr underlying_type_t<T> to_underlying( T value ) noexcept; // C++23 275 # include <__utility/to_underlying.h>
|
| /src/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/ |
| H A D | PDBASTParser.cpp | 52 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()
|
| /src/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | FormatUtil.cpp | 123 return formatv("UNKNOWN RECORD ({0:X})", llvm::to_underlying(K)).str(); in formatTypeLeafKind()
|
| /src/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriterDecl.cpp | 496 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()
|