[flang-commits] [clang] [flang] [mlir] [flang] Add support for -mrecip[=<list>] (PR #143418)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Mon Jun 9 11:56:59 PDT 2025


================
@@ -0,0 +1,9 @@
+; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
+
+; CHECK-LABEL: llvm.func @reciprocal_estimates()
+; CHECK-SAME: reciprocal_estimates = "all"
+define void @reciprocal_estimates() #0 {
+  ret void
+}
+
+attributes #0 = { "reciprocal-estimates" = "all" }
----------------
tarunprabhu wrote:

Is it possible that other attributes get added to this implicitly on certain platforms? I seem to recall something like this happening in an earlier PR, but I can't remember the details now.

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


More information about the flang-commits mailing list