Skip to content

Commit 42beb33

Browse files
author
joaosaffran
committed
addressing comments
1 parent 611f0bb commit 42beb33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ static bool verifyRangeType(uint32_t Type) {
432432
return false;
433433
}
434434

435+
template <typename... FlagTypes>
436+
static bool isFlagSet(uint32_t Flags, FlagTypes... FlagsToCheck) {
437+
return ((Flags & llvm::to_underlying(FlagsToCheck)) | ...) == Flags;
438+
}
439+
435440
static bool verifyDescriptorRangeFlag(uint32_t Version, uint32_t Type,
436441
uint32_t FlagsVal) {
437442
using FlagT = dxbc::DescriptorRangeFlag;

0 commit comments

Comments
 (0)