[llvm] [AMDGPU] Propagate alias information in AMDGPULowerKernelArguments. (PR #144714)
Sirish Pande via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 12:20:07 PDT 2025
================
@@ -363,6 +363,17 @@ LLVM_ABI void updateProfileCallee(
Function *Callee, int64_t EntryDelta,
const ValueMap<const Value *, WeakTrackingVH> *VMap = nullptr);
+/// Adds `!noalias` and `!alias.scope` metadata for `CB`'s called function's
+/// `noalias` argument based memory accesses.
+void addAliasScopeMetadata(CallBase &CB, ValueToValueMapTy &VMap,
+ const DataLayout &DL, AAResults *CalleeAAR,
+ ClonedCodeInfo &InlinedFunctionInfo,
+ bool UseNoAliasIntrinsic);
+
+/// Adds `!noalias` and `!alias.scope` metadata for `F`'s `noalias` argument
+/// based memory accesses.
+void addAliasScopeMetadata(Function &F);
+
----------------
srpande wrote:
I understand, but this is adding alias scope metadata, which is a part of scoped analysis. It's an attribute (adding a property) on the function, and unlike creating a function like inlining.
https://github.com/llvm/llvm-project/pull/144714
More information about the llvm-commits
mailing list