[clang] [clang] Support constexpr alignment of __builtin_assume_aligned. (PR #127223)

2025-02-14 Thread Tang Jiajun via cfe-commits
tangjj11 wrote: > This is not the right fix. > > After we check the constant expression in Sema, we should create a > ConstantExpr containing the the evaluated value, so we don't need to > re-evaluate it later. thanks, I will close the PR. https://github.com/llvm/llvm-project/pull/127223 ___

[clang] [clang] Support constexpr alignment of __builtin_assume_aligned. (PR #127223)

2025-02-14 Thread Tang Jiajun via cfe-commits
https://github.com/tangjj11 closed https://github.com/llvm/llvm-project/pull/127223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support constexpr alignment of __builtin_assume_aligned. (PR #127223)

2025-02-14 Thread Tang Jiajun via cfe-commits
https://github.com/tangjj11 updated https://github.com/llvm/llvm-project/pull/127223 >From 5c83ee47a5927645ded9ec0af061ff21c094f008 Mon Sep 17 00:00:00 2001 From: Tang Jiajun <1220586...@qq.com> Date: Sat, 15 Feb 2025 00:35:34 +0800 Subject: [PATCH 1/3] Add test. --- clang/test/CodeGen/builtin

[clang] [clang] Support constexpr alignment of __builtin_assume_aligned. (PR #127223)

2025-02-14 Thread Tang Jiajun via cfe-commits
https://github.com/tangjj11 updated https://github.com/llvm/llvm-project/pull/127223 >From 5c83ee47a5927645ded9ec0af061ff21c094f008 Mon Sep 17 00:00:00 2001 From: Tang Jiajun <1220586...@qq.com> Date: Sat, 15 Feb 2025 00:35:34 +0800 Subject: [PATCH 1/3] Add test. --- clang/test/CodeGen/builtin

[clang] [clang] Support constexpr alignment of __builtin_assume_aligned. (PR #127223)

2025-02-14 Thread Tang Jiajun via cfe-commits
https://github.com/tangjj11 updated https://github.com/llvm/llvm-project/pull/127223 >From 5c83ee47a5927645ded9ec0af061ff21c094f008 Mon Sep 17 00:00:00 2001 From: Tang Jiajun <1220586...@qq.com> Date: Sat, 15 Feb 2025 00:35:34 +0800 Subject: [PATCH 1/3] Add test. --- clang/test/CodeGen/builtin

[clang] [clang] Support constexpr alignment of __builtin_assume_aligned. (PR #127223)

2025-02-14 Thread Tang Jiajun via cfe-commits
https://github.com/tangjj11 created https://github.com/llvm/llvm-project/pull/127223 None >From 5c83ee47a5927645ded9ec0af061ff21c094f008 Mon Sep 17 00:00:00 2001 From: Tang Jiajun <1220586...@qq.com> Date: Sat, 15 Feb 2025 00:35:34 +0800 Subject: [PATCH 1/2] Add test. --- clang/test/CodeGen/b