aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorShoreshen <372660931@qq.com>2025-07-29 10:10:06 +0800
committerGitHub <noreply@github.com>2025-07-29 10:10:06 +0800
commita5deb59dfef13cb5eb8e3defc7e94904ea132a34 (patch)
treef7de4ecc95bfbf8f4e76a7fd3c0ac3daaf995255 /llvm/lib/CodeGen/MachineOperand.cpp
parent28c2c1e06e2dc73df03cfc2d797fa70365d481f2 (diff)
downloadllvm-a5deb59dfef13cb5eb8e3defc7e94904ea132a34.zip
llvm-a5deb59dfef13cb5eb8e3defc7e94904ea132a34.tar.gz
llvm-a5deb59dfef13cb5eb8e3defc7e94904ea132a34.tar.bz2
[AMDGPU] Add NoaliasAddrSpace to AAMDnodes (#149247)
This is the following PR of https://github.com/llvm/llvm-project/pull/136553 which calculate NoaliasAddrSpace. This PR carries the info calculated into MIR by adding it into AAMDnodes
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOperand.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index 0d25169..c612f8de 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -1273,6 +1273,10 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
OS << ", !noalias ";
AAInfo.NoAlias->printAsOperand(OS, MST);
}
+ if (AAInfo.NoAliasAddrSpace) {
+ OS << ", !noalias.addrspace ";
+ AAInfo.NoAliasAddrSpace->printAsOperand(OS, MST);
+ }
if (getRanges()) {
OS << ", !range ";
getRanges()->printAsOperand(OS, MST);