Files
clang-p2996/mlir/test/Target/LLVMIR/prefer-vector-width.mlir
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

9 lines
278 B
MLIR

// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
// CHECK: define void @prefer_vector_width() #[[ATTRS:.*]] {
// CHECK: attributes #[[ATTRS]] = { "prefer-vector-width"="128" }
llvm.func @prefer_vector_width() attributes {prefer_vector_width = "128"} {
llvm.return
}