summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang.inc
Commit message (Collapse)AuthorAgeFilesLines
* 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: Update to 15.0.6Khem Raj2022-12-051-2/+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: 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: Update to 15.0.2 release tagKhem Raj2022-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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: Upgrade to latest on release/15.xKhem Raj2022-09-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | Drop objdump patch and git suffix patch as they are applied upstream brings in these changes * 29d395a1b7a8 [llvm-objdump] Change printSymbolVersionDependency to use ELFFile API * 4936d7ce4852 [llvm-objdump][test] Add verneed-invalid.test * 99882208e234 [compiler-rt] Handle non-canonical triples with new runtime lib layout * 8b75172a754e (origin/release/15.x) [NFC] Fix exception in version-check.py script * 3637f345d2ab Bump version to 15.0.1 * c0141f3c300f Downgrade implicit int and implicit function declaration to warning only * 6fe69891d15c [MachO] Don't fold compact unwind entries with LSDA * a5ae700c67ec [MachO] Fix dead-stripping __eh_frame * c51a59d8a947 [libc++][format] Updates feature-test macros. * 92e7ef99303f [LLD][COFF] Fix writing a map file when range extension thunks are inserted * c643956d69b1 [mlir] Fix building CRunnerUtils on OpenBSD with 15.x * 1a5c5e0f67be [DwarfEhPrepare] Assign dummy debug location for inserted _Unwind_Resume calls (PR57469) * 3a08ad21ce89 [Clang] Fix crash in coverage of if consteval. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to clang 15.0.0 releaseKhem Raj2022-09-121-4/+4
| | | | | | | | | | | | | | | | | | Drop upstreamed patches and forward port the remaining to latest sourcess llvm: Fix libzstd detection with zstd cmake files Release Notes [1] [2] [3] [4] [5] [6] [1] https://github.com/llvm/llvm-project/blob/release/15.x/clang/docs/ReleaseNotes.rst [2] https://releases.llvm.org/15.0.0/docs/ReleaseNotes.html [3] https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html [4] https://releases.llvm.org/15.0.0/tools/lld/docs/ReleaseNotes.html [5] https://releases.llvm.org/15.0.0/projects/libcxx/docs/ReleaseNotes.html [6] https://releases.llvm.org/15.0.0/tools/clang/tools/extra/docs/ReleaseNotes.html Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 14.0.6Khem Raj2022-07-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring in following changes * f28c006a5895 Bump version to 14.0.6 * aa586b6f5f55 [clang][AVR] Implement standard calling convention for AVR and AVRTiny * ec42d3c069c7 [AVR] Add more devices * c12386ae247c [MC][AArch64] Enable '+v8a' when nothing specified for MCSubtargetInfo * 4d5dad43b2eb [analyzer] Fix null pointer deref in CastValueChecker * 5b296385298f PR45879: Fix assert when constant evaluating union assignment. * deb573739df9 [clang-tidy] `bugprone-use-after-move`: Fix handling of moves in lambda captures * d0cd5a872f8d [clang-format] Fix SpacesInLineCommentPrefix deleting tokens. * 3cd9df8443f8 [clang-format] Fix PointerAlignment: Right not working with tab indentation. * d350783a0520 [LoopIdiom] Merge TBAA of adjacent stores when creating memset * 198626ad43fd [MIPS] Address instruction selection failure for abs.[sd] * b75bf750fdc2 [LoopIdiom] Fix bailout for aliasing in memcpy transform. * 2e857fe6e390 [ARM] Fix MVE getShuffleCost legalized type check * a517f3439671 [Support] Add missing <cstdint> header to Base64.h * 4d039a7a7189 [Support] Add missing <cstdint> header to Signals.h * 483db58f3eb5 compiler-rt: Allow build without __c11_atomic_fetch_nand * 576e5b39ae4d [clang-tidy] Fix #55134 (regression introduced by 5da7c04) * 99b5eb2d3a61 [Local] Don't remove invoke of non-willreturn function * 885724c60cdc [SimplifyCFG] Add test for invoke of nounwind non-willreturn function (NFC) * 2f0a69c32a4c [OpenMP] Fix partial unrolling off-by-one. * 79147e4722cc [clang][CUDA][Windows] Fix compilation error on Windows with `uint32_t __nvvm_get_smem_pointer` * ec0332328bd6 [clang] Fix some clang->llvm type cache invalidation issues * 10d442522b1a [clang][AVR] Implement standard calling convention for AVR and AVRTiny * 09ec80e16f47 [PowerPC] Treat llvm.fmuladd intrinsic as using CTR Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 14.0.4+Khem Raj2022-05-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings * b950bd2ce7ff Bump version to 14.0.5 * 29f1039a7285 [CUDA][HIP] Externalize kernels with internal linkage * e6de9ed37308 [CUDA][HIP] Externalize kernels in anonymous name space * fecfc8394484 AST: Move __va_list tag back to std conditionally on AArch64. * 725d57c39039 AST: Make getEffectiveDeclContext() a member function of ItaniumMangleContextImpl. NFCI. * 0009cdbd8a3a [clang][NFC] Remove IgnoreLinkageSpecDecls * 53eaee6bf3b3 [clang][NFC] Standard substitution checking cleanup * c81f3d00cbd4 [AVR] Generate 'rcall' instead of 'call' on avr2 and avr25 * 5f6fe6b93e85 [AVR] Fix incorrect calling convention for varargs functions * 42fe7ccbeb44 [SystemZ] Bugfix for symbolic displacements. * f45a01e4a170 [libc++][CI] added XFAIL LIBCXX-AIX-FIXME to new runnning test cases after install locale fileset on AIX OS. * 55e34f3b49b1 [libc++] Always enable the ranges concepts * 5f66e721ec1d [ELF][ARM] Fix unneeded thunk for branches to hidden undefined weak * 3bfae7816bdb Fix crash getting name of a template decl * 76c1c1dd2a01 [OpenMP] Fix library path missing when using OpenMP * 588b95a2b88e [ELF][AArch64] Fix unneeded thunk for branches to hidden undefined weak * e70d79f1e8c0 [ELF] Ignore --no-add-needed * 7a42b2fd5be3 [BOLT] Compact legacy profiles * d6319246f89b [CodeGen] Use ABI alignment for C++ new expressions * daef3113e819 [compiler-rt] Add NO_EXEC_STACK_DIRECTIVE on s390x * c65b0cd2421d [GlobalIsel] Fix fallback if stack protector isn't supported. * cda300eab8dd [Driver][Solaris] -r: imply -nostdlib like GCC * 9827a185b611 [Driver][Ananas] -r: imply -nostdlib like GCC * 087082a828ff [cmake] Increase -fms-compatibility-version in Windows toolchain file * c56415735060 [SystemZ] Bugfix in SystemZTargetLowering::combineINT_TO_FP() * be653f6292e7 [X86] combineX86ShuffleChain - don't fold to truncate(concat(V1,V2)) if it was already a PACK op * 52528806579b [AArch64] Ampere1 does not support MTE * 53433dd0b503 [AArch64] Support for Ampere1 core * c6d56a324ef8 [AArch64] Add native CPU detection for Ampere1 * 60c8e02c9d12 [IPSCCP] Support unfeasible default dests for switch. * 0108630f8bc5 [InstCombine] Fix scalable-vector bitwise select matching * 39e909731a11 [InstCombine] add scalable vector test for logical select; NFC * cd597588217a [HIP] Fix HIP include path * 50d4a84152c6 Fix test for c7ee0b8bda8b32a800bc01e9151b364446a6e1b1 * 869c1d7d0902 [Clang] Fix the guaranteed alignment of memory returned by malloc/new on OpenBSD * 5c4cf01f47da [Driver][Linux] Remove D.Dir+"/../lib" from default search paths for LLVM_ENABLE_RUNTIMES builds * f3f90ec42ae6 [MC][ELF] Improve st_size propagation rule * 9ed930e5cd74 [MC][test] Improve offset.s * 5eb22621bcd2 Bump version to 14.0.4 * 019d4f1ceb96 [libc++abi] Remove XFAIL on arm64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 14.0.3Khem Raj2022-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings these changes * 1f9140064dfb Bump version to 14.0.3 * 2e7e14177186 workflows: Add a test to ensure that the LLVM version is correct * 0e27d08cdeb3 [RISCV] Fix crash for section alignment with .option norvc * a36801750327 [asan] Always skip first object from dl_iterate_phdr * 1f4c7b2a9120 [RISCV] Don't emit fractional VIDs with negative steps * e19be4195b87 [RISCV] Add another test showing incorrect BUILD_VECTOR lowering * 9efcce92b55b [RISCV] Fix lowering of BUILD_VECTORs as VID sequences * 21ce6cfd1d93 [RISCV] Add tests showing incorrect BUILD_VECTOR lowering * 58d5fbe2c20b [llvm-mt] Add support /notify_update * 50c6ba751fa2 [RISCV] Only try LUI+SH*ADD+ADDI for int materialization if LUI+ADDI+SH*ADD failed. * dc30b0d3320d [ELF] --emit-relocs: fix missing STT_SECTION when the first input section is synthetic * 324127d8da95 [libcxx] Add some missing xlocale wrapper functions for OpenBSD * ebf29ba9f0a3 [LV] Remove stray debug dump added in 0d2efbb8b82c. * 0d2efbb8b82c [LV] Always use add to add scalar iv and (startidx + step) for ints. * e7a9fd4f57d6 [LV] Add test case for PR54427. * 9a3e81e1f91f [InstCombine] canonicalize select with signbit test * b83c4a2dc0fb [x86] Fix infinite loop inside DAG combiner with lzcnt feature. * 0fbe860711be [Clang][Fortify] drop inline decls when redeclared * 571c7d8f6dae Reland "[llvm][AArch64] Insert "bti j" after call to setjmp" * 0f56ce0fb207 [DebugInfo][InstrRef] Avoid a crash from mixed variable location modes * e8f03f2057ee Force GHashCell to be 8-byte-aligned. * 09fba23d41f7 [compiler-rt] Implement __clear_cache on FreeBSD/powerpc * 33504b3bbe10 [PowerPC] Allow absolute expressions in relocations * 3400d0293a14 [CMake] Update cache file for Win to ARM Linux cross toolchain builders. NFC. * 6c41c8edb0cc [CMake] Replace `TARGET_TRIPLE` with `TOOLCHAIN_TARGET_TRIPLE` for Win-to-Arm cross toolchain cache file. NFC. * b6dbee34387d [CMake] Update cache file for Win to ARM cross tooolchain. NFC. * 46d19f3a8699 [CMake] Use CMAKE_SYSROOT to build libs for Win to ARM cross tooolchain. NFC. * e11b929a3c97 [LLD][COFF] Fix TypeServerSource matcher with more than one collision * d800180f6bee [lld][COFF] Fix TypeServerSource lookup on GUID collisions * 8c3445ac1c8b [AArch64][LOH] Don't ignore regmasks in bundles by iterating over instrs. * 43ee392dd462 [InstCombine] try to fold low-mask of ashr to lshr * 5ea5e3c01b7b [InstCombine] add tests for low-mask of ashr; NFC * fe8a27acd716 [LV] Handle zero cost loops in selectInterleaveCount. * 2c4d288eae8b [RISCV][NFC] Add missing lit.local.cfg in test/CodeGen/MIR/RISCV/ * d0f27fb44952 [RISCV] Fixing stack offset for RVV object with vararg in stack. * b6e91d4a331e [RISCV] Pre-commit for fixing stack offset for RVV object * 87599bdabbd1 [RISCV] Store/restore RISCVMachineFunctionInfo into MIR YAML file * 5c9eed741dbd [libc++] Make __dir_stream visibility declaration consistent * c62053979489 [AArch64] Fix the upper limit for folded address offsets for COFF * 6697c5bc3a1e [compiler-rt] [scudo] Use -mcrc32 on x86 when available * 8475349bd639 [AARCH64] ssbs should be enabled by default for cortex-x1, cortex-x1c, cortex-a77 * d4e3c50b2bda [libc++] Define `namespace views` in its own detail header. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on 14.x release branchKhem Raj2022-04-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | brings in these fixes * ec13fed5867f [X86] lowerV8I16Shuffle - use explicit SmallVector<SDValue, 4> width to avoid MSVC AVX alignment bug * aaf0c921a54a [clang-repl] Add an accessor to our underlying execution engine * d150523f0776 [AArch64] Use correct calling convention for each vararg * fd98b0f1a6a1 [SelectionDAG] Don't create illegally-typed nodes while constant folding * d53e2603383a [AArch64] Allow .variant_pcs before the symbol is registered * 67a290460c37 [VectorCombine] Insert addrspacecast when crossing address space boundaries * 353068233f21 [ELF] Fix llvm_unreachable failure when COMMON is placed in SHT_PROGBITS output section * 311a622edd31 [Object][test] Fix invalid.test * 1007cb795a3c [llvm-objdump] --private-headers: change errors to warnings for dynamic section dumping * c9ec4902c3e3 [llvm-objdump][test] dos2unix some files * 5b9dd016bec7 [SelectionDAG][RISCV] Make RegsForValue::getCopyToRegs explicitly zero_extend constants. * e9b26b5b2a70 [RISCV] Add test case for miscompile caused by treating ANY_EXTEND of constants as SIGN_EXTEND. * a4681df0202c [libcxx] [test] Avoid spurious test breakage in clang-cl-dll configs with newer CMake * db07d9f098b3 [MC] Fix llvm_unreachable when a STB_GNU_UNIQUE symbol needs a relocation * 22d7bee01a5a [PPCISelLowering] Avoid emitting calls to __multi3, __muloti4 * 23d08271a4b2 Add cmake/ to release tarballs via concatenation * b69247dcbd80 [libcxx] random_device, specify optimal entropy properties for all OS's using arc4random() * 63e7af77ec42 [Clang][NeonEmitter] emit ret decl first for -Wdeclaration-after-statement * f3b89727716a [Driver][OpenBSD] Disable unwind tables on Arm * fe5c24e93754 [docs] Fix typo in tutorial * 99c0f85ef992 Re-commit: Driver: Don't warn on -mbranch-protection when linking * 0547ffef5d39 workflows: Consolidate tests to reduce the number of build jobs * bd8dc965cff1 Bump version to 14.0.1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add env override for libdirKhem Raj2022-03-241-1/+1
| | | | | | | | | | | | | This is useful when using clang cross compiler and the packages rely on llvm-config to detect paths and various attributes of clang/llvm install Update to latest on 14.x as well * 3f43d803382d [libc++] Re-enable workaround for pre-ranges CTAD in std::span * add3ab7f4c8a [libc++] Add workaround to avoid breaking users of <span> when <ranges> are disabled * 329fda39c507 NFC: Mention auto-vec support for SVE in release notes. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 14.0.0 RC4Khem Raj2022-03-131-1/+1
| | | | | | | | | | | | | Brings in these changes * 69ba522c58d0 [Hexagon] Fix crash with shuffle_vector of v128f16 * ac3398a0b003 Revert "[CMake] Include runtimes test suites in check-all" * df2fcea78fb8 Revert "Revert "Revert "[release] Use the Bootstrapping build for building LLVM releases""" * 893b864cb855 Revert "GCC ABI Compatibility: Preserve alignment of non-pod members in packed structs" * a9415df334f0 Revert "Revert "[release] Use the Bootstrapping build for building LLVM releases"" * e54a7bf0c0f1 [CMake] Include runtimes test suites in check-all Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on 14.xKhem Raj2022-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable __int128 for compiler-rt/ppc32 Drop redundant ppc patch which is fixed upstream already Brings these fixes * e879b2bf82ef [libcxxabi] [test] Depend on unwind only if available * 569b773323a3 [libcxx][CI] Set Arm triples to match native clang build's default * f7007c570a21 Lambdas are not necessarily locals. This resolves DR48250. * eb84577cbc23 Revert "[release] Use the Bootstrapping build for building LLVM releases" * d843bde69aab [clang][driver] Fix float128 diagnostics with glibc >= 2.32 * ba9ff030d302 [SimplifyCFG][PhaseOrdering] Defer lowering switch into an integer range comparison and branch until after at least the IPSCCP * da3953fb0315 [NFC][PhaseOrdering] Add some tests from D119839 * 8b51e5ee0a2e [NewPM][Inliner] Make inlined calls to functions in same SCC as callee exponentially expensive * 6a713120502a [llvm] [bindings/OCaml] Remove unused dep on ounit2 * 2de2a2bba998 [LICM][PhaseOrder] Don't speculate in LICM until after running loop rotate * 7d1cd3380add [NFC][PhaseOrdering] Improve test coverage for D119975 * 1f4613675051 [NFC][PhaseOrdering] spurious-peeling.ll: also test -O1/-O2 results * 36bf1a9e628d [NFC][PhaseOrdering] Precommit tests from D119965 * 67555104d23a [MachineSink] Disable if there are any irreducible cycles * 1e4fd59253c6 [CodeGen] Add test for PR53990 (NFC) * bfaed485756a [BOLT][CMAKE] Remove CMake 3.13.4 incompatible parameter * 43b4544023b7 [LLD] [COFF] Order .debug_* sections at the end, to avoid leaving gaps if stripped * e6d2aa9b0f13 [MC][WebAssembly] Fix crash when relocation addend underlows U32 * f6a4df3a0a3d [WebAssembly] Covert llvm/test/MC/WebAssembly/reloc-code.ll to asm. NFC * 9d54fe21c67f [docs] Add RISC-V release notes for LLVM 14 * 1e3d5ccab6b6 Add cmake to source release tarballs * 0205cc086e50 [OpenMP][FIX] Ensure custom state machine works * 0826716786cd [Mips] support "sp" named register * 09546e1b5103 [libc++][doc] Update the release notes. * 8f9f84c6873e [docs] clang/docs/ReleaseNotes.rst: Add blank line * aab33202d239 [docs] PowerPC release notes formatting/grammar fixes * acf67b7a0dfc [docs] Tweak wording of note re: LTO on AIX * ce1e90fc8dba [docs] Add PowerPC release notes for LLVM 14 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 14.0.0-rc2+Khem Raj2022-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 65d53279b1fd RISCV] More correctly ignore Zfinx register classes in getRegForInlineAsmConstraint. * f1e7f848bf3e [clang][tests] Fix ve-toolchain tests with CLANG_DEFAULT_UNWINDLIB * 6d5afef3a7e6 [examples][BuildingAJIT] Use the right layer when adding code in Chapter 3. * 4fde843cd5c0 [ORC] Set ResolverBlockAddr in EPCIndirectionUtils::writeResolverBlock. * a98c04d58930 [Attributor][FIX] Use liveness information of the right function * 261253aa60cc [Clang][docs] Add preprocessor changes to ReleaseNotes. * 967296bfefee [RISCV] Fix inline asm errors in zfinx * 4c9110a5f37b [MIPS] Recognize DT_MIPS_XHASH dynamic table tag * ce3d57ad61db Revert "[BPF] Fix a BTF type pruning bug" * 19149538e9a9 [BPF] Fix a BTF type pruning bug * da33d400682a [SLP] Don't try to vectorize pair with insertelement * 3001b0d51963 [fir] Fix FlangOptimizerTests link on Solaris * 41d4f89e38b7 [X86ISelLowering] permit BlockAddressSDNode "i" constraints for PIC * d245bcf536a3 [Mangler] Mangle aliases to fastcall/vectorcall functions correctly * 0372676278dd [AArch64][SME] Remove term 'streaming-sve' from assembler diagnostics. * f58ab3285021 [Attributor][FIX] Pipe UsedAssumedInformation through more interfaces * 4327d39b15b2 [libcxx] Add an explicit option to build against system-libcxxabi * 3d913ec92308 [llvm] [cmake] Fix finding modern ounit2 * b3e9abd9683b [libunwind] Further fix for 32-bit PowerPC processors without AltiVec * d09f84adff1e [compiler-rt] Force ABI to libcxxabi when building cxustom libc++ * e08bab88c900 [Driver][DragonFly] -r: imply -nostdlib like GCC * 21f87ad9f590 [Driver][NetBSD] -r: imply -nostdlib like GCC * 779871c3515a [mlir-tblgen] Fix non-deterministic generating static verifier in DRR. * 4de8e5698278 [RISCV] Fix parseBareSymbol to not double-parse top-level operators * b29813fbbbaf [OpenMP] Use executable path when searching for lld * 14c432b6a17a [OpenMP] Add search path for llvm-strip * 453361d5ac01 [DSE] Fall back to CFG scan for unreachable terminators. * 03cf88fc94da [DSE] Extract a common PDT check (NFC) * ee0ae47691d3 [RISCV] Avoid infinite loop between DAGCombiner::visitMUL and RISCVISelLowering::transformAddImmMulImm * 61e78c64a38a [libunwind] Only include cet.h if __CET__ defined * 5f5b687460c3 Fix warning introduced by 47eff645d8e873ba531014751c1c06a716a367e9 * 64534d2f406c [InstCombine] Bail out of load-store forwarding for scalable vector types * 4fe93c000b20 [SLP] Fix assert from non-constant index in insertelement * a2398c560144 [Driver][OpenBSD] Enable unwind tables on all architectures * aadd03a2accd [clang][ASTReader] Fix memory leak while reading FriendTemplateDecls * 8a323ada234b [clang][SemaTemplate] Fix a stack use after scope * d61805a8b686 [libc++] Fix double file closing in `std::filesystem::remove_all()`. * f8ca5fabdb54 [ELF][X86] Don't create IBT .plt if there is no PLT entry * 8400036358c8 [libunwind][test] remember_state_leak.pass.sh.s: link with -no-pie * df3182a7df19 [clang] [test] Skip hip-fpie-option.hip if default-pie * cdd8cca0c33c [ELF] Support some absolute/PC-relative relocation types for REL format * e89602b7b2ec [clang-tidy] Fix `readability-suspicious-call-argument` crash for arguments without name-like identifier * 1f7e8b1c6893 [Docs] Added note about LLDB Win/Arm64 binary release * bdbca8f3d0b2 [asan][test] asan_prelink_test.cpp: use -fno-pie -no-pie * 3e10605abcb2 [Driver][test] Remove soon irrelevant pie tests * 2a492dfd6b4e [Driver][test] Make hexagon-toolchain-elf.c work with CLANG_DEFAULT_PIE_ON_LINUX=on * 443f68c280ac [clang][test] Make mips-vector-return.c work with CLANG_DEFAULT_PIE_ON_LINUX=on * 500889f56bce [MIPS] Add `-no-pie` option to the clang driver's tests depend on it Drop 0036-Avoid-infinite-loop-between-DAGCombiner-visitMUL-and.patch which is upstreamed now. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 14.xKhem Raj2022-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport a fix to avoid compiler hangs on RISCV [1] This brings following changes * 2fe5bf57172c [Driver] Use libatomic for 32-bit SPARC atomics support * 46266b3518b6 [mlir][sparse] Rename index_t to index_type again * 03d9a4094763 [AArch64][SVE] Fix selection failure during lowering of shuffle_vector * 8b5b29c4c2c5 Fix incorrect TypeSize->uint64_t cast in InductionDescriptor::isInductionPHI * 8c33ea3ab0ef [SVE][CodeGen] Bail out for scalable vectors in AArch64TargetLowering::ReconstructShuffle * 1362f8bdfce7 [AArch64][SVE] Fix selection failure caused by fp/int convert using non-Neon types * 88f8980a4d95 [AArch64][SVE] Add structured load/store opcodes to getMemOpInfo * cefe6876d6e5 [llvm-objcopy][COFF] Fix section name encoding * 3367c24735c3 [COFF] Move section name encoding into BinaryFormat * 9672d11441fd [MLIR][Presburger] Disambiguate call to floor * 08ad9ae10f32 [InstSimplify] Strip offsets once in computePointerICmp() * 5593af72d0c5 [Attributor][FIX] Heap2Stack needs to use the alloca AS * b3d3501aa128 [OpenMP][FIX] Eliminate race on the IsSPMD global * 9bf8897c84f7 [OpenMP] Add RTL function to externalization RAII * 56ac6dbc7369 [RuntimeDyld] Fix building on OpenBSD * fef110bf8b2b [clangd] Fix building SerializationTests unit test on OpenBSD * 13fdc7afa856 [Attributor][FIX] Reachability needs to account for readonly callees * f3cfaf8bc8eb [MemoryBuiltins][FIX] Adjust index type size properly wrt. AS casts * c06cc1c3a7f8 [libc++] Fix std::__debug_less in c++17. * 7d8e83dab37a [funcattrs] check reachability to improve noreturn * e1b3afbbdef1 [SLP] Simplify indices processing for insertelements * 1e340705f142 [PowerPC] Add default handling for single element vectors, and split/promote vNi1 vectors. * 908c1bae6e7f [RISCV] Fix incorrect extend type in vwmulsu combine. [1] https://github.com/llvmbot/llvm-project/pull/95 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 14.xKhem Raj2022-02-201-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>
* clang: Upgrade to upcoming clang14 release branchKhem Raj2022-02-161-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 13.0.1-rc3Khem Raj2022-01-281-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>
* clang: Update to latest 13.x relaseKhem Raj2021-12-281-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>
* clang: Update to latest on 13.xKhem Raj2021-12-141-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>
* clang: Update to 13.0.1-rc1Khem Raj2021-12-031-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>
* clang: Update to latest on 13.x releaseKhem Raj2021-11-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* clang: Update to 13.0.0-rc4Khem Raj2021-09-251-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>
* clang: Update to latest 13.xZoltán Böszörményi2021-09-151-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>
* clang: Update to latest 13.xKhem Raj2021-09-101-1/+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-021-1/+1
| | | | | | | | | | | 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-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Update to latest on 13.x release branchKhem Raj2021-08-121-1/+1
| | | | | | Fix libcxx/locale builds on musl 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>
* clang: Switch to 13.x branchKhem Raj2021-07-301-2/+2
| | | | 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: Update to latest on 13.0.0/trunkKhem Raj2021-06-301-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on main/13.0 lineKhem Raj2021-06-241-1/+1
| | | | | | 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-161-1/+1
| | | | | | 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-141-1/+1
| | | | | | | 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-081-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to trunk/13.0 future seriesKhem Raj2021-06-081-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable dwarf-5 default debug infoKhem Raj2021-05-041-1/+1
| | | | | | This matches with GCC 11 which is also defaulting to DWARF-5 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 12.0.0 RC5Khem Raj2021-04-081-1/+1
| | | | | | | * d28af7c654d8 remove -fpch-codegen and -fpch-debuginfo from Clang 12.0 release notes * 04ba60cfe598 [ORC][C-bindings] Fix some ORC C bindings function names and signatures. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update 12.0.0-RC4Khem Raj2021-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 31001be371e8 [LoopVectorize] Refine hasIrregularType predicate * 9ae9ab1ca343 [RISCV][MC] Fix nf encoding for vector ld/st whole register * ff2cf8fafa5a [InstCombine] avoid creating an extra instruction in zext fold and possible inf-loop * 5b3480610383 [InstCombine] add test for zext-of-icmps; NFC * 38dd45b00431 [X86][FastISel] Fix with.overflow eflags clobber (PR49587) * 79a79d1d01c4 [X86] Add test for PR49587 (NFC) * f05b64961056 [FastISel] Don't trivially kill extractvalues (PR49467) * e89cdf8937bb [OpenMP] Restore backwards compatibility for libomptarget * 8ca56905dd9b [PowerPC] Fix infinite loop in peephole CR optimization (PR49509) * f43958b7c497 [OpenMP] Fixed a crash in hidden helper thread * e94372d1b395 [SimplifyCFG] avoid sinking insts within an infinite-loop * f4c01f33f450 [Support] Fix 'keeping' temporary files on Windows 7 * 4990141a4366 [WoA][MSVC] Use default linker setting in MSVC-compatible driver [take 2] * e3186ba0f3b5 [aarch64][WOA64][docs] Release note for WoA-hosted LLVM 12 binary * 00441b8f4e5b [OpenCL][Docs] Release notes * ca14f0282fce [release][docs] List all cores Arm has added support for in LLVM 12. * c016eda3257e [release][docs] List all cores Arm has added support for in LLVM 12. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Upgrade to 12.0.0 RC3Khem Raj2021-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | * 15d1ee36720f [CMake][compiler-rt] Use copying instead of symlinking for LSE builtins on non-Unix-likes * bff59aca162e [TargetLowering] Use HandleSDNodes to prevent nodes from being deleted by recursive calls in getNegatedExpression. * a123beacce40 [LoopVectorize] Fix VPRecipeBuilder::createEdgeMask to correctly generate the mask * f8b32989241c [clang-tidy] Deprecate readability-deleted-default check * 46a1b0655666 [AArch64] Legalize horizontal fmax/fmin reductions on f16 vectors * d24e102ba266 [OpenMP] Fixed a crash when offloading to x86_64 with target nowait * 52510d84802b [GlobalISel] Bail on G_PHI narrowing of odd types (PR48188) * 99350dcc3f5b [OpenMP] Fix clang-cl build error regarding TSX intrinsics * 4ed9f17e9390 [analyzer] Add 12.0.0 release notes * 9760b282ff03 [DAGCombiner][X86] Don't peek through ANDs on the shift amount in matchRotateSub when called from MatchFunnelPosNeg. * 344216979213 Revert "[c++20] Mark class type NTTPs as done and start defining the feature test macro." * f73ba0f3582b [SimplifyCFG] avoid illegal phi with both poison and undef * 692808e5af83 [InstCombine] avoid infinite loop in demanded bits for select * c637d4d136fd [OpenMP][NVPTX] Fixed a compilation error in deviceRTLs caused by unsupported feature in release verion of LLVM * 98f06b16a313 [AArch64][Docs] Release notes 12.x on outline atomics * e0e6b1e39e7e ReleaseNotes: add lld/ELF notes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 12.0.0 RC2Khem Raj2021-03-011-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 11.1.0Khem Raj2021-02-201-1/+1
| | | | | | | | | * 1fdec59bffc1 [lldb] Fix fallout caused by D89156 on 11.0.1 for MacOS * 85fcd4655947 workflows: Re-enable lldb test on Mac OS X * 17e842f3785f workflows: Update action branch names * e18e509bdb45 workflows: Add job to check for ABI changes in libclang.so and libclang-cpp.so Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Upgrade to 11.1.0-rc2Khem Raj2021-01-261-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.0.1 rc2Khem Raj2020-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* clang: Update to latest on 11.x releaseKhem Raj2020-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* clang: Update to latest on release/11.x branchKhem Raj2020-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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>