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>
9 lines
278 B
MLIR
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
|
|
}
|