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>
10 lines
264 B
LLVM
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" }
|