Closed RicDen closed 3 years ago
The problem is that this is not supported and it is not clear what is the exact version of the Clang/LLVM used in Vitis. You might look at https://github.com/triSYCL/sycl/tree/sycl/unified%2Fnext to find some experiment about how to feed Vitis with some LLVM IR.
Hello,
I am trying to pass llvm bc files to the Vitis front end, but I get an "error: Invalid record". The only kind of .bc codes I got to work is the LLVM_CUSTOM_OUTPUT file, which set as LLVM_CUSTOM_INPUT file. However, even if I only use llvm-dis-7 and and then llvm-as-7 to just convert it to LLVM IR and back to .bc formata, the input is not anymore accepted and I get the invalid record error.
As I can't find any documentation regarding this and the error log does not give me more than this one line, I suppose it is a bug or it's something I can't find.
I reduced everything and I am just using the cpp code from the custom llvm example from this repository. Below you can see my TCL script.
I am running Vitis 2020.2 on Ubuntu 18.04. I also tried to work with llvm 9 or other, but the issue remains and I think it should work with llvm 7.
I woulld appreciate any help a lot. Thank you very much!