Files
clang-p2996/mlir/test/Target/LLVMIR/Import/target-cpu.ll
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

10 lines
234 B
LLVM

; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
; CHECK-LABEL: llvm.func @target_cpu()
; CHECK-SAME: target_cpu = "gfx90a"
define void @target_cpu() #0 {
ret void
}
attributes #0 = { "target-cpu"="gfx90a" }