Switch builds to use LLVM 16. Updated the documentation to treat LLVM 16 as default.
Refreshed parts of buildIGC.sh regarding supported versions. Fixed a bug when setting a variable in buildIGC.sh to a default value.
Force enabled exceptions for VC. This is a workaround while we're investigating why they're disabled.
It is the revert of "add option to disable VC BiF, disable by default
prior to LLVM-9" plus some additional cleaning. This change
significantly simplifies and reduces the code. Though now there's no way
to build the project with a LLVM prior to 9th version.
Move common code to igc_llvm.cmake:
add LLVM include directories and supress warnings;
add LLVM modules and include flags for tablgen.
Remove all of these from other places.
Documentation already lists this as requirement.
Additionally, cleanup some policies:
CMP0054 -- expansion was accidental and did not affect anything.
CMP0057, CMP0058, CMP0065 -- already set to NEW with required version.
Move this code to igcdeps library. Reformat everything to
LLVM style as git blame is ruined anyway.
Change-Id: If9d5156187b640ec939b3f36a59b42b9eb982aeb
Add special separate library for IGC depended things that
used in VC. Move some vc-related parts from other IGC into
this library. Set proper dependencies on this library for
components that use it.
Without this library include directories and dependecies are
not set correctly in different configurations.
Change-Id: I183954dbdad7fdc320af7918f7bf4dc1301de6b6
Correctly handle detection of system LLVM. Use LLVM target
instead of static libraries when LLVM was configured with
LLVM_LINK_LLVM_DYLIB.
Change-Id: Ifed0886d6aefb79ecbdd34d0fdddd027fd2d0aaa
Correctly handle detection of system LLVM. Use LLVM target
instead of static libraries when LLVM was configured with
LLVM_LINK_LLVM_DYLIB.
Change-Id: I7a42878ddb984a3e609c7de63483e2d32cefd9e8