Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DRootSignatureMetadata.cpp85 ConstantAsMetadata::get(Builder.getInt32(llvm::to_underlying(Flags))), in BuildRootFlags()
95 Builder.getInt32(llvm::to_underlying(Constants.Visibility))), in BuildRootConstants()
106 dxil::ResourceClass(llvm::to_underlying(Descriptor.Type))); in BuildRootDescriptor()
112 Builder.getInt32(llvm::to_underlying(Descriptor.Visibility))), in BuildRootDescriptor()
116 Builder.getInt32(llvm::to_underlying(Descriptor.Flags))), in BuildRootDescriptor()
127 Builder.getInt32(llvm::to_underlying(Table.Visibility)))); in BuildDescriptorTable()
147 getResourceName(dxil::ResourceClass(llvm::to_underlying(Clause.Type))); in BuildDescriptorTableClause()
156 Builder.getInt32(llvm::to_underlying(Clause.Flags))), in BuildDescriptorTableClause()
166 Builder.getInt32(llvm::to_underlying(Sampler.Filter))), in BuildStaticSampler()
168 Builder.getInt32(llvm::to_underlying(Sampler.AddressU))), in BuildStaticSampler()
[all …]
H A DRootSignatureValidations.cpp47 if (popcount(llvm::to_underlying(Flags & DataFlags)) > 1) in verifyRootDescriptorFlag()
56 case llvm::to_underlying(dxbc::DescriptorRangeType::CBV): in verifyRangeType()
57 case llvm::to_underlying(dxbc::DescriptorRangeType::SRV): in verifyRangeType()
58 case llvm::to_underlying(dxbc::DescriptorRangeType::UAV): in verifyRangeType()
59 case llvm::to_underlying(dxbc::DescriptorRangeType::Sampler): in verifyRangeType()
72 (Type == llvm::to_underlying(dxbc::DescriptorRangeType::Sampler)); in verifyDescriptorRangeFlag()
86 if (popcount(llvm::to_underlying(Flags & DataFlags)) > 1) in verifyDescriptorRangeFlag()
92 if (popcount(llvm::to_underlying(Flags & DescriptorFlags)) > 1) in verifyDescriptorRangeFlag()
134 #define FILTER(Num, Val) case llvm::to_underlying(dxbc::SamplerFilter::Val): in verifySamplerFilter()
146 case llvm::to_underlying(dxbc::TextureAddressMode::Val): in verifyAddress()
[all …]
H A DHLSLRootSignature.cpp42 unsigned Remaining = llvm::to_underlying(Value); in printFlags()
122 printEnum(OS, dxil::ResourceClass(llvm::to_underlying(Type)), in operator <<()
182 ClauseType Type = ClauseType(llvm::to_underlying(Descriptor.Type)); in operator <<()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DDXContainerRootSignature.cpp39 case llvm::to_underlying(dxbc::RootParameterType::Constants32Bit): in getSize()
42 case llvm::to_underlying(dxbc::RootParameterType::CBV): in getSize()
43 case llvm::to_underlying(dxbc::RootParameterType::SRV): in getSize()
44 case llvm::to_underlying(dxbc::RootParameterType::UAV): in getSize()
51 case llvm::to_underlying(dxbc::RootParameterType::DescriptorTable): in getSize()
101 case llvm::to_underlying(dxbc::RootParameterType::Constants32Bit): { in write()
112 case llvm::to_underlying(dxbc::RootParameterType::CBV): in write()
113 case llvm::to_underlying(dxbc::RootParameterType::SRV): in write()
114 case llvm::to_underlying(dxbc::RootParameterType::UAV): { in write()
126 case llvm::to_underlying(dxbc::RootParameterType::DescriptorTable): { in write()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILRootSignature.cpp98 llvm::to_underlying(dxbc::RootParameterType::Constants32Bit); in parseRootConstants()
141 Header.ParameterType = llvm::to_underlying(dxbc::RootParameterType::SRV); in parseRootDescriptors()
144 Header.ParameterType = llvm::to_underlying(dxbc::RootParameterType::UAV); in parseRootDescriptors()
147 Header.ParameterType = llvm::to_underlying(dxbc::RootParameterType::CBV); in parseRootDescriptors()
202 .Case("CBV", llvm::to_underlying(dxbc::DescriptorRangeType::CBV)) in parseDescriptorRange()
203 .Case("SRV", llvm::to_underlying(dxbc::DescriptorRangeType::SRV)) in parseDescriptorRange()
204 .Case("UAV", llvm::to_underlying(dxbc::DescriptorRangeType::UAV)) in parseDescriptorRange()
206 llvm::to_underlying(dxbc::DescriptorRangeType::Sampler)) in parseDescriptorRange()
257 llvm::to_underlying(dxbc::RootParameterType::DescriptorTable); in parseDescriptorTable()
422 case llvm::to_underlying(dxbc::RootParameterType::CBV): in validate()
[all …]
/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.h211 InterestingIdentifierID(llvm::to_underlying( in IdentifierInfo()
347 assert(0 == llvm::to_underlying(InterestingIdentifier::objc_not_keyword)); in getObjCKeywordID()
354 assert(0 == llvm::to_underlying(InterestingIdentifier::objc_not_keyword)); in setObjCKeywordID()
366 llvm::to_underlying(InterestingIdentifier::NotBuiltin); in getBuiltinID()
373 auto FirstBuiltin = llvm::to_underlying(InterestingIdentifier::NotBuiltin); in setBuiltinID()
379 llvm::to_underlying(InterestingIdentifier::NotInterestingIdentifier); in clearBuiltinID()
388 1 + llvm::to_underlying(InterestingIdentifier::NUM_OBJC_KEYWORDS); in getNotableIdentifierID()
397 1 + llvm::to_underlying(InterestingIdentifier::NUM_OBJC_KEYWORDS); in setNotableIdentifierID()
H A DPointerAuthOptions.h116 DiscriminationKind(OtherDiscrimination), Key(llvm::to_underlying(Key)) { in TheKind()
174 return llvm::to_underlying(getARM8_3Key()); in getKey()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h36 return static_cast<OverflowBehavior>(llvm::to_underlying(a) |
37 llvm::to_underlying(b));
41 return static_cast<OverflowBehavior>(llvm::to_underlying(a) &
42 llvm::to_underlying(b));
354 llvm::to_underlying(ob & OverflowBehavior::NoUnsignedWrap));
356 llvm::to_underlying(ob & OverflowBehavior::NoSignedWrap));
373 llvm::to_underlying(ob & OverflowBehavior::NoUnsignedWrap));
375 llvm::to_underlying(ob & OverflowBehavior::NoSignedWrap));
376 op.setSaturated(llvm::to_underlying(ob & OverflowBehavior::Saturated));
395 llvm::to_underlying(ob & OverflowBehavior::NoUnsignedWrap));
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h56 return static_cast<Class>(llvm::to_underlying(a) | \
57 llvm::to_underlying(b)); \
60 return static_cast<Class>(llvm::to_underlying(a) & \
61 llvm::to_underlying(b)); \
64 return static_cast<Class>(~llvm::to_underlying(a)); \
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDXContainerYAML.h168 uint32_t Filter = llvm::to_underlying(dxbc::SamplerFilter::Anisotropic);
169 uint32_t AddressU = llvm::to_underlying(dxbc::TextureAddressMode::Wrap);
170 uint32_t AddressV = llvm::to_underlying(dxbc::TextureAddressMode::Wrap);
171 uint32_t AddressW = llvm::to_underlying(dxbc::TextureAddressMode::Wrap);
175 llvm::to_underlying(dxbc::ComparisonFunc::LessEqual);
177 llvm::to_underlying(dxbc::StaticBorderColor::OpaqueWhite);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDXILResource.cpp344 llvm::to_underlying(RTy->getFeedbackType())); in createElementStruct()
362 llvm::to_underlying(RTy->getSamplerType())); in createElementStruct()
651 MDVals.push_back(getIntMD(llvm::to_underlying(RTI.getSamplerType()))); in getAsMetadata()
654 MDVals.push_back(getIntMD(llvm::to_underlying(RTI.getResourceKind()))); in getAsMetadata()
674 getIntMD(llvm::to_underlying(ExtPropTags::StructuredBufferStride))); in getAsMetadata()
677 Tags.push_back(getIntMD(llvm::to_underlying(ExtPropTags::ElementType))); in getAsMetadata()
678 Tags.push_back(getIntMD(llvm::to_underlying(RTI.getTyped().ElementTy))); in getAsMetadata()
681 getIntMD(llvm::to_underlying(ExtPropTags::SamplerFeedbackKind))); in getAsMetadata()
682 Tags.push_back(getIntMD(llvm::to_underlying(RTI.getFeedbackType()))); in getAsMetadata()
694 uint32_t ResourceKind = llvm::to_underlying(RTI.getResourceKind()); in getAnnotateProps()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.h441 return static_cast<FnInfoOpts>(llvm::to_underlying(A) |
442 llvm::to_underlying(B));
446 return static_cast<FnInfoOpts>(llvm::to_underlying(A) &
447 llvm::to_underlying(B));
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProf.h96 Schema.set(llvm::to_underlying(Id)); in PortableMemInfoBlock()
126 Schema.set(llvm::to_underlying(Id)); in deserialize()
167 std::bitset<llvm::to_underlying(Meta::Size)> getSchema() const { in getSchema()
174 assert(Schema[llvm::to_underlying(Meta::Name)]); \
183 assert(Schema[llvm::to_underlying(Meta::Name)]); \
196 if (Schema[llvm::to_underlying(Meta::Name)] && \
232 std::bitset<llvm::to_underlying(Meta::Size)> Schema;
H A DMemProfYAML.h146 MIB.Schema.set(llvm::to_underlying(memprof::Meta::Name)); \
157 if (Schema.test(llvm::to_underlying(memprof::Meta::Name))) { \
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dutility.cppm
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDXContainerYAML.cpp68 (R.Flags & llvm::to_underlying(dxbc::DescriptorRangeFlags::Enum)) != 0; in readDescriptorRanges()
146 llvm::to_underlying(dxbc::RootDescriptorFlags::Enum)) > 0; in create()
184 RootSigDesc.Val = (Flags & llvm::to_underlying(dxbc::RootFlags::Val)) > 0; in create()
428 case llvm::to_underlying(dxbc::RootParameterType::Constants32Bit): { in mapping()
434 case llvm::to_underlying(dxbc::RootParameterType::CBV): in mapping()
435 case llvm::to_underlying(dxbc::RootParameterType::SRV): in mapping()
436 case llvm::to_underlying(dxbc::RootParameterType::UAV): { in mapping()
442 case llvm::to_underlying(dxbc::RootParameterType::DescriptorTable): { in mapping()
H A DDXContainerEmitter.cpp282 case llvm::to_underlying(dxbc::RootParameterType::Constants32Bit): { in writeParts()
292 case llvm::to_underlying(dxbc::RootParameterType::CBV): in writeParts()
293 case llvm::to_underlying(dxbc::RootParameterType::SRV): in writeParts()
294 case llvm::to_underlying(dxbc::RootParameterType::UAV): { in writeParts()
306 case llvm::to_underlying(dxbc::RootParameterType::DescriptorTable): { in writeParts()
/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/ADT/
H A DBitmaskEnum.h135 auto U = llvm::to_underlying(Val);
224 uint64_t{llvm::to_underlying(E::LLVM_BITMASK_LARGEST_ENUMERATOR)});
H A DSTLForwardCompat.h79 [[nodiscard]] constexpr std::underlying_type_t<Enum> to_underlying(Enum E) { in to_underlying() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DDXContainer.h160 llvm::to_underlying(dxbc::RootParameterType::CBV) || in classof()
162 llvm::to_underlying(dxbc::RootParameterType::SRV) || in classof()
164 llvm::to_underlying(dxbc::RootParameterType::UAV)); in classof()
194 llvm::to_underlying(dxbc::RootParameterType::DescriptorTable)); in classof()
/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/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCTypeEncodingParser.cpp93 llvm::to_underlying(clang::TagTypeKind::Struct)); in BuildStruct()
99 llvm::to_underlying(clang::TagTypeKind::Union)); in BuildUnion()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DTemplateArgumentHasher.cpp266 Hash.AddInteger(llvm::to_underlying(T->getSizeModifier())); in VisitArrayType()
394 Hash.AddInteger(llvm::to_underlying(T->getVectorKind())); in VisitVectorType()

1234