IITH-Compilers / IR2Vec

Implementation of IR2Vec, LLVM IR Based Scalable Program Embeddings
Other
84 stars 39 forks source link

Issue about error:expected type #130

Closed wangzhanBJCA closed 1 month ago

wangzhanBJCA commented 1 month ago

During the practice, I noticed some errors about specific ir instructions, such as : image

image

image

image

image

This is my ir2vec version image

Does ir2vec has plan to solve them ? And how could I resolve them in my procedure of usage?

Thanks very much, hope for reply~

svkeerthy commented 1 month ago

Hi @wangzhanBJCA,

Thanks for raising the issue. Can you please share the version of LLVM with which you had compiled the ll files? (And the source code/ll file if possible)

svkeerthy commented 1 month ago

Hi @wangzhanBJCA,

Any inputs on this?

wangzhanBJCA commented 1 month ago

Sorry for the late reply. After some experiments, it seems to be caused by my down-stream modifications base on llvm-17.0.6,

And I tested the official llvm-17.0.6 release package and ir2vec built by the same llvm version, everything is OK.

This issue could be closed now, I think~

svkeerthy commented 1 month ago

Okay, thanks. If you want to try IR2Vec with your modified LLVM, you can set the LT_LLVM_INSTALL_DIR flag in the cmake, and it should work fine.

Let me know if you have any questions.