[PATCH] D112820: Emit hidden hostcall argument for sanitized kernels.

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 8 07:30:04 PST 2021


yaxunl added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:547
     addCompilerUsedGlobal(Var);
+    getModule().addModuleFlag(llvm::Module::Override, "amdgpu_hostcall", 1);
   }
----------------
need to check this in clang/test/CodeGenCUDA/amdgpu-asan.cu


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

https://reviews.llvm.org/D112820



More information about the llvm-commits mailing list