[clang] [CIR][ARM] Generic 32-bit ARM codegen and lowering support (PR #204360)
Akshay K via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 1 06:37:34 PDT 2026
================
@@ -0,0 +1,32 @@
+// 32-bit ARM uses a two-word array cookie { element_size, element_count }, so a
+// new[] allocation is two size_t words larger than the element data: the data
+// starts 8 bytes in, and delete[] recovers the allocation base 8 bytes before
+// the data. (The generic Itanium cookie is a single size_t.)
+//
+// RUN: %clang_cc1 -std=c++20 -triple arm-linux-gnueabihf -fclangir -emit-llvm %s -o %t.ll
----------------
kumarak wrote:
This has been moved to a separate PR and added checks for CIR output as well.
https://github.com/llvm/llvm-project/pull/204360
More information about the cfe-commits
mailing list