[llvm] [Attributor] Propagate alignment through ptrmask (PR #150158)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 20:50:01 PDT 2025
================
@@ -5187,6 +5187,33 @@ struct AADereferenceableCallSiteReturned final
// ------------------------ Align Argument Attribute ------------------------
namespace {
+
+Align getAssumedAlignForIntrinsic(Attributor &A, AAAlign &QueryingAA,
----------------
shiltian wrote:
```suggestion
static Align getAssumedAlignForIntrinsic(Attributor &A, AAAlign &QueryingAA,
```
In fact, the latest code standard recommends using anonymous namespace as small as possible, and use `static` on internal functions instead, but that would be in a follow-up.
https://github.com/llvm/llvm-project/pull/150158
More information about the llvm-commits
mailing list