summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* clang: Fix upstream status of ↵Khem Raj2023-05-121-1/+1
| | | | | | 0037-clang-Call-printName-to-get-name-of-Decl.patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-config: add --libfiles optionNaveen Saini2023-05-121-0/+5
| | | | | | | | | --libfiles Fully qualified library filenames for makefile depends. This option is being used by ispc cmake. https://github.com/ispc/ispc/blob/main/cmake/FindLLVM.cmake#L116 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* LLVM officially supports LoongArch starting from 16.0.0zqz2023-05-101-1/+2
|
* rename add_more_target_vendors to add_distro_vendorEtienne Cordonnier2023-05-102-2/+2
| | | | | | The function was renamed in 9d190cb3b3 Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* Drop crosssdk suffix from virtual binutils provides to match oe-coreKhem Raj2023-05-033-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on release/16.x branchKhem Raj2023-05-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings these set of changes * bd6783b38076 [compiler-rt] Fix invalid triple on ARM build * ccbab5979b7b [compiler-rt] Fix scudo build on ARM * 464bda7750a3 workflows/release-tasks: Always run apt-get update before installing deps * 64a7c127cea8 workflows/release-binaries: Install missing dependencies * 12f17d196eff [docs] Add missing Clang release note. * 6e5368c3967a workflows/release-binaries: Add missing output variable * 57c2b1e9232a Bump version to 16.0.3 * 18ddebe1a1a9 Remove UB-implying metadata when promoting speculative instruction. * dbcd2e9330cd [runtimes][asan] Fix swapcontext interception * ec006fb244ff [nfc][asan] Reformat the file * c4ac4533ea2b [test][asan] Simplify test * f2b0bf320824 llvm-exegesis: Only run target specfic tests on native hosts * b32dda29731d github: Add manual workflow to build and upload release binaries * ef4c1777ee80 [flang] Complex numbers in function arguments on Windows * 840ac8c52fd1 [clang-format] Fix regression with AlignTrailingComments set to true * 70e4662aa499 Revert "[clang-format] Handle object instansiation in if-statements" * bf80902fdd43 [StackProtector] don't check stack protector before calling nounwind functions * 82432ac5cc7d [libunwind][LoongArch] Restore $r1 before $r4 in `jumpto` * ecbc5ca533cd [libunwind][test] Add test to check for unw_resume() * 1c76740cb3b9 [AArch64] Basic target(+crypto) handling * b5aa566a7e53 [Support] Improve Windows performance of buffered raw_ostream * 74e76ab7b6f8 [LinkerWrapper] Switch to add_clang_tool() macro Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix reproducibily issueDan McGregor2023-04-272-0/+71
| | | | | | | | | Clang gives a name to the constructors of anonymous structures in debug info that's based on the filename of the structure's definition. It didn't respect the debug-prefix-map setting, causimg QA warnings in several recipes, notably libcxx. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* Add missing scan-build runtime dependenciesmzink892023-04-221-0/+12
| | | | | | * The perl scan-build script need some perl-modules to be executable Signed-off-by: Michel Zink <m.zink@rational-online.com>
* Clang: Update to llvmorg-16.0.1 tagKhem Raj2023-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes * cd89023f7979 [SPARC] Attempt to fix bug introduced by D142458 * c57b104e95c1 [SPARC] Implement hooks for conditional branch relaxation * c3591d714b49 [Local] Handle size mismatch between pointer/int in copyRangeMetadata() * dae44c8ccc84 [clang-format] Don't annotate left brace of struct as FunctionLBrace * 86b0c6e40502 [SelectionDAG] Correctly reduce BV to shuffle with zero on big endian * b27338656d7d [llvm-rc] Fix the reference to the option for disabling preprocessing in a message * b9857e6711a2 [llvm-rc] Look for "clang-<major>" when locating a suitable preprocessor * 35551022bf04 [llvm-rc] Respect the executable specified in the --preprocessor command * 1fa1bc9c2dff [libc++] Don't try to provide source_location on AppleClang 1403 * 555e0e732d48 [RISCV] Support emulated TLS * 356cb7e0d016 [clang-format] Add MinDigits suboptions to IntegerLiteralSeparator * 6bf663061947 [clang-format] Don't format already formatted integer literals * 7b133944eb89 [RISCV] Allow llvm-objdump to disassemble objects with unrecognised versions of known extensions * 110b4fd2d9cf Revert "[dsymutil] dsymutil produces broken lines info (probably) with LTO on mac" * 1e33c7482b45 [clang][MinGW] Add asan DLL lib before other libs and objects * e59e0b9bd374 ARMFrameLowering.cpp - fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC. * 79e743f16cd9 [ARM] Handle generating SEH unwind info for t2STR_PRE/t2LDR_POST * c163d43e2207 [libc++] Mark a test relying on `typeid` as unsupported without RTTI. * 9ec8096d0d50 [release/16.x][libc++] Revert the bitset sort optimization * 34e907fdba13 [libc++] Fix CI on release/16.x * e16f668f5ed0 [clang-format] Handle '_' in ud-suffix for IntegerLiteralSeparator Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Move clang-cl from clang-tools -> clang packageKhem Raj2023-03-301-5/+1
| | | | | | | | | | | | clang-cl is a symlink to clang, if we package it into clang-tools then it created an automatic dependency on the package providing clang binary which is clang in this case. So when someone wants to install just clang-tools, it will drag the compiler along as well, which may not be desired, this fixes the problem. Fixes https://github.com/kraj/meta-clang/issues/676 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update patch statusKhem Raj2023-03-3036-45/+65
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 16.0.1 releaseKhem Raj2023-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following bugfixes * 42d1b276f779 Bump version to 16.0.1 * ebafcb86c35c [CMake] Respect variables for specifying host tools even without LLVM_USE_HOST_TOOLS set * 8de1b29840b5 [llvm-objdump] Fix help message for --print-imm-hex * 1ca4b5cfaa70 [sanitizer][win] Change cmdline check to allow double backslashs * 973cea755440 [BOLT] Search section based on relocation symbol * 140c68db4fe4 [libc++] Avoid ODR violations in __exception_guard * a18482ac5089 [BOLT][AArch64] Replace NOP with adrp in AdrRelaxationPass to preserve relative offsets. * c2ef3257df81 [BOLT][NFC] Remove C-style out of bounds array ref * 1c1ab11d6e1e [RISCV][MC] Adjust conditions to emit R_RISCV_ADD*/R_RISCV_SUB* pairs * 34194d85544f [test] Add some interesting cases to MC/RISCV/riscv64-64b-pcrel.s * ee1493c713d6 [test] Improve MC/RISCV/riscv64-64b-pcrel.s to demonstrate regression due to D132262 * 4f243f137859 [test] Improve MC/RISCV/riscv64-64b-pcrel.s * 1f9ea2d3f045 [X86] AMD Genoa (znver4) Scheduler model update * 0b4106274631 [BOLT] Reject symbols pointing to section end * 14ed120b2307 No longer issue static lambda pedantic warning for pre-c++2b compat * 32b8cc7031f0 [BOLT] Fix data reoder for aarch64 * 867c59c2da17 [Coroutines] Pass size parameter for deallocation function when qualified * 6dc69d034845 [libc++][ranges] Fix incorrect integer typedef in `elements_view` test. * 99af55f91f5d [libc++][format] Fix a missing include in tests. * 8a80823218a8 [libunwind][PowerPC] Fix saving/restoring VSX registers on LE systems * c5b23ab2a31a JITLink: Add missing EHFrame NULL terminator on aarch64/ELF * 2352a1b1e917 Reapply [lld][flang] Add exceptions for Flang runtime libraries on MinGW. * 37ea87b88d07 No longer issue pedantic warning about pre-c++2b compat * a70565f7de2e [libunwind][Modules] Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module) * 56edf062bdb6 [dsymutil] dsymutil produces broken lines info (probably) with LTO on mac * bec9a607690b [compiler-rt] Add missing #else clause to fix the build on NetBSD. * 3c0850337bd8 [X86] Fix encoding for ATOMIC_LOGIC_OP * ba22382d514b [X86] Add negative test for D145930 * 2861fa247395 [Driver][FreeBSD] Simplify ARM handling * 1172ed57d823 [analyzer] Fix crashing getSValFromInitListExpr for nested initlists * 830229ee918d [WebAssembly] Add auto-upgrade for renamed intrinsics * b5f9ea64b207 [X86] Support load/store for bf16 in avx * bb6a97c15aa2 [AArch64] fix bug #55005 handle DW_CFA_GNU_NegateRAState * aef3508f89c4 [flang] Fixed uninitialized std::unique_ptr dereference. * fbf716ffe163 [flang] Fixed restrictions checking for OpenACC loop-associated constructs. * 2ecbe73ceeda [flang] Fix dereference of std::optional with no value * 0e227de08e32 [LLDB][ObjectFileELF] Correct the return type of Reloc{Offset,Addend}32 * 7d28293f17fa [LLDB][ObjectFileELF] Correct the return type of RelocOffset64 and RelocAddend64 * 6d3b7679ef21 [LLDB][ObjectFileELF] Support LoongArch64 in ApplyReloctions * a824efcd0158 [BPF] Improve pruning to avoid generate more types in BTF * ab86d147e852 [libunwind][AArch64] Unbreak building with GNU assembler * 526102b37e59 [InstCombine] Canonicalize icmp eq pow2 more thoroughly * 7049d5895700 [InstCombine] Add additional test for icmp eq/ne with bool load (NFC) * b3ea3484c063 [Pipelines] Restore old DAE position in LTO pipeline * 72cb90bd7b62 [PhaseOrdering] Add test for DAE/GlobalDCE interaction (NFC) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: fix installed-vs-shipped qa issueKai Kang2023-03-281-1/+1
| | | | | | | | It fails to run task do_package of compiler-rt with [installed-vs-shipped] issue when ${libdir} does not equal ${nonarch_libdir}. Update do_install script to fix the issue. Signed-off-by: Kai Kang <kai.kang@windriver.com>
* compiler-rt-sanitizers: Disable building testsKhem Raj2023-03-201-4/+6
| | | | | | It fails to configure in lit tests during cross compile Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Do not include tests in buildKhem Raj2023-03-201-4/+8
| | | | | | | | | Install uses MAJOR_VERSION only but clang still searches in ${MAJOR_VER}.${MINOR_VER}.${PATCH_VER} for it, so this inconsistency needs to be fixed until them we just move the install from ${MAJOR_VER} -> ${MAJOR_VER}.${MINOR_VER}.${PATCH_VER} Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 16.0.0Khem Raj2023-03-2041-429/+340
| | | | | | | | Changes are described here [1] [1] https://discourse.llvm.org/t/llvm-16-0-0-release/69326 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Define llvm tools needed during buildKhem Raj2023-03-121-0/+5
| | | | | | | | | It pokes at target llvm.cmake and gets the path LLVM_TOOLS_BINARY_DIR pointing to target sysroot however during cross builds it should be looking for tools for cross building in native sysroot Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: ignore CVE-2022-26345Ross Burton2023-03-101-0/+3
| | | | | | | This CVE appears to be specific to Intel's packaging of OpenMP in oneAPI, so ignore it. Signed-off-by: Ross Burton <ross.burton@arm.com>
* openmp: Fix build with 64bit file offset on 32bit archesKhem Raj2023-03-051-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Pass LLVM_CONFIG_PATH to target and nativesdk buildsKhem Raj2023-02-221-0/+3
| | | | | | | | This ensures that it does not end up building NATIVE tools and using them during build, which obviously wont work when buildhost != targethost or iow cross-compiling Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Remove clang-offload-wrapperKhem Raj2023-02-221-2/+1
| | | | | | This has been deleted in clang 16+ via https://reviews.llvm.org/D130020 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Use LLVM_ENABLE_RUNTIMES to build C++ runtime libsKhem Raj2023-02-221-1/+2
| | | | | | This is new way of building it from 16.x onwards Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Move .so symlinks to -dev package fixes multilib buildKhem Raj2023-02-151-2/+2
| | | | | | | | Fixes ERROR: lib32-clang-15.0.7-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package lib32-liblldb contains symlink .so '/usr/lib/liblldbIntelFeatures.so' non -dev/-dbg/nativesdk- package lib32-liblldb contains symlink .so '/usr/lib/liblldb.so' [dev-so] ERROR: lib32-clang-15.0.7-r0 do_package_qa: Fatal QA errors were found, failing task. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Provide missing tools during cross compileKhem Raj2023-02-101-2/+9
| | | | | | | Enable ompd gdb plugin build and add py3 to depndencies as it is required by the plugin Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix clang recipe for multilib buildlumpyh2023-02-061-1/+1
| | | | | | | | | when building clang for multilib, bitbake complains about liblldb containing a .so symlink this patch fixes this Signed-off-by: lumpyh <lumpy.hega@gmx.de>
* runtime: Enable PIC for static archives with clang runtime libsKhem Raj2023-02-065-0/+8
| | | | | | | This helps in compling shared libraries which may use e.g. static libc++.a during link Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Correctly specify https in HOMEPAGEKhem Raj2023-02-061-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Use libatomics on all mips32 machinesKhem Raj2023-01-291-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Build libc++abi into static libc++.aKhem Raj2023-01-291-0/+1
| | | | | | | | This helps statically linking c++ runtime into binaries which use exceptions functions e.g. std::out_of_range as used in rwmem package and using -static-libstdc++ compiler flags Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix Upstream-Status formattingMartin Jansa2023-01-291-1/+1
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* common-source: fix create-spdx handlingKonrad Weihmann2023-01-161-0/+6
| | | | | | | | | | | | | | | | | | - do_create_spdx does have to wait till the shared source tree is properly populated - override the spdx class code detection to determine if sources are under work-shared. the core code does only look at WORKDIR, which isn’t overridden in every case, more likely only S and B are touched, which make the spdx class code assume that these are per-workdir sources and starts to remove the shared sources via bitbake’s cleandirs settings. Avoid that by let the code always handle recipes including common-source as shared sources. Closes #721 Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
* llvm-project-source: fix create-spdx handlingKonrad Weihmann2023-01-161-0/+2
| | | | | | | | as the recipe populates the shared source tree as part of do_patch, but create-spdx does only wait for do_unpack. Add an explicit dependency to wait to avoid race conditions Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
* clang: Update to 15.0.7Khem Raj2023-01-161-2/+2
| | | | | | | | | | | | * 8dfdcc7b7bf6 [libc++] Fix memory leaks when throwing inside std::vector constructors * 939f5a337113 libc++: bring back the unsigned in the return type in wcstoull_l * 948cadd6d424 [RegAllocFast] Handle new debug values for spills * 1095870e8ced [wasm-ld] Define a `__heap_end` symbol marking the end of allocated memory. * 67fd0d2af4bf [TypePromotion] Add truncate in ConvertTruncs when the original truncate type is not extend type * 74d3ba1af5c0 [X86] Don't zero out %eax if both %al and %ah are used * a8af9f679231 Bump version to 15.0.7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix reproducible buildChee Yang Lee2023-01-151-0/+12
| | | | Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
* llvm-project-source: Ensure deploy_source_date_epoch sstate hash doesn't changeKhem Raj2023-01-111-1/+7
| | | | | | | if machines are switched, do_deploy_source_date_epoch would re-run as the stamps are tune specific Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: skip buildpaths QA check for openmp-staticdevRoss Burton2023-01-091-0/+2
| | | | | | | | | | | | The /usr/lib/libomptarget.devicertl.a static library ends up with build paths embedded. The CMake files don't respect our CXXFLAGS so don't use the -fdebug-path-map arguments, but even adding those didn't solve it: it looks like code via goes via LLVM bytecode files doesn't get remapped? Until that is solved, skip the buildpath check. Signed-off-by: Ross Burton <ross.burton@arm.com>
* clang: Fix sizeof stat detection on mips/o32 with 64bit time_tKhem Raj2023-01-043-33/+48
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Enable -D_LARGEFILE64_SOURCE on muslKhem Raj2023-01-021-0/+2
| | | | | | | Ideally, the LFS64 functions should be replaced in sanitizers sources but for now just enable the aliases in musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sanitizers: Fix build with 64bit time_tKhem Raj2023-01-022-0/+38
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Refresh off64_t musl patchKhem Raj2022-12-261-27/+74
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix build with LFS64 on muslKhem Raj2022-12-112-0/+85
| | | | | | Ensures that correct cmake checks are used to enable LFS64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Inherit python3targetconfigKhem Raj2022-12-071-8/+4
| | | | | | | | | Ensure that lldb uses correct python-dev headers from target python and not native python during cross compile. Adjust *_PYTHON_* variables accordingly. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 15.0.6Khem Raj2022-12-054-80/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Drop backported patches already available in this release This brings following changes * 088f33605d8a [CodeGen][ARM] Fix ARMABIInfo::EmitVAAarg crash with empty record type variadic arg * abcd0341d846 [ELF] Handle GCC collect2 -plugin-opt= on Windows * e6e61e9b2ef7 Revert "Reapply: Add an error message to the default SIGPIPE handler" * 25a36ca5c791 Bump version to 15.0.6 * 154e88af7ec9 Bump version to 15.0.5 * a39989663758 [VectorUtils] Skip interleave members with diff type and alloca sizes. * dc8f6ffc3bf2 [lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS * 392963bb1daf [lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0 * 68799e789fc5 [GlobalOpt] Don't remove inalloca from varargs functions * 11c3a21f8d1b [analyzer] Workaround crash on encountering Class non-type template parameters * 0988addf2680 Link libclangBasic against libatomic when necessary. * 4c3d83810ad7 Link liblldCOFF against libatomic when necessary * d75ae21044ad Set LLVM_ATOMIC_LIB variable for convenient linking against libatomic * 6750e341b076 [TypePromotion] Replace Zext to Truncate for the case src bitwidth is larger * 58ba50a52ede [cmake] Add missing CMakePushCheckState include to FindLibEdit.cmake * 931b6d51d84e Reenable POSIX builtin library functions in gnu2x mode * c8e7a87b1ed6 [CMake] Fix -Wstrict-prototypes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: backport patches to fix lldb errorsAnuj Mittal2022-11-233-0/+78
| | | | | | | | | | | OE-core recently upgraded to swig 4.1.0 which results in errors: 11:49:31 | /poky/build/tmp/work-shared/llvm-project-source-15.0.4-r0/git/lldb/bindings/interfaces.swig:5: Error: Macro '__STDC_LIMIT_MACROS' redefined, 11:49:31 | :1: Error: previous definition of '__STDC_LIMIT_MACROS'. Backport patches from release/15.x branch to fix these. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* clang: Upgrade to 15.0.4Khem Raj2022-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | Brings these changes * 5c68a1cb1231 AMDGPU: Make various vector undefs legal * 80a9fc840b1b [clang][Sema] Fix a clang crash with btf_type_tag * 08bd84e8a635 [SPARC] Make calls to function with big return values work * 9d46557baa84 Take memset_inline into account in analyzeLoadFromClobberingMemInst * dd711a939122 [lld-macho] Canonicalize personality pointers in EH frames * 3010b7e00000 [clang][driver] Remove dynamic gcc-toolset/devtoolset logic * db68723804fd [clangd] Return earlier when snippet is empty * 2d5c43ad4844 [lldb] Automatically unwrap parameter packs in template argument accessors * 1e1c5204c259 [SystemZ] Relase notes for LLVM 15 * dccd0613025a [ELF] Suppress "duplicate symbol" when resolving STB_WEAK and STB_GNU_UNIQUE in different COMDATs * 5834fe66318b [AutoUpgrade] Fix remangling when upgrading struct return type * 5388da13992c Bump version to 15.0.4 * 455e1d765ad6 [InstCombine] Bail out of casting calls when a conversion from/to byval is involved. * ceee53ce564c [SROA] Don't speculate phis with different load user types * 086365be7ce0 [test] Make Linux/sem_init_glibc.cpp robust Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 15.0.3Khem Raj2022-10-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes * 4a2c05b05ed0 [ARM] Fix for MVE i128 vector icmp costs. * f6af95770615 [clangd] Block clang-tidy misc-const-correctness check * 687250913265 [libc++] Fix std::function's handling of blocks under Objc ARC * b4840279846e [CMake] Provide Findzstd module * 6fba7854a2f0 [llvm] [test] Add missing canonicalization of LLVM_ENABLE_ZSTD * e3b0721b5b73 [llvm] [lit] Fix use_lld() to respect llvm_shlib_dir * dfef316bb3d6 [clang-tidy] Fix a false positive in readability-simplify-boolean-expr * d35bc70e8251 [AArch64][SVE] Fix AArch64_SVE_VectorCall calling convention * f3c5289e7846 Revert "Recommit "[SCEV] Look through single value PHIs." (take 3)" * 6599b6e5ae9e Fix LLDB build on old Linux kernels (pre-4.1) * 02129eab7d58 [Syntax] avoid using c++17 features on 15.x branch * fc47af8c9140 Bump version to 15.0.3 * 27e075fcfad1 [Syntax] Fix macro-arg handling in TokenBuffer::spelledForExpanded * 359ef0c93240 [clangd] Improve inlay hints of things expanded from macros * bd5722b87b5a [X86] Remove AVX512VP2INTERSECT from Sapphire Rapids. * 73ea64f30411 [clangd] Avoid scanning up to end of file on each comment! * 61fa70903191 [LoopVersioning] Invalidate SCEV for phi if new values are added. * c0748fe6dec5 [clang-tools-extra] [clangd] Respect llvm_shlib_dir in tests Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Implement finer grained packagingKhem Raj2022-10-071-1/+63
| | | | | | | | | | | Ensure that clang-tidy, clang-format, clang-tools are separated out into own packages and also move libclang-cpp shared object out of clang package too, which should remove every package depending on clang package since this shared object is needed by all tools. Might fix https://github.com/kraj/meta-clang/issues/672 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 15.0.2 release tagKhem Raj2022-10-0535-45/+61
| | | | | | | | | | | | | | | | | | | | | | | | | rebase/forward-port all patches brings these changes * 4bd3f3759259 use LLVM_USE_STATIC_ZSTD * 55d4d86e3885 tweak zstd behavior in cmake and llvm config for better testing * 67ac047d7f46 [clang][DebugInfo] Emit debuginfo for non-constant case value * 541ea23a58e7 [gn build] (manually) port 18b4a8bcf35 more * 5f620d003fda [LV] Update handling of scalable pointer inductions after b73d2c8. * b3669eb4ae60 [LV] Add test for #57912. * 966e71daafea [LV] Convert sve-epilog-vect.ll to use opaque pointers. * ebbb5446b0a2 [Clang] Fix variant crashes from GH58028, GH57370 * 77ff99c10bee [ValueTracking] Fix CannotBeOrderedLessThanZero() for fdiv (PR58046) * 6ba100a83f14 [InstSimplify] Add test for PR58046 (NFC) * bcb9b9fc44e4 [libcxx] Make stdatomic.h work when included from a C source file * d3e48d932023 [docs] improve documentation for misc-const-correctness * 0b41e633a338 [clang-tidy] adjust treating of array-of-pointers when 'AnalyzePointers' is deactivated * 10a54971b0d3 Fix build error in StmtPrinterTest.cpp * e08c165dd67a [clangd] Avoid crash when printing call to string literal operator template * 2eba4dd78e2a [ELF] Rewrite R_RISCV_ALIGN nops when r.addend%4 != 0 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Bump to 15.0.2Khem Raj2022-09-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Brings these changes * 451e3b68306d Bump version to 15.0.2 * 9d3635c8675f Exclude check-polly-unittests and check-polly-isl from check-all * a26ef3c19ede [Hexagon] Add defaulted operator= to classes with defaulted copy ctor * f1ad3abf75f0 [MachineCycle][NFC] add a cache for block and its top level cycle * 8d802f78fa8c [libc++] Keep unary_function and binary_function in C++17 for one more release * 5d9fa4d16e0e SPIRV: Fix compilation in NDEBUG. * b73d2c8c720a [LV] Keep track of cost-based ScalarAfterVec in VPWidenPointerInd. * 38b5fa73d585 [LV] Move new epilog-vectorization-widen-inductions.ll to AArch64 dir. * c079a29305bb [LV] Add tests for epilogue vectorization with widened inductions. * d64394b81d6e [libc++] Always query the compiler to find whether a type is always lockfree * c6d2e8bcc033 [docs] Fix build-docs.sh * 43b5b04f27f1 [libcxx] Bump libc++ version to 15.0.1 * d4bada99c069 [CodeGen] Don't zero callee-save registers with zero-call-used-regs (PR57692) * 433f2aaa32bd [lit] Set shlibpath_var on OpenBSD * 063556d02def [clang(d)] Include/Exclude CLDXC options properly * 046d5b917bcd [Libomptarget] Revert changes to AMDGPU plugin destructors Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix libclang package files listMichal Wojcik2022-09-271-1/+1
| | | | | | | Use libclang.so.* wildcard to include all .so files (not only dangling symlink ./usr/lib/libclang.so.15 -> libclang.so.15.0.1). Signed-off-by: Michal Wojcik <michal.wojcik@linaro.org>