InvalidDataLayout error thrown from ViewIRGraph
Opened this issue · 2 comments
robstewart57 commented
Trying to use the ViewIRGraph
executable provided by llvm-tools on an IR file created by clang 3.5 on a 64bit machine throws an error from src/LLVM/Parse.hs
in this llvm-data-interop
package.
$ ViewIRGraph -t Cfg -f Pdf -o out.pdf ~/tmp/example.ll
ViewIRGraph: InvalidDataLayout "e-i64:64-f80:128-n8:16:32:64-S128" "Invalid float alignment preference: 80:128"
The data layout in example.ll
is:
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
travitch commented
What version of llvm did you link llvm-data-interop against? And what version of llvm-data-interop is in play?
robstewart57 commented
- LLVM version 3.5.0
- llvm-data-interop-0.4.0