[PATCH] D157451: [AMDGPU] Emit .actual_access metadata

Changpeng Fang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 17:55:53 PDT 2023


cfang added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll:12
 ; CHECK-NEXT:   AddrSpaceQual:   Global
-; CHECK-NEXT:   AccQual:         ReadOnly
+; CHECK-NEXT:   AccQual:         Default
 ; CHECK-NEXT:   IsConst:         true
----------------
arsenm wrote:
> Seems like the mirror write only deduction test is missing
We currently only emit read_only for .actual_access.  Do you know what are the exact
conditions to emit "write_only" or "read_write"?  Thanks.

  if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() &&
      Arg.hasNoAliasAttr()) {
    ActAccQual = "read_only";
  }


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157451/new/

https://reviews.llvm.org/D157451



More information about the llvm-commits mailing list