[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 00:47:49 PDT 2025


================
@@ -956,6 +956,10 @@ void TargetLoweringBase::initActions() {
   // This one by default will call __clear_cache unless the target
   // wants something different.
   setOperationAction(ISD::CLEAR_CACHE, MVT::Other, LibCall);
+
+  // By default, STACKADDRESS nodes are expanded to STACKSAVE nodes.
----------------
nikic wrote:

```suggestion
  // By default, STACKADDRESS nodes are expanded like STACKSAVE nodes.
```
(We don't actually expand STACKADDRESS -> STACKSAVE, we just use the same legalization approach.)

https://github.com/llvm/llvm-project/pull/148281


More information about the llvm-commits mailing list