We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611f0bb commit 42beb33Copy full SHA for 42beb33
llvm/lib/Target/DirectX/DXILRootSignature.cpp
@@ -432,6 +432,11 @@ static bool verifyRangeType(uint32_t Type) {
432
return false;
433
}
434
435
+template <typename... FlagTypes>
436
+static bool isFlagSet(uint32_t Flags, FlagTypes... FlagsToCheck) {
437
+ return ((Flags & llvm::to_underlying(FlagsToCheck)) | ...) == Flags;
438
+}
439
+
440
static bool verifyDescriptorRangeFlag(uint32_t Version, uint32_t Type,
441
uint32_t FlagsVal) {
442
using FlagT = dxbc::DescriptorRangeFlag;
0 commit comments