[llvm] [mlir] [mlir][sparse] Support explicit/implicit value for complex type (PR #90771)

Aart Bik via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 14:08:23 PDT 2024


================
@@ -663,6 +664,9 @@ Attribute SparseTensorEncodingAttr::parse(AsmParser &parser, Type type) {
         explicitVal = result;
       } else if (auto result = llvm::dyn_cast<IntegerAttr>(attr)) {
         explicitVal = result;
+      } else if (auto result =
+                     llvm::dyn_cast<::mlir::complex::NumberAttr>(attr)) {
----------------
aartbik wrote:

this ::mlir .. prefix should not be needed right? [see above]
that way, it also fits on one line ;-)

same below

https://github.com/llvm/llvm-project/pull/90771


More information about the llvm-commits mailing list