[PATCH] D79213: [hip] Add noalias on restrict qualified coerced hip pointers

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 17:11:15 PDT 2020


yaxunl added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.cpp:2267
+                               const ABIArgInfo &ArgI, const QualType &Ty) {
+  return LangOpts.HIP && isa<llvm::PointerType>(ArgI.getCoerceToType()) &&
+         ArgI.getCoerceToType()->getPointerAddressSpace() == 1 &&
----------------
let's also check LangOpts.CudaIsDevice


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79213





More information about the cfe-commits mailing list