Issue 151314
Summary [mlir][docs] Out of date code in the tutorial "Adding a new Attribute or Type definition"
Labels mlir
Assignees
Reporter ckoparkar
    Using the code given in [Adding a new Attribute or Type definition](https://mlir.llvm.org/docs/DefiningDialects/AttributesAndTypes/#adding-a-new-attribute-or-type-definition) to define a custom attribute results in an error:
 
```sh
error: Using a raw APInt parameter without a custom comparator is not supported
because an assert in the equality operator is triggered when the two APInts have
different bit widths. This can lead to unexpected crashes. Use an `APIntParameter`
or provide a custom comparator.
```

See https://github.com/llvm/llvm-project/pull/135970. We should update the document accordingly.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to