Files
clang-p2996/mlir/test/Target/LLVMIR/target-cpu.mlir
Sergio Afonso 8fb685fb7e [MLIR][LLVM] Add explicit target_cpu attribute to llvm.func (#78287)
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.
2024-01-17 14:55:02 +00:00

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
}