[PATCH] D99071: [ASAN][AMDGPU] Add support for accesses to global and constant addrspaces

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 10:31:45 PDT 2022


nickdesaulniers added a comment.

In D99071#3652570 <https://reviews.llvm.org/D99071#3652570>, @pvellien wrote:

> In D99071#3652434 <https://reviews.llvm.org/D99071#3652434>, @nickdesaulniers wrote:
>
>> Are declarations for `@llvm.amdgcn.is.shared` supposed to be showing up in my IR, even when my target triple is _not_ amdgcn-amd?
>
> @nickdesaulniers thanks for letting us know about this, I would like to understand more about this. Is it possible for you to share a simple test case (along with which target) and build script to me so that I can reproduce it on my end.

$ cd llvm-project
$ clang -cc1 -internal-isystem llvm/build/lib/clang/15.0.0/include -nostdsysteminc -std=gnu2x -triple x86_64-linux-gnu clang/test/CodeGen/attr-function-return.c -emit-llvm -o - -mfunction-return=thunk-extern -fsanitize=address


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99071



More information about the llvm-commits mailing list