Alexis Perry-Holby f1d3fe7aae
Add basic -mtune support (#98517)
Initial implementation for the -mtune flag in Flang.

This PR is a clean version of PR #96688, which is a re-land of PR #95043
2024-07-16 16:48:24 +01:00

15 lines
464 B
MLIR

// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
// CHECK: define void @tune_cpu_x86() #[[ATTRSX86:.*]] {
// CHECK: define void @tune_cpu_arm() #[[ATTRSARM:.*]] {
// CHECK: attributes #[[ATTRSX86]] = { "tune-cpu"="pentium4" }
// CHECK: attributes #[[ATTRSARM]] = { "tune-cpu"="neoverse-n1" }
llvm.func @tune_cpu_x86() attributes {tune_cpu = "pentium4"} {
llvm.return
}
llvm.func @tune_cpu_arm() attributes {tune_cpu = "neoverse-n1"} {
llvm.return
}