[flang-commits] [clang] [flang] [mlir] [flang] Add basic -mtune support (PR #95043)

Christian Ulmann via flang-commits flang-commits at lists.llvm.org
Mon Jun 17 05:40:22 PDT 2024


================
@@ -0,0 +1,9 @@
+; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
+
+; CHECK-LABEL: llvm.func @tune_cpu()
+; CHECK-SAME: tune_cpu = "pentium4"
----------------
Dinistro wrote:

Can you add a check that ensures that this is not also placed in the passthrough dictionary? I don't see any part in the code that would avoid this. Adding it to the `ExplicitAttributes` set in `ModuleImport.cpp` should be enough.

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


More information about the flang-commits mailing list