brintos

brintos / llvm-project-archived public Read only

0
0
Text · 551 B · 2a9e978 Raw
13 lines · plain
1// REQUIRES: target=x86{{.*}}2// RUN: mlir-opt %s -llvm-target-to-data-layout="initialize-llvm-targets=false" --split-input-file --verify-diagnostics3 4// Without initializing the (right) LLVM targets/backends ("initialize-llvm-targets=false"),5// it is not possible to obtain LLVM's DataLayout for the target.6 7// expected-error @+1 {{failed to obtain llvm::DataLayout for #llvm.target}}8module attributes { dlti.dl_spec = #dlti.dl_spec<index = 32>,9llvm.target =10    #llvm.target<triple="x64_86-unknown-linux",11                 chip="skylake"> } {12}13