summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* clang: Update to latest 13.xKhem Raj2021-09-104-108/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop upstreamed patches Brings following changes * Workaround incorre ct types when lowering fixed length gather/scatter * f17d60d62028 Inform pass manager when child loops are deleted * f56129fe78d5 Fine grain control over some sym bol visibility * dc10ff25f54b [AArch64][SME] Fix imm bug in mov vector to tile aliases * b77c810feba0 Revert "[HardwareLoops] Change order of SCEV expression construction for Init LoopCount." * 02dece03f93d [clang] fix transformation of template arguments of 'auto' type constraints * 297e9237db53 [SelectionDAGBuilder] Bugfix in visitInlineAsm() * bc3cbd744d70 [llvm-objdump] Fix 'llvm-objdump -dr' for executables with relocations * 912ad5830cc1 Add llvm-ml to LLVM_TOOLCHAIN_TOOLS (PR50536) * b46abdb7b8fe [clang][Driver] Pick the last --driver-mode in case of multiple ones * 197d9d91aec1 [AArch64][sve] Prevent incorrect function call on fixed width vector * 427df19c4791 Update counter offset to account for binary ids * 09f659449b83 libunwind: add missing break statements in EHABI * a98b397504f8 [SCEV] Fix applyLoopGuards() with range check idiom (PR51760) * 9b3867e959fa [DAGCombine] Prevent the transform of combine for multi-use operand * 49dacda603b3 [tests] precommit tests for D107692 * 8aa8ed9d4b5f Fix for commit d8cd7806310c51af912a647a6ca46de62ff13214. * 2a1d8b5016eb [clang] OpenBSD does not support C11 atomics or threads. * a52b7bf7d123 PR50294: Fix a performance regression from 2c9dbcd. * c30b2813a1d5 [clang] fix error recovery ICE on copy elision when returing invalid variable * 6668e31250ba Support linking against OpenMP runtime on OpenBSD. * be305271bfb6 OpenBSD also needs execinfo * a5e968b66a59 [clang] Allow the OpenBSD driver to link the libclang_rt.profile library. * 181739213aa0 [docs] Update release notes with items related to Flang * c45fa58f171e [libomptarget][amdcgn] Only add opt/llvm-link dependency if TARGET is availab le * 7f3d00c9b49b [libomptarget][amdcgn] Add build dependency for llvm-link and opt * 3b1fa4aef006 [RISCV] Fix reporting of incorrect commutable operand indices * 1c3fcc8ae92e [libc++][NFC] Mark values in gdb pretty print comparison functions as live to prevent values being optimized out. * c8905f1bb304 [Orc] Enable debug object tests only on x86_64 hosts * 7a4a5d413624 [Linker] Support weak symbols in nodeduplicate COMDAT group Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix llvm-link and opt dependency build failure in libompKhem Raj2021-09-025-25/+108
| | | | | | | | | | | Update to latest 13.x as well * 9e41dc71b8d4 [docs] Mention that the legacy PM is deprecated and will be removed after 14 * 73c36a9be558 [OpenMP][FIX] Allow declare variant to work with reference types * bcb43617cb7f [NewPM] Add missing LTO ArgPromotion pass * 703ee975d26a [AlignFromAssume] Bailout w/non-constant alignments (pr51680) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update towards 13.x RC2Khem Raj2021-08-2739-40/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert a patch in openmp which added opt dependency, which fails to find opt when ding standalone builds see https://reviews.llvm.org/D107156 Changes in this bump * 34ff6a75f583 [docs] Update release notes for OpenMP 5.1 loop transformations. * 34300c3c00f5 [libc++] Fix incorrect bypassing of <wctype.h> * 198edf09f58e [libc++] XFAIL align.pass.cpp for PowerPC LE * 4094728a8147 [libc++abi] Apply simplify scan_eh_tab to SjLj * 4e692c97a8c1 [LoopIdiom] Don't transform loop into memmove when load from body has more than one use * c22eb9a4a5dd [NFC][LoopIdiom] Add reproducer of wrong memmove transformation * d069343fa526 Revert "[RISCV] Fix reporting of incorrect commutable operand indices" * 1828e57eb586 ThinLTO: Fix inline assembly references to static functions with CFI * 7161e4f3345f [clang-tidy] Hotfix default parameter value in 'bugprone-easily-swappable-parameters' * a7933290f72a [RISCV] Fix reporting of incorrect commutable operand indices * c9afa3a749f0 [Coverage][llvm-cov] Correctly export branch coverage in LCOV format * e8ce80e31d93 [profile] Don't use pragma comment linker on mingw * 4f857ea56b4f [profile] Add underscore to /alternatename for Win/x86 * d3d9dc586933 [profile] Build with -fms-extensions in MinGW mode * cf035cac186b [scudo][standalone] Link tests against libatomic if libatomic exists * 1f0b043ae709 [libomptarget] Apply D106710 to amdgcn devicertl * ab2d8f074974 [libomptarget][amdcgn] Add build dependency for opt * 3020229e73ec [clang] Replace asm with __asm__ in cuda header * d6944303acfd [openmp] Annotate tmp variables with omp_thread_mem_alloc * 47bbdbecb039 [AMDGPU][OpenMP] Wrap amdgcn declare variant inside ifdef * 573858e9805e [AMDGPU][OpenMP] Use llvm-link to link ocml libraries * 512c57ea97ae [OpenMP][AMDGCN] Initial math headers support * d1923cb0aec2 [AMDGPU][OpenMP] Support linking of math libraries * 7f2f829479dc Revert sharing subprograms across CUs * ae5ed5d23bb1 [libc++] Bypass calling exception-throwing functions in the dylib with -fno-exceptions * 23ba3732246a [libc++][PowerPC] Fix a test case failure when compiled with libcxx * 80878ccb3286 [libc++] Fix XFAIL annotation * 10a4a861837d [lldb] Add tests for TypeSystemMap::GetTypeSystemForLanguage * 535b7fb2201a [lldb] Avoid unhandled Error in TypeSystemMap::GetTypeSystemForLanguage * ddc49d0f1f2b [clang] [MSVC] Implement __mulh and __umulh builtins for aarch64 * 34f839fc9d4c Revert "[clang][fpenv][patch] Change clang option -ffp-model=precise to select ffp-contract=on" * b643ee1b9c1a [AArch64] Fix comparison peephole opt with non-0/1 immediate (PR51476) * 98feb20df14e [profile] Only use NT_GNU_BUILD_ID if supported * fcd5126bfba8 [X86][AVX] Extract SUBV_BROADCAST constant bits from just the lower subvector range (PR51281) * f3e1d94de69d [ARM][atomicrmw] Fix CMP_SWAP_32 expand assert * 15b8be0b832a [libc++] Skip logic for detecting C11 features when using_if_exists is supported * 404024f9adc1 [libc++] Split off tests for aligned_alloc & friends into separate test files * c40c3bfa9a87 [libc++] Convert test-suite workarounds for some C11 features to XFAILs * 0c25e0174861 [Flang] Fix build failure on MacOS * 2e4c11ee3209 [PowerPC] Disable CTR Loop generate for fma with the PPC double double type. * 08dd644d078a ReleaseNotes: add lld/ELF notes * 2153cad11ba2 [DAGCombiner] Stop visitEXTRACT_SUBVECTOR creating illegal BITCASTs post legalisation. * 87d56ad4411d [LLD] [MinGW] Add more options for disabling flags in the executable * b9be17a7ecf9 [clang] fix crash on template instantiation of invalid requires expressions * d86e569e8119 [clang] [hexagon] Add resource include dir * 24d8b6565a2e [Attributor][FIX] Guard constant casts with type size checks * 5b60faae3f10 [InstCombine] avoid infinite loops from min/max canonicalization * f4006c59497d [InstSimplify] fold min/max with limit constant * ba048518e08f [InstSimplify] add tests for min/max idioms; NFC * 0dd4f002e1d3 [OpenMP]Fix PR50336: Remove temporary files in the offload bundler tool * a57d98111e63 [LoopVectorize] Improve vectorisation of some intrinsics by treating them as uniform * 740f08210e5d [NFC] Clean up tests in test/Transforms/LoopVectorize/assume.ll * 1bbe8ef81549 [lld-macho] Fill out release notes for 13.x Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 13.xKhem Raj2021-08-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/compiler-rt: Convert to new override syntaxKhem Raj2021-08-123-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 13.x release branchKhem Raj2021-08-1238-97/+141
| | | | | | Fix libcxx/locale builds on musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Fix remaining override conversionKhem Raj2021-08-031-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-clang: Convert to new override syntaxSigned-off-by: Martin Jansa2021-08-038-125/+125
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 13.x branchKhem Raj2021-08-011-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx: Fix native builds when using RUNTIME=llvmKhem Raj2021-07-302-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to 13.x branchKhem Raj2021-07-301-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Explicitly set LLVM_DEFAULT_TARGET_TRIPLEKhem Raj2021-07-181-0/+2
| | | | | | | | | This helps during cross-compile as new clang expects this to be set or else it deduces it and that deduction can go wrong. See commit 395271ad11b8c233db1a4e0e6a76aa52e93e5aec in clang repo Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Drop using -cl-no-stdincKhem Raj2021-07-181-1/+0
| | | | | | This flag is no longer needed with latest clang-13 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on trunk/13.0Khem Raj2021-07-181-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix do_package error when multilib enabledChangqing Li2021-07-051-2/+2
| | | | | | | | | After enable multilib, libdir is /usr/lib64, but in llvm's CMakelist.txt, the install path is hardcode as /usr/lib eg: ${CMAKE_BINARY_DIR}/lib/libscanbuild/resources/${resource} Signed-off-by: Changqing Li <changqing.li@windriver.com>
* clang: Update to latest on 13.0.0/trunkKhem Raj2021-06-3038-193/+83
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: drop git suffix from version variablesChangqing Li2021-06-282-0/+71
| | | | | | | | | | | other recipe like intel-graphics-compiler, config failed with below error: [IGC] Could not find the LLVM dylib. Aborting. with a suffix in library name make other recipe cannot found it. Backport a patch from 12.0.0 to fix this. Signed-off-by: Changqing Li <changqing.li@windriver.com>
* libcxx: Fix native buildKhem Raj2021-06-251-7/+17
| | | | | | | | Use libgcc with clang-native to compile it Fixes #465 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Fix build on non-x86 targetsKhem Raj2021-06-242-0/+122
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on main/13.0 lineKhem Raj2021-06-242-1/+3
| | | | | | Package new content for scanbuild and libear Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest master/13.0Khem Raj2021-06-1637-93/+51
| | | | | | Drop 0024-compiler-rt-Include-stddef.h.patch its accepted upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on main/13.0 branchKhem Raj2021-06-1437-59/+106
| | | | | | | Fix compiler-rt build on armv6 reported in https://github.com/YoeDistro/yoe-distro/issues/555 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on master branchKhem Raj2021-06-0835-63/+61
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Fix hwsan builds with llvm libunwindKhem Raj2021-06-082-0/+36
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Package libunwind independentlyKhem Raj2021-06-081-2/+4
| | | | | | This helps in ensuring it pose as RPROVIDES when llvm runtime is used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Implement unw_backtraceKhem Raj2021-06-082-0/+56
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Install headers and pkgconfig fileKhem Raj2021-06-083-0/+21
| | | | | | | This ensures it can replace nongnu libunwind Use it only when selecting RUNTIME = "llvm" Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-native: Fix build with clangKhem Raj2021-06-081-3/+18
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Build undwinder when RUNTIME = "llvm"Khem Raj2021-06-081-1/+5
| | | | | | | ensure that libcxx can be built when RUNTIME = "llvm" as it might need to pass some cmake compiler tests Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Use packageconfig to use static libcxxKhem Raj2021-06-081-6/+3
| | | | | | | | | | | | | sanitizers can link libc++/libc++abi statically or dynamically, we default to use dynamic version but leave the option to enable static linking if so needed Use virtual/crypt to represent crypt implementation which becomes libc independent Fix dependencies for native recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Use gcc runtime to bootstrapKhem Raj2021-06-081-2/+8
| | | | | | | | | while compiler-rt may not use any of these libraries, but the cmake environment pokes for working compiler, linker and other tools, this ensures that it can build when RUNTIME = "llvm" and also RUNTIME = "gnu" Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Default to compiler-rt/libcxx/libunwind when RUNTIME = "llvm"Khem Raj2021-06-081-5/+9
| | | | | | | | | | | | This ensures that compiler defaults are defaulting to llvm provided c/c++ runtimes which includes c-runtime, c++runtime, unwinder and omp runtime, current approach is to inject commandline options but it does not get passed in all cases and a lot of smaller/big patches are used to make such package recipes behave If RUNTIME = "gnu" then defaults stay to use gcc runtime as it is Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Build libunwind shared lib when enabledKhem Raj2021-06-081-10/+7
| | | | | | | Use compile-rt consistently across when building libc++ and libc++abi and libunwind Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Do not package orc support libKhem Raj2021-06-081-0/+2
| | | | | | Its already shipped with compile-rt recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lldb: Do not build for mips as wellKhem Raj2021-06-081-4/+7
| | | | | | | lldb-server is not fully ported for mips yet see https://reviews.llvm.org/D102872 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Fix build on mipsKhem Raj2021-06-082-0/+30
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Limit to buildable arch/libc combinationsKhem Raj2021-06-081-0/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Link with static C++ runtime when availableKhem Raj2021-06-082-0/+29
| | | | | | This fixes build on ARM Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix x86 tuple for include search pathsKhem Raj2021-06-082-0/+26
| | | | | | | | | | | | This ensures that search path for c++ headers is using right directory structure as per Openembedded gcc and sysroot install e.g. ignoring nonexistent directory "/mnt/b/yoe/master/build/tmp/work/core2-32-yoe-linux-musl/compiler-rt/13.0.0-r0/recipe-sysroot/usr/lib/i686-yoe-linux-musl/11.1.0/../../../include/ c++/11.1.0/i386-linux-gnu" Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix sanitizer build on musl/x86_64Khem Raj2021-06-082-0/+69
| | | | | | backtrace APIs are glibc specific so do not use them Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Pass -cl-no-stdinc to compiler and assemblerKhem Raj2021-06-081-0/+1
| | | | | | | | | | | | libclc uses clang CLC preprocessor on .ll files, llvm/clang-13 started including clc declarations by default (clang cf3ef15a6ec5e5b45c6c54e8fbe3769255e815ce), thus corrupting any .ll assembly files that are used by libclc. Inclusion of the default declarations can be turned off using a cmdline switch but that remains to be implemented in the libclc build system. manually adding '-cl-no-stdinc' should work as a workaround. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Fix building amdgcn filesKhem Raj2021-06-081-3/+10
| | | | | | License name should be LICENSE.TXT not LICENSE.txt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to trunk/13.0 future seriesKhem Raj2021-06-0836-590/+195
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Import missing patch for Reporter.pyJan-Simon Möller2021-05-252-0/+223
| | | | | | | | | | | Upstream removed Reporter.py and added it back later. Backport the patch. Create 0033-Import-upstream-patch-to-re-add-Reporter.py.patch Upstream status: Backport of https://github.com/llvm/llvm-project/commit/3263c81589eca689341ab5084723bdb7fe4a1286 Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
* compiler-rt: Disable libfuzzer and profiler supportKhem Raj2021-05-191-0/+2
| | | | | | These are now moved into compiler-rt-sanitizers recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Add recipeKhem Raj2021-05-191-0/+97
| | | | | | This recipe builds all sanitizers runtimes provided by compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Remove -D_LIBCPP_HAS_MUSL_LIBC=ONKhem Raj2021-05-191-2/+0
| | | | | | this option is only effective when building libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable dwarf-5 default debug infoKhem Raj2021-05-0434-61/+122
| | | | | | This matches with GCC 11 which is also defaulting to DWARF-5 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add SDK_VENDOR string to CLANG_EXTRA_OE_VENDORSKhem Raj2021-04-261-1/+1
| | | | | | | | | | | | This helps in ensuring that SDK elements are built correctly as well, at present we get right builds for cross/target/native clang but not for nativesdk since it use SDK_VENDOR string for vendor eg. -yoesdk which currently is not added to known OE vendors, as a result nativesdk-clang does not build since crosssdk clang can not find runtime files e.g. libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Martin Jansa <Martin.Jansa@gmail.com>
* llvm-project-source: Add multilib vendor supportYi Fan Yu2021-04-151-4/+16
| | | | | | | | | | | | | | | | | Generate all possible vendor name that a multilib build could use by using the variable MULTILIB_VARIANTS. ex: {TARGET_VENDOR} {TARGET_VENDOR}mllib32 Fixes build issue when compiling lib32-compiler-rt where clang has issue detecting gcc toolchain. when clang --print-search-dirs: lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux should be lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux/10.2.0/ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>