[Mlir-commits] [mlir] [MLIR] Extend floating point parsing support (PR #90442)
Christian Ulmann
llvmlistbot at llvm.org
Tue Apr 30 09:36:43 PDT 2024
================
@@ -0,0 +1,57 @@
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics| FileCheck %s
+
+// CHECK-LABEL: @test_enum_attr_roundtrip
+func.func @test_enum_attr_roundtrip() -> () {
+ // CHECK: attr = #test.custom_float<"float" : 2.000000e+00>
+ "test.op"() {attr = #test.custom_float<"float" : 2.>} : () -> ()
+ // CHECK: attr = #test.custom_float<"double" : 2.000000e+00>
+ "test.op"() {attr =#test.custom_float<"double" : 2.>} : () -> ()
----------------
Dinistro wrote:
```suggestion
"test.op"() {attr = #test.custom_float<"double" : 2.>} : () -> ()
```
Nit: here and on most other lines
https://github.com/llvm/llvm-project/pull/90442
More information about the Mlir-commits
mailing list