This patch adds the target_cpu attribute to llvm.func MLIR operations and updates the translation to/from LLVM IR to match "target-cpu" function attributes.
8 lines
247 B
MLIR
8 lines
247 B
MLIR
// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
|
|
|
|
// CHECK: define void @target_cpu() #[[ATTRS:.*]] {
|
|
// CHECK: attributes #[[ATTRS]] = { "target-cpu"="gfx90a" }
|
|
llvm.func @target_cpu() attributes {target_cpu = "gfx90a"} {
|
|
llvm.return
|
|
}
|