17 lines · plain
1; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s2 3; CHECK-LABEL: llvm.func @tune_cpu_x86()4; CHECK-SAME: tune_cpu = "pentium4"5define void @tune_cpu_x86() #0 {6 ret void7}8 9; CHECK-LABEL: llvm.func @tune_cpu_arm()10; CHECK-SAME: tune_cpu = "neoverse-n1"11define void @tune_cpu_arm() #1 {12 ret void13}14 15attributes #0 = { "tune-cpu"="pentium4" }16attributes #1 = { "tune-cpu"="neoverse-n1" }17