| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
This is a pre-requisite to enable OpenCL in Mesa.
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
|
|
|
|
| |
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
|
|
|
|
|
|
|
|
|
|
| |
The patch was taken from https://bugs.llvm.org/show_bug.cgi?id=48921
Unfortunately, LLVM 11 is already closed so the patch was only
accepted into LLVM 12.
Also reported at https://gitlab.freedesktop.org/mesa/mesa/-/issues/4107
Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because bcc and bpftrace have been set in NON_MULTILIB_RECIPES, 'bcc'
rprovides 'lib32-bcc'. So when multilib is enabled, it is 'bcc' rather
than 'lib32-bcc' installed to lib32 image such as lib32-core-image-minimal.
Then the runtime dependency 64-bit package python3-core is installed
accordingly. It causes 32-bit python modules which contains .so library
do not work any more. For example, it fails to run command 'dnf':
| ImportError: /usr/lib/python3.9/site-packages/libdnf/_error.so: wrong ELF class: ELFCLASS32
Remove bcc and bpftrace from NON_MULTILIB_RECIPES to make sure they are
not installed to lib32 images and mess images up.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Sanitizers include crypt.h from libcrypt to build, so when using llvm runtime this
becomes important to break the cyclic dependency
compiler-rt->libxcrypt->compiler-rt
Fixes #425
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Fixes Issue #415
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
oe-core's ccache.bbclass contains:
export CCACHE_COMPILERCHECK ?= "%compiler% -dumpspecs"
which sets a default value and allows others to easily override the
value of CCACHE_COMPILERCHECK if they wish to. Let's update
clang.bbclass to also set only the default value of CCACHE_COMPILERCHECK
too.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Under Yocto host, while using clang-native to build, it searches
install host gcc failed which causing include file not found
[snip]
|clang++ -target x86_64-linux -MMD -MF src/base/files/file_path_constants.o.d -I../../../tools/gn/src -I. \
-isystem/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/recipe-sysroot-native/usr/include -O2 -pipe \
-std=c++17 -c ../../../tools/gn/src/base/files/file_path_constants.cc -o src/base/files/file_path_constants.o
|../../../tools/gn/src/base/files/file_path_constants.cc:7:10: fatal error: 'iterator' file not found
|#include <iterator>
| ^~~~~~~~
[snip]
Set three Yocto based GCC triple: poky, oe-core and wind river
Before aplly the patch
[snip]
$ ../recipe-sysroot-native/usr/bin/clang++ -v
clang version 11.0.1 (https://github.com/llvm/llvm-project 43ff75f2c3feef64f9d73328230d34dac8832a91)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build-gn-native/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/chromium-87.0.4280.141/../recipe-sysroot-native/usr/bin
[snip]
After aplly the patch:
[snip]
$ clang-11 -v
clang version 11.0.1 (https://github.com/llvm/llvm-project 22c3241ff9a6224261df48d0258957fd8acc3d64)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build/tmp-glibc/work/x86_64-linux/clang-native/11.0.1-r0/build/bin
Found candidate GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-wrs-linux/10.1.0
Selected GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
[snip]
BTW, it is hardly to insert a triple by the replacement of TARGET_SYS
(=${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}), since TARGET_VENDOR
is different between clang and clang-native
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
|
|
|
|
| |
This commit fixes an issue when building a cmake based project where clang-tidy is configured as co-compiler. Without this option clang-tidy will fail as it cannot determinate the target architecture.
Signed-off-by: Tobias Bayer <tobiasbayer@outlook.de>
|
|
|
|
|
|
|
| |
clang delegates atomics to runtime library instead of builtins so link
in libatomic on x86/gnu
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
New version of ppp uses gcc specific options and nested functions which
clang does not support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
The tune file for octeontx2 has been added into oe-core by commit
ad4f82742c6f ("tune-octeontx2.inc: Add tune for Marvell OCTEON TX2
core"). But the clang doesn't support this core yet. So remove the
-mcpu from the TUNE_CCARGS to fix the build failure for the octeontx2
core.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes in this bump
* 43ff75f2c3fe [AArch64][GlobalISel] Promote scalar G_SHL constant shift amounts to s64.
* 9caca7241d44 [AArch64][GlobalISel] Use the look-through constant helper for the shift s32->s64 custom legalization.
* d104e582838f [CMake] Avoid __FakeVCSRevision.h with no git repository
* f5f8d86dc4c9 Don't error for zero-length arange entries
* 280e47ea0e83 [AArch64][GlobalISel] Narrow 128-bit regs to 64-bit regs in emitTestBit
* 9e16c5bfae6e [AArch64][GlobalISel] Look through a G_ZEXT when trying to match shift-extended register offsets.
* 6ec777c2f649 [Support] PR42623: Avoid setting the delete-on-close bit if a TempFile doesn't reside on a local drive
* f684355e0292 [Support][Windows] Fix incorrect GetFinalPathNameByHandleW() return value check in realPathFromHandle()
* 98f575ff55bf Don't reject calls to MinGW's unusual _setjmp declaration.
* 0312bec0d757 Recognize setjmp and friends as builtins even if jmp_buf is not declared yet.
* fdab756331f3 [Sema] Handle objc_super special lookup when checking builtin compatibility
* adf845300c9c [Sema] Introduce BuiltinAttr, per-declaration builtin-ness
* 200eb1abe2a1 Stop ExtractTypeForDeductionGuide from recursing on TypeSourceInfo
* 700baa009dc6 [MC][ELF] Accept abbreviated form with sh_flags and sh_entsize
* 861b2a24bc49 [KernelAddressSanitizer] Fix globals exclusion for indirect aliases
* 8511a8df838f [InstCombine] canonicalizeSaturatedAdd(): last fold is only valid for strict comparison (PR48390)
* 934376da5851 [NFC][InstCombine] Add test coverage for @llvm.uadd.sat canonicalization
* fc23bc9b30bf [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation
* ca8de9ad8895 [X86] Fix crash with i64 bitreverse on 32-bit targets with XOP.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
-Qunused-arguments means its silencing warning about compiling arm/neon
check code on x86 and tricking the build system to assume that compiler
can support neon on x86
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
This ensures it picks latest v2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
llvm openmp implementation is not yet ported to mips
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Brings in following fixes
* abeec5d081f [lldb] Report old modules from ModuleList::ReplaceEquivalent
* b618cf7a378 [lldb] GetSharedModule: Collect old modules in SmallVector
* 93fffe98d5c [lldb] Minidump: check for .text hash match with directory
* 393eac16e49 Add hashing of the .text section to ProcessMinidump.
* 98fa273339a [lldb] Normalize paths in new test
* 561e1ce1a82 [lldb] Fix GetRemoteSharedModule fallback logic
* 852f4d8eb6d [Sparc] Remove cast that truncates immediate operands to 32 bits.
* b091768e60e [LLD][COFF] Fix crash with /summary and PCH input files
* 59012b685fd [CUDA] Another attempt to fix early inclusion of <new> from libstdc++
* aa29049404e [CUDA] Unbreak CUDA compilation with -std=c++20
* 14d60e9a80d [X86][AVX] Only share broadcasts of different widths from the same SDValue of the same SDNode (PR48215)
* a21e609d6a2 [X86] Add broadcast merge test case for PR48215
* 0feb4bc5295 Fix missed SI_RETURN_TO_EPILOG in pre-emit peephole
* b430f94d005 [Clang][CodeGen][RISCV] Fix hard float ABI for struct with empty struct and complex
* a4eaecf122e [Clang][CodeGen][RISCV] Fix hard float ABI test cases with empty struct
* ba223fa19d3 [Clang][CodeGen][RISCV] Add hard float ABI tests with empty struct
* edc57e7e7ca Guard `find_library(tensorflow_c_api ...)` by checking for TENSORFLOW_C_LIB_PATH to be set by the user
* 542174d77de Implement .variant_pcs directive
* 724f62a5024 Add fatal error for unnamed SVE variadic arguments
* a60b9f1bf32 Add fatal error when running out of registers for SVE tuple call arguments
* 79cac55bf04 Fix unwind info relocation with large code model on AArch64
* bb852a09ae3 [GNU ObjC] Fix a regression listing methods twice.
* 2cf5c80ab6d [HIP] Fix static-lib test CHECK bug
* 19a8a7445dd [HIP] Fix HIP test on windows due to lld suffix
* 8b89bc0de0e [WebAssembly] Don't fold frame offset for global addresses
* a082c730b89 [WebAssembly] Fix FastISel address calculation bug
* 12c4c6cd770 (tag: llvmorg-11.0.1-rc1) Build reproducible tarballs for releases
* fd623ba8061 Fix crash after looking up dwo_id=0 in CU index.
* f590845f501 Revert "[clang-format] Fix AlignConsecutive on PP blocks"
* 890fdb8031e [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in complex wrapper headers.
* 075cca34483 [RTDYLD] support absolute relocations where needed
* d8e8ae195a2 Revert "[SemaTemplate] Stop passing insertion position around during VarTemplate instantiation"
* e4500bab8b2 [AArch64][GlobalISel] Handle rtcGPR64RegClassID in AArch64RegisterBankInfo::getRegBankFromRegClass()
* 03565ffd5da [CMake][compiler-rt][libunwind] Compile assembly files as ASM not C, unify workarounds
* 8ac70957806 [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation
* bbe6cbbed8c [stack-clash] Fix probing of dynamic alloca
* aac36687f79 Fix interaction between stack alignment and inline-asm stack clash protection
* a1e0363c740 Fix limit behavior of dynamic alloca
* 3e8d9807d66 [X86] Don't produce bad x86andp nodes for i1 vectors
* 973b95e0a84 [MCA][LSUnit] Correctly update the internal group flags on store barrier execution. Fixes PR48024.
* 06f479cba3a [CUDA] Extract CUDA version from cuda.h if version.txt is not found
* d50044e809d [CUDA] Improve clang's ability to detect recent CUDA versions.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
This helps in addressing an issue where clang is used and it expects
symbols in builtins library which are only provided by compiler-rt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
rpm needs omp, therefore it wont compile with clang on architectures not
supporting llvm libomp e.g. rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The minor release is bumped to 11.0.1
Changes is this bump are
* 0874e7ef66c Allow init_priority values <= 100 and > 65535 within system headers.
* 02004c9e7c9 [ADT] Fix for ImmutableMapRef
* 85ce339f1bd [cmake] Fix build of attribute plugin example on Windows
* ef4ffcafbb2 [DAE] MarkLive in MarkValue(MaybeLive) if any use is live
* 3c687677678 DeferredDiagnosticsEmitter crashes
* 701addff1b7 [clang][Sema] Fix PR47676: Handle dependent AltiVec C-style cast
* 5ad2592b5dc [X86] Fix cpu name typos
* 8fc424f26bf Add release tarballs for libclc
* 83716db47f9 [ELF] -r: don't crash when a non-SHF_LINK_ORDER orphan is added before a SHF_LINK_ORDER orphan
* 1ff84a04aeb BPF: fix incorrect DAG2DAG load optimization
* 38399ced95b [ConstantFold] Make areGlobalsPotentiallyEqual less aggressive.
* b59b6b662bb Import github action definitions from release/10.x branch
* 3039965645c Bump version to 11.0.1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
There are compile/link time errors
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Core uses a dumb utility called dwarfsrcfiles to grok source file names
and it assumes that .o and .a files are good old ELF files, that is not
true when using LTO in which case it becomes IR code, this tool starts
to puke, therefore disable using this tool
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
If thin-lto is used in DISTRO_FEATURES then enable thin-lto
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
clang emits __lshrti3 expecting it from builtins library but libgcc does
not have it, since we have compiler-rt support it because its compiled
with -fforce-enable-int128 so link with it
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
lld yet does not work relaxation so accomodate for that so LTO can work
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
To support kernel v5.9 and remove patches that have been merged upstream.
Signed-off-by: He Zhe <zhe.he@windriver.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Port is not available yet
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Daniel Dittmann <daniel.dittmann@rohde-schwarz.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cclang-tidy doesn't process compilation flags like "-mlittle-endian" and "sysroot". The current export tries to use those flags, which makes clang-tidy fail like in the following example:
> $ aarch64-poky-linux-clang-tidy fibonacci.cpp -mlittle-endian --sysroot=/opt/mgu22/sysroots/aarch64-poky-linux
> LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: aarch64-poky-linux-clang-tidy: Unknown command line argument '-mlittle-endian'. Try: 'aarch64-poky-linux-clan$
> aarch64-poky-linux-clang-tidy: Did you mean '--list-checks'?
> aarch64-poky-linux-clang-tidy: Unknown command line argument '--sysroot=/opt/mgu22/sysroots/aarch64-poky-linux'. Try: 'aarch64-poky-linux-clang-tidy --help'
> aarch64-poky-linux-clang-tidy: Did you mean '--color=/opt/mgu22/sysroots/aarch64-poky-linux'?
This change removes those compiler arguments:
> $ aarch64-poky-linux-clang-tidy fibonacci.cpp
> Error while trying to load a compilation database:
> Could not auto-detect compilation database for file "fibonacci.cpp"
> No compilation database found in /home/mqueiros/workspace/minimal-working-example/fibonacci or any parent directory
> fixed-compilation-database: Error while opening fixed database: No such file or directory
> json-compilation-database: Error while opening JSON database: No such file or directory
> Running without flags.
Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This helps configure checks for sse where clang sends out a unused
option warning but because we use -Qunused-arguments, this warning is
suppressed and -Werror does not notice this warning and checks succeed
for no reason on architectures who dont have SSE. Therefore removing
this option helps compiler to emit the warning and rightly detect that
these options can not be enabled for non-x86 architectures
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
CLANGSDK is 1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
There is no upstream support for RISCV in LLDB at this point thus disable it.
Not disabling it would result in undefined references due to lack of RISCV
implementation.
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LLVM_TARGET_ARCH must be riscv32 or riscv64, which results in LLVM_NATIVE_ARCH
being RISCV. We cannot pass RISCV to LLVM_TARGET_ARCH as that will cause
"Unknown architecture" error at configure time.
We already have all architectures listed in LLVM_TARGETS_TO_BUILD thus there
is no need to append additional ones. That results in LLVM_NATIVE_ARCH being
listed multiple times, e.g.:
-DLLVM_TARGETS_TO_BUILD='AMDGPU;AArch64;ARM;BPF;Mips;PowerPC;RISCV;X86;RISCV;RISCV;RISCV'
Furthermore get_clang_host_arch(), get_clang_target_arch() and get_clang_arch()
now return riscv32 or riscv64, which is not a valid value for
-DLLVM_TARGETS_TO_BUILD. The valid value is RISCV here.
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
This helps ensure that lldb-server gets correct tripets on target
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
CastXML is an AST analysis tool similar to and succeeding gccxml. It
is used to generate an XML description of a C or C++ abstract syntax
tree.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* 176249bd673 (tag: llvmorg-11.0.0-rc6, upstream/release/11.x, origin/release/11.x) [CodeGen][TailDuplicator] Don't duplicate blocks with INLINEASM_BR
* e84852be644 Add ability to turn off -fpch-instantiate-templates in clang-cl
* 121babae56e [SelectionDAG] Don't remove unused negated constant immediately
* f80e6d63423 ReleaseNotes: mention the machine outliner for ARM
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
This helps in ensuring that clang shows up in rootfs when tools-sdk is
selected via IMAGE_FEATURES and default TOOLCHAIN is set to be clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
* 636ecdd1479 (upstream/release/11.x, origin/release/11.x) Fix indentation for PowerPC ReleaseNotes
* b6efbd6b5f2 LLVM release notes: JIT changes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|