[Mlir-commits] [mlir] [MLIR] Improve translation of DISubrange. (PR #93689)
Tobias Gysi
llvmlistbot at llvm.org
Fri May 31 11:04:47 PDT 2024
================
@@ -625,10 +625,10 @@ def LLVM_DINamespaceAttr : LLVM_Attr<"DINamespace", "di_namespace",
def LLVM_DISubrangeAttr : LLVM_Attr<"DISubrange", "di_subrange", /*traits=*/[],
"DINodeAttr"> {
let parameters = (ins
- OptionalParameter<"IntegerAttr">:$count,
- OptionalParameter<"IntegerAttr">:$lowerBound,
- OptionalParameter<"IntegerAttr">:$upperBound,
- OptionalParameter<"IntegerAttr">:$stride
+ OptionalParameter<"::mlir::Attribute">:$count,
----------------
gysit wrote:
The LLVM BoundType is a pointer union. That could be an option that maybe less cumbersome than a separate attribute. Worst case we can also go for a plain attribute.
https://github.com/llvm/llvm-project/pull/93689
More information about the Mlir-commits
mailing list