mchalupa / dg

[LLVM Static Slicer] Various program analyses, construction of dependence graphs and program slicing of LLVM bitcode.
MIT License
474 stars 131 forks source link

LLVM: Bump to LLVM 18 #454

Open XChy opened 7 months ago

XChy commented 7 months ago

Fixes #453 If possible, I prefer to creating a new branch llvm-latest to cover it. But I have not writing access. LLVM's IR and API have changed a lot so far, like opaque-ptr, and the master branch of dg is not compatible with latest LLVM version. So I post this PR to fix it.

mchalupa commented 7 months ago

Thanks a lot, such patches are always very welcome! I created the branch llvm-latest as you wanted. If you're OK with that, I would later apply this PR with some modifications to devel and eventually to master branches. (the modification would be just to drop reformatting of CMakeLists.txt and fix the changes so that they work with older LLVMs too).

XChy commented 7 months ago

Thanks. That's OK. But to note, this patch just makes it compilable, not free of bugs. Such integration with latest LLVM is untested, so we may need to fix it in the future.