[Mlir-commits] [mlir] [mlir][sparse] support type conversion from SoA COO to memrefs. (PR #82398)
Aart Bik
llvmlistbot at llvm.org
Tue Feb 20 10:55:57 PST 2024
================
@@ -303,9 +303,9 @@ struct LevelType {
}
/// Check if the `LevelType` is in the `LevelFormat`.
- template <LevelFormat fmt>
+ template <LevelFormat... fmt>
constexpr bool isa() const {
- return getLvlFmt() == fmt;
+ return (... || (getLvlFmt() == fmt)) || false;
----------------
aartbik wrote:
I clearly need to brush up on my templating syntax ;-)
https://github.com/llvm/llvm-project/pull/82398
More information about the Mlir-commits
mailing list