[clang] [llvm] Clang: convert `__m64` intrinsics to unconditionally use SSE2 instead of MMX. (PR #96540)

2024-06-24 Thread Phoebe Wang via cfe-commits
@@ -2502,10 +2509,25 @@ _mm_mulhi_pu16(__m64 __a, __m64 __b) ///A pointer to a 64-bit memory location that will receive the conditionally ///copied integer values. The address of the memory location does not have ///to be aligned. -static __inline__ void __DEFAULT_

[clang] [TBAA] Emit int TBAA metadata on FP math libcalls (PR #96025)

2024-06-24 Thread via cfe-commits
vfdff wrote: > It report error **Access tag metadata must have either 4 or 5 operands** with > CGM.getTBAATypeInfo(Context.IntTy) > > ``` > p MDHelper.createTBAAScalarTypeNode("int", RootMD) > <0xbe1f62a8> = !{!"int", <0xbddc68f8>, i64 0} -- return a Type > descriptors > p CGF.CGM.g

[clang] [compiler-rt] [llvm] [CMake] Use Clang to infer the target triple (PR #89425)

2024-06-24 Thread Petr Hosek via cfe-commits
@@ -142,7 +142,7 @@ if(WIN32 OR LLVM_WINSYSROOT) set(RUNTIMES_${target}_CMAKE_MODULE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "") endif() -foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;riscv64-unknown-linux-gnu;x86_64-

[clang] [compiler-rt] [llvm] [CMake] Use Clang to infer the target triple (PR #89425)

2024-06-24 Thread Petr Hosek via cfe-commits
@@ -28,6 +28,19 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) if (NOT LLVM_RUNTIMES_BUILD) load_llvm_config() endif() + if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE) petrhosek wrote: We support building `builtins` directly by runni

[clang] [compiler-rt] [llvm] [CMake] Use Clang to infer the target triple (PR #89425)

2024-06-24 Thread Petr Hosek via cfe-commits
@@ -28,6 +28,19 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) if (NOT LLVM_RUNTIMES_BUILD) load_llvm_config() endif() + if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE) +set(print_target_triple ${CMAKE_CXX_COMPILER} --target=${LLVM_RUNTIME_TRIPLE}

[clang] [clang][nullability] Improve modeling of `++`/`--` operators. (PR #96601)

2024-06-24 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/96601 We definitely know that these operations change the value of their operand, so clear out any value associated with it. We don't create a new value, instead leaving it to the analysis to do this if desired.

[clang] [clang][nullability] Improve modeling of `++`/`--` operators. (PR #96601)

2024-06-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes We definitely know that these operations change the value of their operand, so clear out any value associated with it. We don't create a new value, instead leaving it to the analysis to do this if desired. ---

[clang-tools-extra] 4c91b49 - [clangd] Fix the build broken (NFC)

2024-06-24 Thread Jie Fu via cfe-commits
Author: Jie Fu Date: 2024-06-25T14:51:57+08:00 New Revision: 4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01 URL: https://github.com/llvm/llvm-project/commit/4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01 DIFF: https://github.com/llvm/llvm-project/commit/4c91b49bab0728d4bc136aa33c4aeb4e8ea37d01.diff LOG: [

[clang] [clang-format] Add option to remove leading blank lines (PR #91221)

2024-06-24 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @sstwcw Please don't ignore the presubmit, it detected issue before merging: Some checks were not successful 2 skipped, 65 successful, 48 failing, and 3 pending checks https://github.com/llvm/llvm-project/pull/91221 ___ cfe-commits m

<    1   2   3   4   5   6