Skip to content

Commit

Permalink
Support up to LLVM 14
Browse files Browse the repository at this point in the history
This adds support for LLVM versions up to 14 by:

* Bumping the `llvm-pretty` submodule to bring in the changes from
  GaloisInc/llvm-pretty#109.
* Bumping the `llvm-pretty-bc-parser` submodule to bring in the changes from
  GaloisInc/llvm-pretty-bc-parser#219.
* Bumping the `crucible` submodule to bring in the changes from
  GaloisInc/crucible#1083.
* Updating the surrounding documentation accordingly.
  • Loading branch information
RyanGlScott committed May 26, 2023
1 parent 48731f1 commit 65e898e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
see the `mir_*` commands documented in the
[SAW manual](https://github.com/GaloisInc/saw-script/blob/master/doc/manual/manual.md).

* Support LLVM versions up to 14.

# Version 0.9

## New Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ SAW can analyze LLVM programs (usually derived from C, but potentially
for other languages). The only tool strictly required for this is a
compiler that can generate LLVM bitcode, such as `clang`. However,
having the full LLVM tool suite available can be useful. We have tested
SAW with LLVM and `clang` versions from 3.5 to 12.0, as well as the
SAW with LLVM and `clang` versions from 3.5 to 14.0, as well as the
version of `clang` bundled with Apple Xcode. We welcome bug reports on
any failure to parse bitcode from LLVM versions in that range.

Expand Down
2 changes: 1 addition & 1 deletion deps/crucible
Submodule crucible updated 44 files
+0 −1 .github/cabal.project.crux-llvm
+0 −1 .github/cabal.project.crux-mir
+4 −1 .github/workflows/crux-llvm-build.yml
+0 −3 .gitmodules
+0 −1 cabal.project
+0 −13 crucible-concurrency/crucible-concurrency.cabal
+0 −1 crucible-go/crucible-go.cabal
+0 −2 crucible-jvm/crucible-jvm.cabal
+0 −8 crucible-llvm/crucible-llvm.cabal
+0 −2 crucible-mir/crucible-mir.cabal
+1 −2 crucible-symio/crucible-symio.cabal
+0 −15 crucible-syntax/crucible-syntax.cabal
+1 −16 crucible-wasm/crucible-wasm.cabal
+0 −11 crucible/crucible.cabal
+31 −1 crux-llvm/README.md
+1 −9 crux-llvm/crux-llvm.cabal
+0 −0 crux-llvm/test-data/golden/T972-fail.c
+4 −0 crux-llvm/test-data/golden/T972-fail.pre-clang12.z3.good
+1 −1 crux-llvm/test-data/golden/T972-fail.pre-clang14.z3.good
+4 −0 crux-llvm/test-data/golden/T972-fail.z3.good
+3 −3 crux-llvm/test-data/golden/abd-test-file-32.cvc5.good
+9 −0 crux-llvm/test-data/golden/abd-test-file-32.pre-clang13.cvc5.good
+4 −0 crux-llvm/test-data/golden/golden/T847-fail2.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/T847-fail2.z3.good
+4 −0 crux-llvm/test-data/golden/golden/T847-succeed.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/T847-succeed.z3.good
+4 −0 crux-llvm/test-data/golden/golden/T974.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/T974.z3.good
+4 −0 crux-llvm/test-data/golden/golden/freeze.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/freeze.z3.good
+4 −0 crux-llvm/test-data/golden/golden/invoke-test.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/invoke-test.z3.good
+4 −0 crux-llvm/test-data/golden/golden/ubsantrap.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/ubsantrap.z3.good
+96 −23 crux-llvm/test/Test.hs
+1 −34 crux-mir/crux-mir.cabal
+0 −6 crux-mir/test/Test.hs
+0 −8 crux/crux.cabal
+0 −1 dependencies/aig
+1 −1 dependencies/llvm-pretty
+1 −1 dependencies/llvm-pretty-bc-parser
+1 −1 uc-crux-llvm/README.md
+8 −1 uc-crux-llvm/test/programs/read_global_neg_offset_strlen.c
+0 −8 uc-crux-llvm/uc-crux-llvm.cabal
2 changes: 1 addition & 1 deletion deps/llvm-pretty
2 changes: 1 addition & 1 deletion doc/manual/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ The resulting `LLVMModule` can be passed into the various functions
described below to perform analysis of specific LLVM functions.

The LLVM bitcode parser should generally work with LLVM versions between
3.5 and 9.0, though it may be incomplete for some versions. Debug
3.5 and 14.0, though it may be incomplete for some versions. Debug
metadata has changed somewhat throughout that version range, so is the
most likely case of incompleteness. We aim to support every version
after 3.5, however, so report any parsing failures as [on
Expand Down

0 comments on commit 65e898e

Please sign in to comment.