brintos

brintos / llvm-project-archived public Read only

0
0
Text · 464 B · c7969f5 Raw
15 lines · plain
1// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s2 3// CHECK: define void @tune_cpu_x86() #[[ATTRSX86:.*]] {4// CHECK: define void @tune_cpu_arm() #[[ATTRSARM:.*]] {5// CHECK: attributes #[[ATTRSX86]] = { "tune-cpu"="pentium4" }6// CHECK: attributes #[[ATTRSARM]] = { "tune-cpu"="neoverse-n1" }7 8llvm.func @tune_cpu_x86() attributes {tune_cpu = "pentium4"} {9  llvm.return10}11 12llvm.func @tune_cpu_arm() attributes {tune_cpu = "neoverse-n1"} {13  llvm.return14}15