[llvm] [IR] Add `dead_on_return` attribute (PR #143271)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 7 09:26:30 PDT 2025


================
@@ -78,6 +78,9 @@ class Argument final : public Value {
   /// Return true if this argument has the byval attribute.
   LLVM_ABI bool hasByValAttr() const;
 
+  /// Return true if this argument has the dead_on_return attribute.
+  bool hasDeadOnReturnAttr() const;
----------------
dtcxzyw wrote:

```suggestion
  LLVM_ABI bool hasDeadOnReturnAttr() const;
```

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


More information about the llvm-commits mailing list