Files
clang-p2996/mlir/test/Target/LLVMIR/Import/prefer-vector-width.ll
Cameron McInally ce9cef79ea [flang] Add support for -mprefer-vector-width=<value> (#142073)
This patch adds support for the -mprefer-vector-width= command line
option. The parsing of this options is equivalent to Clang's and it is
implemented by setting the "prefer-vector-width" function attribute.

Co-authored-by: Cameron McInally <cmcinally@nvidia.com>
2025-05-30 07:50:18 -06:00

10 lines
264 B
LLVM

; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
; CHECK-LABEL: llvm.func @prefer_vector_width()
; CHECK-SAME: prefer_vector_width = "128"
define void @prefer_vector_width() #0 {
ret void
}
attributes #0 = { "prefer-vector-width"="128" }