Get Remill building with LLVM 15 (#631)

* Get Remill building with LLVM 15

* Add missing header for x86 lift test

* Fix `enableOpaquePointers` calls

* Define a non-extern `__remill_state` in each Instructions module

* Remove `__remill_state` variables in tests

* Update build script to support LLVM 15

* Build with LLVM 15 in CI

* Bump CXX Common version

* Update Docker script

* Add comment explaining the definition of the state variable

* Correct wording
This commit is contained in:
Alex Cameron
2022-10-30 20:42:23 +00:00
committed by GitHub
parent 16cae5a12f
commit d5c5035728
20 changed files with 68 additions and 105 deletions
+7 -3
View File
@@ -23,11 +23,11 @@ DOWNLOAD_DIR="$( cd "$( dirname "${SRC_DIR}" )" && pwd )/lifting-bits-downloads"
CURR_DIR=$( pwd )
BUILD_DIR="${CURR_DIR}/remill-build"
INSTALL_DIR=/usr/local
LLVM_VERSION=llvm-14
LLVM_VERSION=llvm-15
OS_VERSION=
ARCH_VERSION=
BUILD_FLAGS=
CXX_COMMON_VERSION="0.2.10"
CXX_COMMON_VERSION="0.2.12"
# There are pre-build versions of various libraries for specific
# Ubuntu releases.
@@ -276,6 +276,10 @@ function GetLLVMVersion
LLVM_VERSION=llvm-14
return 0
;;
15)
LLVM_VERSION=llvm-15
return 0
;;
*)
# unknown option
echo "[x] Unknown or unsupported LLVM version ${1}. You may be able to manually build it with cxx-common."
@@ -291,7 +295,7 @@ function Help
echo ""
echo "Options:"
echo " --prefix Change the default (${INSTALL_DIR}) installation prefix."
echo " --llvm-version Change the default (14) LLVM version."
echo " --llvm-version Change the default (15) LLVM version."
echo " --build-dir Change the default (${BUILD_DIR}) build directory."
echo " --debug Build with Debug symbols."
echo " --extra-cmake-args Extra CMake arguments to build with."
+3 -45
View File
@@ -4,54 +4,12 @@
V=""
case ${LLVM_VERSION} in
llvm35*)
V=3.5
;;
llvm36*)
V=3.6
;;
llvm37*)
V=3.7
;;
llvm38*)
V=3.8
;;
llvm39*)
V=3.9
;;
llvm4*)
V=4
;;
llvm5*)
V=5
;;
llvm6*)
V=6
;;
llvm7*)
V=7
;;
llvm8*)
V=8
;;
llvm9*)
V=9
;;
llvm10*)
V=10
;;
llvm11*)
V=11
;;
llvm12*)
V=12
;;
llvm13*)
V=13
;;
llvm14*)
V=14
;;
llvm15*)
V=15
;;
*)
echo "Unknown LLVM version: ${LLVM_VERSION}"
exit 1