Skip to content

Commit

Permalink
Fixing GCC warning due to a tblgen bug for enums with only None value…
Browse files Browse the repository at this point in the history
…s. (#18041)
  • Loading branch information
benvanik committed Jul 30, 2024
1 parent 9aaae34 commit 667f09c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/src/iree/compiler/Dialect/HAL/IR/HALAttrs.td
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,13 @@ def HAL_DescriptorSetLayoutFlagsAttr :
}

def HAL_DispatchFlags_None : I64BitEnumAttrCase<"None", 0x0000>;
// HACK: workaround tblgen bug on enums that only have a None value. This can be
// repurposed for any use in the future as the runtime does not know about it.
def HAL_DispatchFlags_Reserved : I64BitEnumAttrCase<"Reserved", 0x0001>;
def HAL_DispatchFlagsAttr :
I64BitEnumAttr<"DispatchFlags", "valid dispatch flags", [
HAL_DispatchFlags_None,
HAL_DispatchFlags_Reserved,
]> {
let cppNamespace = "::mlir::iree_compiler::IREE::HAL";
}
Expand Down

0 comments on commit 667f09c

Please sign in to comment.