[Mlir-commits] [mlir] [MLIR][LLVM] Add `llvm.experimental.constrained.fptrunc` operation (PR #86260)
Victor Perez
llvmlistbot at llvm.org
Mon Mar 25 08:14:29 PDT 2024
================
@@ -290,6 +290,73 @@ def GetResultPtrElementType : OpInterface<"GetResultPtrElementType"> {
];
}
+def ExceptionBehaviorOpInterface : OpInterface<"ExceptionBehaviorOpInterface"> {
----------------
victor-eds wrote:
I tried this, but the setter causes a compilation issue. There is a collision with a concrete operation member function with a different input type and the call is causing a bad signature error due to how MLIR trait classes are implemented. This is working for other cases as the attribute class has an implicit conversion operator to the underlying value. As the attributes we are dealing with here are enum attributes, we cannot add that member to the class via `extraClassDeclarations`.
I'd keep this as is as I'd rather benefit from `LLVM_Enum` tablegen goodies. Are you fine with keeping this as is? I see other attributes with potentially the same issue that have to take the same compromise as here.
https://github.com/llvm/llvm-project/pull/86260
More information about the Mlir-commits
mailing list