summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* clang.bbclass: Use llvm provided binutils when using toolchain-clangKhem Raj2023-09-081-0/+5
| | | | | | | | These tools are better integrated with clang produced output consumption pipeline, therefore use them when using clang as compiler Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 9bcf8e4c708e208b5f94633b94262f62a94d5162)
* nonclangable.conf: Disable llvm-objcopy/llvm-strip on selected recipesKhem Raj2023-09-081-0/+15
| | | | | | | | This is until upstream bugs are fixed, linux-firmware change however is legit and will be permanent Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 9ad53591eaf522f8fcbc0c8e0e9e6c55ccdf8272)
* clang: Update to latest 14.xKhem Raj2023-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 42a797ef011b [ELF] Fix .strtab corruption when a symbol name is empty * 4dc3cb8e3255 ReleaseNotes: add BOLT subsection * 192d9680c1b1 [RISCV] add the MC layer support of Zfinx extension * 1e348e6042fc [OpenCL] Guard atomic_double with cl_khr_int64_* * 880717cc801d clang-analyzer plugins require LLVM_ENABLE_PLUGINS also * 9bc22aa50780 [OpenMP][CUDA] Refine the logic to determine grid size * ecdd25c86511 [Debuginfod] [Symbolizer] Break debuginfod out of libLLVM. * b0ae8076cf4c [SDAG] enable binop identity constant folds for fmul/fdiv * 6311bae1b424 [X86] Add test cases for fmul/fdiv with select. * 812894f74a8a [runtimes] Move warning messages for FOO_SYSROOT & friends above their default value * c561bf0daa95 [runtimes] Add release note for deprecation of FOO_SYSROOT & friends * 8b10e0a84047 [runtimes] Deprecate FOO_SYSROOT & friends * 89309e187631 [lld] One more formatting fix for the release notes * 9e1f13d14e19 [lld] Fix RST formatting in release notes * 5264342c242b [Docs][OpenCL] Update OpenCL 3.0 status in docs. * e8712accba11 [Docs][OpenCL] Release 14 notes. * b54c95790b8a [Docs] Release 14 notes for SPIR-V in clang. * fc2dbf90d12a [libc++] Mark test as unsupported with apple-clang * edf64474d662 [ELF][PPC64] Fix assertion failure for branches to hidden undefined weak for -no-pie * 2fc17e919f0c [libc++] Temporarily silence failing debug mode test * dfc24b8522ba [libc++][NFC] Work around false positive ODR violations from ASan. * 199e05e34bb8 [libc++] Add missing UNSUPPORTED for the has-no-incomplete-ranges test * 7fdca71be63a [libc++] Guard much of std::ranges under _LIBCPP_HAS_NO_INCOMPLETE_RANGES. * e493f08f8222 [lld-macho] Fill out release notes for 14.x * ea97fc6b564e [OpenMP][FIX] The `llvm.amdgcn.s.barrier` is actually not aligned * 062111fe8073 InferAddressSpaces: Fix assert on inferred source for inttoptr/ptrtoint Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 51a8c792b73803e679527359af2d051c42c0d7f0)
* clang: Provide cross names for common llvm binutilsKhem Raj2023-09-083-8/+20
| | | | | | | These provide the cross tool prefixed with CROSS_COMPILE tuples Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 5cf945b3c830a49ef6858bc059f4b8da2cba35b5)
* clang.bbclass: Fix typo about big.LITTLE tune optionsyangpeng19952023-09-081-1/+1
| | | | | Signed-off-by: yangpeng1995 <1336781165@qq.com> (cherry picked from commit 6a447c0fcb1dc8dae08eb6bf2c12b0f0d7bdf637)
* castxml: bump to 0.4.4Dan McGregor2023-09-081-3/+3
| | | | | | | This version supports llvm main, llvm 13.x, and llvm 14.x. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> (cherry picked from commit 94c0812f45df2e39b3b49e4d9260c6ed5ee7bd93)
* libcxx: Install unwind_itanium.h and unwind_arm_ehabi.hKhem Raj2023-09-081-2/+4
| | | | | | | | When building libunwind, install new headers which are refactored from unwind.h in clang 14.0.0 onwards Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 64b5dcde5522a0db5682278afd614dd6719580c8)
* clang: Upgrade to upcoming clang14 release branchKhem Raj2023-09-0848-1023/+266
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6b79646f85f3293e0fbedf07592a94860d659053)
* harfbuzz: Add upstream patch to fix the build with clangRaphael Kubo da Costa2023-09-082-0/+55
| | | | Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
* nss: Add upstream patches to fix the build with clangRaphael Kubo da Costa2023-09-083-0/+99
| | | | Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
* Remove chromium-browser-layer workaroundsRaphael Kubo da Costa2023-09-087-46/+0
| | | | | | | | | They seem to be necessary with clang 12. The recent cherry-picks have introduced native versions of the libc++ and libc++abi recipes, and I have managed to finish a full build of chromium-ozone-wayland-114.0.5735.198 without these changes. Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
* clang: Remove unintended dependency on gcc-runtimeEsben Haabendal2023-09-081-1/+3
| | | | | | | | | | | | Commit a494bbb6ec44 ("clang: support android runtime") introduced an unrelated change causing builds with RUNTIME="llvm" and COMPILER_RT not set to get a dependency on virtual/${TARGET_PREFIX}compilerlibs. This is clearly unrelated to addition of support for android runtime, and causing unwanted depdencies to gcc-runtime for LLVM builds. Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com> (cherry picked from commit 03648d617e04ec46c227a52e35f5eff766f79814)
* spirv-llvm-translator: Upgrade to latest master to support clang14Khem Raj2023-09-081-5/+5
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 72337b33b8a78a87a01dc867a26748035c7bba6d)
* clang: Update to 13.0.1-rc3Khem Raj2023-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this uprev * 75e33f71c2da [X86] combineVectorHADDSUB - remove the broken HOP(x,x) merging code (PR51974) * 6349865a8f37 [CMake] Don't use -fno-semantic-interposition with Clang<=13 * b3dcd156472f [ARM] Define ComplexPatternFuncMutatesDAG * 1f1854ce0fe5 [Driver][test] Fix undefined-libs.cpp when CLANG_DEFAULT_UNWINDLIB is libunwind * fc043d8a256b Revert "[lld][CMake] Add LLD_DEFAULT_NOSTART_STOP_GC" * 5869ea6c6254 [sanitizer] msan build fix on non linux platforms * b9a243d1cac2 (tag: llvmorg-13.0.1-rc2) [Coroutines] Enhance symmetric transfer for constant CmpInst * 9d9efb1f67ff [lld][CMake] Add LLD_DEFAULT_NOSTART_STOP_GC * 52a400d8e4c4 [InlineCost] model calls to llvm.is.constant* more carefully * eaeb7dcf3249 ARM: make FastISel & GISel pass -1 to ADJCALLSTACKUP to signal no callee pop. * eecd0f055baa Have lit preserve SOURCE_DATE_EPOCH * bfb1bd1b9906 [Clang][Sema] Avoid crashing for va_arg expressions with bool argument * 1ac6bb3c4dd4 [Clang][CFG] check children statements of asm goto * 12aaa8553f82 [InstCombine] Remove attributes after hoisting free above null check * 35df3f98639e [DIArgList] Re-unique after changing operands to fix non-determinism * 0f915e755eae [RegAllocFast] Fix nondeterminism in debuginfo generation * 33f7aa65f5d7 [DSE] Fix invalid removal of store instruction * 426297cce9d5 [DSE] Add test case showing bug PR52774. * 0d44201451f0 [MachineOutliner] Don't outline functions starting with PATCHABLE_FUNCTION_ENTER/FENTRL_CALL * 69fcfdedc505 [AArch64][GlobalISel] Fix an crash in RBS due to a new regclass being added. * d31f8cc6884b [AArch64] Avoid crashing on invalid -Wa,-march= values * 67b5bc26bde8 [DebugInfo] Check DIEnumerator bit width when comparing for equality Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 8030ce2de1167a5a047b7d39c3058fa105fc8164)
* nativesdk-clang-glue: delete spdx tasksAndres Beltran2023-09-081-0/+2
| | | | | | | | | | | Extending poky's create-spdx class for SDKs results in a dependency loop: nativesdk-clang-glue.bb:do_create_spdx ->clang_git.bb:do_create_spdx -> clang-crosssdk_git.bb:do_create_spdx -> nativesdk-clang-glue.bb:do_create_spdx. Delete spdx tasks from nativesdk-clang-blue.bb Signed-off-by: Andres Beltran <abeltran@microsoft.com> (cherry picked from commit 02ed1fbaff0e4a101908adb710f0bff7d6ec189d)
* clang-tools-extra: apply upstream patchSerikzhan Kazi2023-09-081-0/+31
| | | | | | | | run-clang-tidy.py is being run on unique files only when using this patch Signed-off-by: Serikzhan Kazi <doze-tile-ruse-exit@mbition.io> (cherry picked from commit 414445a701a68a46627d2aa072ee737c50ceb751)
* clang: Update to latest 13.x relaseKhem Raj2023-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings in * 9468a0f95385 [PowerPC] Define XL-compatible macros only for AIX and Linux * ae24102617c9 [X86] Don't add implicit REP prefix to VIA PadLock xstore * c95753ff5c11 [NFC][X86] Add MC tests for all untested VIA PadLock instructions * d9f927f2cfe8 [sanitizer] Disable test incompartible with recert GLIBC * abc0cf92bb14 [sanitizer] Intercept lstat on Linux * b40f07b048c4 [msan] Add stat-family interceptors on Linux * 59289a837b00 [AA] Handle callbr instructions in alias analysis * 5b2990a6ff77 [ELF] #undef PPC to support GCC powerpc32 build * bdd28a2a138f [sanitizer] Don't test __pthread_mutex_lock with GLIBC 2.34 * 2c6c3e4b713b [asan] Fix "no matching function" on GCC * c1b51f098751 [msan] Disabled test failing on new GLIBC * 578e500fe5ba [Sparc] Create an error when `__builtin_longjmp` is used * cd4ebb2918ae [LazyCallGraph] Skip blockaddresses * d4a57c84834c workflows: Update workaround for lldb on Mac OS * d96358a28193 [compiler-rt] Increase kDlsymAllocPoolSize to fix test failures * c446ac46746e [Passes] Fix relative lookup table converter pass * 9fb79e6940b2 [PowerPC] Handle base load with reservation mnemonic * e68f640deecc [ELF][PPC32] Make R_PPC32_PLTREL retain .got * 87ca22cba2fa [Support] Attempt to fix deadlock in ThreadGroup * d904698b53e4 [Analysis] Ignore casts and unary ops for uninitialized values * 5932c004778c [MC][ELF] Fix accepting abbreviated form with Type change * 29276490d13c [MC][ELF] Do not error on parsing .debug_* section directive for MIPS * 724ed207b760 [ELF] Hint -z nostart-stop-gc for __start_ undefined references Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit e59b8f560a9e436f13588223c8f30c63d02ca3d8)
* clang: Create cross symlinks for more binutilsKhem Raj2023-09-081-1/+2
| | | | | | | | | | This helps in creating cross utilities to be used during OE cross builds as noted in Issue #491 Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit fd587eaf0340faba2f85cf7b2e254a290500c48c)
* clang: support android runtimeHsia-Jun(Randy) Li2023-09-082-4/+5
| | | | | Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com> (cherry picked from commit a494bbb6ec44a723703951a061c2adde5bca6852)
* DEPENDS on virtual/${TARGET_PREFIX}binutilsguillaume-pais-siemens2023-09-081-1/+1
| | | | | | | | | | | ```virtual/${TARGET_PREFIX}binutils``` shall be used and not ```binutils-cross-${TARGET_ARCH}``` In the case of an external arm toolchain, ```binutils-cross-aarch64``` does not exist and creates following error: ``` Missing or unbuildable dependency chain was: ['tisdk-base-image', 'packagegroup-core-standalone-sdk-target', 'libcxx-dev', 'compiler-rt', 'clang-cross-aarch64', 'binutils-cross-aarch64'] ``` Signed-off-by: Guillaume Pais <guillaume.pais@siemens.com> (cherry picked from commit 0304ff4e533698a036b4df7307d0a2af29441414)
* clang: Add packageconfig for lldb lua supportKhem Raj2023-09-081-0/+1
| | | | | | | Ensures right dependencies are added, and keep it off by default Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6967fccd0bda4508a98e341faaac5becdfdef3b7)
* clang: Set CLANG_DEFAULT_PIE_ON_LINUX to ONKhem Raj2023-09-081-0/+1
| | | | | | | This is new variable added in clang 14+ to defaultl to PIE Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit b71782147bc6064b52f06b23f9430a18ed39b19f)
* clang: Update to latest on 13.xKhem Raj2023-09-081-1/+1
| | | | | | | | | | Fixes brought in * f3394dc82c20 [libc++] Fix wrongly non-inline basic_string::shrink_to_fit * 52bfd2c1ccd8 [ELF] Do not report undefined weak references in shared libraries Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6445e77ab1e645dcb2e27ceb35b64d31a2210114)
* clang: for x86_64, correct GCC install search path for OpenEmbedded HostChangqing Li2023-09-084-0/+200
| | | | | | | | | | | | | | | | | | | | Build on OpenEmbedded Host, compiler-rt-native do_configure failed with following error: compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/bin/clang -target x86_64-linux -isystem/path/to/x86_64-linux/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/include -O2 -pipe /path/to/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c` | /build/tmp-glibc/hosttools/ld: cannot find crtbeginS.o: No such file or directory | /build/tmp-glibc/hosttools/ld: cannot find -lgcc | /build/tmp-glibc/hosttools/ld: cannot find -lgcc | clang-13: error: linker command failed with exit code 1 (use -v to see invocation) Since OpenEmbedded Host's gcc install path is different with clang's default search form, patch for OpenEmbedded Host's gcc library install path. Signed-off-by: Changqing Li <changqing.li@windriver.com> (cherry picked from commit edca114de1c04bdce4fe6b71ab42f4b0aa2e88e7)
* Use GCC runtime on ppc32 and armv5Khem Raj2023-09-081-0/+4
| | | | | | | | libcxx does not build for armv5 due to atomic locks issue and compile-rt cross build needs to be fixed for ppc32 Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit e411e74db0fff0d1a915855daacff11f37a74e25)
* clang: Update to 13.0.1-rc1Khem Raj2023-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Changes in this release * 19b8368225dc [X86][VARARG] Assign MMO earlier to avoid prolog insert point been sunk across VASTART_SAVE_XMM_REGS * 41c85bbb43e4 [X86][NFC] Pre-commit test to show prolog insert problem * 9dc7d6d5e326 [SystemZ] Give the EXRL_Pseudo a size value of 6 bytes. * 32bb956916e3 Bad SLPVectorization shufflevector replacement, resulting in write to wrong memory location * 93edfb23b18b [SLP][NFC]Add a test to show an issue with incorrectly extracted pointers. * 162f3f18c945 [Aarch64] Correct register class for pseudo instructions * 8be24d19fefa [MergeICmps] Don't merge icmps derived from pointers with addressspaces * 9e084f4194e6 Fix building with GCC 12: * d5159b99105d MLIR can't support -Bsymbolic link option, fail at CMake time with a helpful message instead of broken ru ntime * ff2cb6e400c3 [clang] Partially revert d8cd7806310c51af912a647a6ca46de62ff13214. * ed38280d006c [ARM] Use hardware TLS register in Thumb2 mode when -mtp=cp15 is passed * 216200aff268 [libc++] Fix hang in counting_semaphore::try_acquire * 00f64ccb49d9 [libc++] Remove non-atomic "platform" semaphore implementations. * 6cf25deec7d0 [libc++] counting_semaphore should not be default-constructible. * d218ef07a072 Re-apply the fix on DwarfEHPrepare and add a test Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 1b1640576a5e299d8675024b083dd794f5f082c9)
* libcxx: Set CMAKE_BUILD_WITH_INSTALL_RPATHKhem Raj2023-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmake 3.22+ is causing install failures e.g. | -- Install configuration: "Debug" | -- Installing: /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so.1.0 | -- Installing: /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so.1 | -- Set runtime path of "/mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so.1.0" to "" | -- Installing: /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so | CMake Error at cmake_install.cmake:88 (file): | file RPATH_CHANGE could not write new RPATH: | | | | to the file: | | /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/image/usr/lib/libc++.so | | Call Stack (most recent call first): | /mnt/b/yoe/master/build/tmp/work/armv7at2hf-neon-yoe-linux-gnueabi/libcxx/13.0.1-r0/build/projects/libcxx/cmake_install.cmake:56 (include) | Apply a workaround by building install time rpaths directly during build time too. Real fix perhaps will be in cmake somewhere. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 85fb0a622e0e9a7b2bb7e7035d66dab90e0432b4)
* glibc-tests: Pin compiler to gccKhem Raj2023-09-081-0/+1
| | | | | | | | glibc is not yet compilable for clang and glibc-tests is driven out of glibc sources in essense Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 81dca6d47885a35ffe9c05827e83670d500b7535)
* spirv-llvm-translator: add explicit branchAnuj Mittal2023-09-081-1/+1
| | | | | | | | Bitbake now shows warnings if branch parameter is not supplied explicitly. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> (cherry picked from commit 4e28225ed669b5ecc35b5e921ae09063fac62280)
* castxml: add branch and switch to using httpsAnuj Mittal2023-09-081-1/+1
| | | | | | | | Github no longer supports fetching using git protocol and bitbake now requires explicit branch. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> (cherry picked from commit b712d7b265d27d388e88ce55b533a8d2d2c260d7)
* clang: don't use lnrRoss Burton2023-09-081-1/+1
| | | | | | | lnr is deprecated, simply use ln -rs instead. Signed-off-by: Ross Burton <ross.burton@arm.com> (cherry picked from commit 0590f78e1516401bfc32873426132262378c1e3a)
* clang: Update to latest on 13.x releaseKhem Raj2023-09-0840-154/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | bump minor release to 13.0.1 Drop patch to remove git from PACKAGE_VERSION, this is already eliminated from upstream Following changes are part of this change * 08e3a5ccd952 [IntelJITListener] Fix order in JitListener/multiple.ll * 26e2c97bf14c [openmp] [elf_common] Fix linking against LLVM dylib * eb845520ac3c compiler-rt: Fix arch detection for ppc64le * ec4829efcc94 fixes bug #51926 where dangling comma caused overrun * 73daeb3d507f [CUDA] Make sure <string.h> is included with original __THROW defined. * 3ee9a2b63cfd [Support][mips] Remove unnecessary includes from Memory.inc * 47f53eec6485 [Mips] Add glue between CopyFromReg, CopyToReg and RDHWR nodes for TLS * 914355ee793c [CMake] Re-enable use --gc-sections on OpenBSD * 2ac023cd540a [clang] Omit most AttributedStatements from the CFG * 30c05f43b662 [runtimes] Properly handle the sysroot/triple/gcc-toolchain * a797306b7721 [clang-format] [PR51640] - New AfterEnum brace wrapping changes have cause C# behaviour to change * 0a5ae011cd23 [HIP] Fix test rcom-detect.hip * 1a40203f8e94 workflows: Update lldb workaround to latest version of Mac OS X * 8a93745a7121 Remove "In Progress" text from release notes * 449f3049b507 [GHA] Cancel intermediate builds on PRs * cf15ccdeb6d5 Bump version to 13.0.1 * fd1d8c2f04dd [cte] Release notes for clangd-13 Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit d246141aaf71c739d50e32d0c10e12eecf920e45)
* clang: Add patch to handle RISCV multilibsKhem Raj2023-09-082-0/+101
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 27d31ea0ee2c4960f3cb1fbd214e99925d80575a)
* clang_git: disable LLD usageDavid Abdurachmanov2023-09-081-0/+1
| | | | | | | | | | This will resolve issue with SDK relocation. See: https://github.com/kraj/meta-clang/issues/119 Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 68b8f9b2425e54518211e2914064a5dd08c3aec6)
* nativesdk-clang: Fix build when using RUNTIME = llvmKhem Raj2023-09-082-0/+3
| | | | | | | | | | | | | We can not use nativesdk variants of libcxx and compiler-rt yet when compiling nativesdk-clang because, it will need this compiler to build them, so solve this catch-22, since we do not use the runtime built during compiler builds, use libgcc/libstdc++ to pass cmake tests during configure, this should be fine as it will be not needed for final builds where nativesdk-clang will be used, it can still default to llvm runtime on SDK host Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 826f7287ffb8ae87bd843ecfe4a21a661bb03294)
* clang: Update to 13.0.0-rc4Khem Raj2023-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Changes in this set * d7b669b3a303 [clang] don't mark as Elidable CXXConstruct expressions used in NRVO * ee6913cc8317 [analyzer] Add 13.0.0 release notes * d0f0b5b99262 Thread safety analysis: Warn when demoting locks on back edges * 80f974e40f81 [AArch64][GlobalISel] Use ZExtValue for zext(xor) when invert tb(n)z * 5b95eb0b442e [debuginfo-test][cross-project-tests] Release note for new project name * b96ee8f581f6 [X86] combineX86ShuffleChain - ensure we only peek through bitcasts to vectors (PR51858) * dda88bfc06b5 [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD. * 08642a395f23 Fix syntax error in Clang release notes * 6a5ccb2ec438 [compiler-rt] Implement __clear_cache() on OpenBSD/riscv64 * 6aa054242d60 [LLD] Add required `ppc` target to the test cases. NFC * 8d78ac26f475 [OpenMP]Fix PR51349: Remove AlwaysInline for if regions. * d811546f803c [compiler-rt] Move -fno-omit-frame-pointer check to common config-ix * 89f2c0c63c22 [clang] disable implicit moves when not in CPlusPLus * 635b7871de93 [clang-repl] Install clang-repl * 1f27fe612876 -Wunused-but-set-parameter/-Wunused-but-set-variable Add to the release notes Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit d236deda20383e66e303399d98544fbcc66155a9)
* clang: use global multilib variantsDan McGregor2023-09-081-1/+1
| | | | | | | | | Using regular multilib variants prevents sharing state between machines with dissimilar multilibs, or non-multilib machines. Since there's no harm in having extra multilib triples, use the full set for all builds. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> (cherry picked from commit 1f40e6439ac7894bf788aa221efc8648d043a0f9)
* spirv-llvm-translator: Use latest revisionsZoltán Böszörményi2023-09-081-2/+2
| | | | | | | Use latest revisions for SPIRV-LLVM-Translator and SPIRV-Headers Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> (cherry picked from commit 11b5b37db1046326b0c0ca067d3f4834d3e5dfe7)
* spirv-llvm-translator: Use the latest commit for SPIRV-HeadersZoltán Böszörményi2023-09-081-1/+1
| | | | | Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> (cherry picked from commit edd9f7e580e02242e08d34d35d808171f79d1fc9)
* clang: Update to latest 13.xZoltán Böszörményi2023-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes up to 13.0.0-rc3 f6b09e394a5f [openmp] Apply code change from D109500 1916a1c578f8 [VPlan] Fix crash caused by not updating all users properly. 2aa67b31faf0 [clang-format] Restrict the special handling for K&R C to C/C++ f1342c749ac0 [LLDB] AArch64 SVE restore SVE registers after expression fbb8b41588be Revert "[AArch64][GlobalISel] Legalize bswap <2 x i16>" 1c198b3032e8 Revert [MC][ELF] Emit separate unique sections for different flags 4728892cd336 [LLD] Support compressed input sections on big-endian targets 77f24308fe78 [X86] Don't clobber EBX in stackprobes 1ff9aa2bfe19 [IR] Handle constant expressions in containsUndefinedElement() 84a3be829686 [SimplifyCFG] performBranchToCommonDestFolding(): require block-closed SSA form for bonus instructions (PR51125) bd8cc8543fdc [OpenCL][Docs] Update OpenCL 3.0 implementation status. 9723fc15338e [OpenCL][Docs] Release 13 notes. f53652203e49 scudo: Only add no-omit-frame-pointer flags when the compiler supports them c8d8248488a3 [clang-format] Improve detection of parameter declarations in K&R C 4ab7fe9228db [clang-format] Distinguish K&R C function definition and attribute 748f09fdd5d6 [clang-format] improve distinction of K&R function definitions vs attributes ffd90ed19988 [clang-format] handle trailing comments in function definition detection b685e13d1130 [clan-format] detect function definitions more conservatively e3ec9058aae5 [MemCpyOpt] Fix a variety of scalable-type crashes 718280c8a2d1 [AMDGPU][OpenMP] Use complex definitions from complex_cmath.h Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> (cherry picked from commit b8463aa66767e0c4e6dee3c90d666a8bd47c6766)
* spirv-llvm-translator: Define explicit SRCREV_FORMATKhem Raj2023-09-081-0/+2
| | | | | | | Since it uses multiple fetch URIs make it explicit to define SRCREV_FORMAT Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 46e154f597b2db2a57a183dadc4a03f59671dde3)
* clang: Update to latest 13.xKhem Raj2023-09-084-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> (cherry picked from commit 12c3739c9cc737ceb8a29bf7bbd848d3de4b8d17)
* clang: Fix llvm-link and opt dependency build failure in libompKhem Raj2023-09-085-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> (cherry picked from commit 4f69b68228f75b6a3f2375a0258fd04f4f67ce70)
* spirv-llvm-translator: switch to release llvm_release_130 branchNaveen Saini2023-09-081-2/+5
| | | | | | | | | Fetching SPIRV-Headers, which provides required spirv.hpp headers https://github.com/KhronosGroup/SPIRV-Headers.git Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> (cherry picked from commit 610c47baddbfb310ffa681cc202211ed4a659e95)
* clang: Update towards 13.x RC2Khem Raj2023-09-0839-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> (cherry picked from commit 5187604e18b970e486b88e6f2eba6a454ef4f7ef)
* mpich: Use gcc runtime with clang for x86/x86_64Khem Raj2023-09-081-1/+2
| | | | | | | It needs symbols like __multf3 which are not in compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 8f0c09e191340358319889b6f54af5227de3e9ec)
* clang: Update to latest on 13.xKhem Raj2023-09-081-1/+1
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit ccd1a48d2719a88c64caa065c9ea689076710b43)
* clang/compiler-rt: Convert to new override syntaxKhem Raj2023-09-083-3/+3
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 45a3707291a4e8bd2469b0d2bb9cf9e07878ae08)
* clang: Update to latest on 13.x release branchKhem Raj2023-09-0838-97/+141
| | | | | | | Fix libcxx/locale builds on musl Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit f9c73c7cbcce9d7b549fbec5d814a432125c876c)
* libc-bench: Link with libgcc when using llvm runtimeKhem Raj2023-09-081-0/+1
| | | | | | | | This uses static link and glibc uses libgcc intrinsics which otherwise are undefinded. Glibc is built using gcc + gnu runtime still Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 0516983c48d6aad32a133f73d308125edd146f1c)