summaryrefslogtreecommitdiff
path: root/mlir/test/Conversion/FuncToLLVM/convert-data-layout.mlir
blob: c16702f0442ba94f784df34fa6e2a6a6ca59fa23 (plain)
1
2
3
4
5
6
7
8
// RUN: mlir-opt -set-llvm-module-datalayout -convert-func-to-llvm %s | FileCheck %s

// RUN: mlir-opt -set-llvm-module-datalayout='data-layout=p:32:32:32' -convert-func-to-llvm %s \
// RUN: | FileCheck %s --check-prefix=CHECK-32

// CHECK: module attributes {llvm.data_layout = ""}
// CHECK-32: module attributes {llvm.data_layout = "p:32:32:32"}
module {}