Commit Graph

20 Commits

Author SHA1 Message Date
Naveen Saini
9aecbb76e8 llvm-project-source: exclude for llvm-12
meta-clang now builds llvm-spiv-translator as an external project for
llvm12 so stop building it.

It still need to be built for llvm-10 and llvm-11 though.

Ref:
aa1ab889bc

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-01 13:28:51 +08:00
Naveen Saini
134f7020f6 llvm-project-source: update to include latest commits
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-02 23:10:43 +08:00
Naveen Saini
bc6663d2ca llvm-project-source: update to release tag llvm 11.0.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-28 10:38:52 +08:00
Anuj Mittal
26de78f5fe llvm: fix build with LLVM11
Ensure that we can build with both dunfell (LLVM10) and current master
(LLVM11) of meta-clang. Look for LLVMVERSION set by meta-clang and
include relevant patches based on the version.

There's no official release for SPIRV-LLVM-Translator yet for LLVM11 so
pick the latest.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-15 11:55:42 +08:00
Naveen Saini
ae7f71a65d llvm-project-source: drop llvm9 support
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
c5d1181064 llvm-project-source: apply llvm-patches for llvm10 as well
Patches from llvm-patches used by intel-compute-runtime as per release notes:
https://github.com/intel/compute-runtime/releases/tag/20.27.17231

llvm-patches:
0e35a4a02d

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
c53cdd4c32 llvm-project-source: upgrade SPIRV-LLVM-Translator to latest commit
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-28 19:02:57 +08:00
Naveen Saini
d45a72dc4b llvm-project-source: allow to use with zeus release
In order to use latest opencl versions with zeus, carrying llvm9 specific
patches, and conditinally applying based on LLVMVERSION.

In zeus release, LLVMVERSION points to 9.x.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-27 16:23:50 +08:00
Anuj Mittal
ed141a08b3 llvm-spirv: upgrade 9.0.0 -> 10.0.0
Remove patches that are present in this version of llvm and backport a
fix to prevent linking errors.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-04 18:18:52 +08:00
Naveen Saini
0b6fd29c9f llvm-project-source: drop patch
Patch is already carried by meta-clang layer.
ab686950af

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-11 14:32:30 +08:00
Naveen Saini
c85df639f4 llvm-project-source: update SPIRV-LLVM-Translator 9.0.0 -> v9.0.0-1
Release notes can be found here:
https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v9.0.0-1

Recommended for latest intel-compute-runtime v19.44.14658
https://github.com/intel/compute-runtime/releases/tag/19.44.14658

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-12-27 10:01:59 +08:00
Naveen Saini
afefffd213 clang: drop bbappend
LIBCPLUSPLUS is now set to use GNU libstdc++ by default. A new variable
RUNTIME can be used to change this behaviour.

6895c79e05

Remove this bbappend as it is not required any more.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-11-20 20:01:44 +08:00
Anuj Mittal
5cbdb5e277 clang: apply LIBCPLUSPLUS setting only for meta-intel machines
This shouldn't be forced upon users including the layer without using the
machine value from meta-intel.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-10-22 12:19:50 +08:00
Naveen Saini
fdcecbf1ad clang: clean up
No need to set LLVM_TARGETS_TO_BUILD here as it
is set by meta-clang layer.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-10-09 11:32:25 +08:00
Anuj Mittal
2b928a42ff clang: remove do_install append
There is no need to invoke the cmake target explicitly now to have cmake
files installed. Remove the append to do_install doing that.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-09-19 06:24:35 +08:00
Anuj Mittal
b13d766b0c clang: remove COMPATIBLE_HOST
clang builds fine for 32-bit targets too now. Remove COMPATIBLE_HOST.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-09-19 06:24:35 +08:00
Naveen Saini
1b076fd8db llvm-project-source: update SPIRV-LLVM-Translator 8.0.0 -> 9.0.0
Remove all the backported patches which are available in 9.0.0 release.

Few patches were recommended from llvm-patches repo:
https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md
3906cc086f

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-09-13 16:17:22 +08:00
Anuj Mittal
9804b5a0e9 llvm-spirv: update to sync with opencl-clang
Also include a patch to not build tests to prevent passing the build
flag to every component that is built out of tree.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-08-21 12:27:06 +08:00
Anuj Mittal
9c62233238 opencl-clang: move to a separate recipe
Since this is managed as a separate repository, build it as a separate
component instead of bundling with LLVM/clang.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-08-21 12:27:06 +08:00
Anuj Mittal
a12a2f0346 clang: build Intel common-clang and spirv
Common clang is a thin wrapper library around clang. Common clang has
OpenCL-oriented API and is capable to compile OpenCL C kernels to SPIR-V
modules.

This adds a bbappend to clang recipe from meta-clang to build the
necessary components and moves it to dynamic layers so it's built only
when clang-layer is included.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-05-17 19:33:24 +08:00