File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mlir/include/mlir/Dialect/SparseTensor/IR Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ struct LevelType {
295
295
}
296
296
297
297
// / Get the `LevelFormat` of the `LevelType`.
298
- LevelFormat getLvlFmt () const {
298
+ constexpr LevelFormat getLvlFmt () const {
299
299
return static_cast <LevelFormat>(lvlBits & 0xffff0000 );
300
300
}
301
301
@@ -307,12 +307,12 @@ struct LevelType {
307
307
308
308
// / Check if the `LevelType` has the properties
309
309
template <LevelPropNonDefault p>
310
- bool isa () const {
310
+ constexpr bool isa () const {
311
311
return lvlBits & static_cast <uint64_t >(p);
312
312
}
313
313
314
314
// / Check if the `LevelType` needs positions array.
315
- bool isWithPosLT () const {
315
+ constexpr bool isWithPosLT () const {
316
316
return isa<LevelFormat::Compressed>() ||
317
317
isa<LevelFormat::LooseCompressed>();
318
318
}
You can’t perform that action at this time.
0 commit comments