[clang] [llvm] [Inliner] Propagate more attributes to params when inlining (PR #91101)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 12 11:32:19 PDT 2024
================
@@ -787,6 +787,11 @@ class AttributeList {
[[nodiscard]] AttributeList addRangeRetAttr(LLVMContext &C,
const ConstantRange &CR) const;
+ /// Add the range attribute to the attribute set at the given arg index.
+ /// Returns a new list because attribute lists are immutable.
+ [[nodiscard]] AttributeList addRangeParamAttr(LLVMContext &C, unsigned Index,
----------------
nikic wrote:
```suggestion
[[nodiscard]] AttributeList addRangeParamAttr(LLVMContext &C, unsigned ArgNo,
```
https://github.com/llvm/llvm-project/pull/91101
More information about the cfe-commits
mailing list