[llvm] [AMDGPU] Utilities to asan instrument memory instructions. (PR #98863)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 01:21:53 PDT 2024


================
@@ -0,0 +1,282 @@
+#include "AMDGPUAsanInstrumentation.h"
+
+#define DEBUG_TYPE "amdgpu-asan-instrumentation"
+
+using namespace llvm;
+
+namespace llvm {
+namespace AMDGPU {
+
+const char kAMDGPUBallotName[] = "llvm.amdgcn.ballot.i64";
+const char kAMDGPUUnreachableName[] = "llvm.amdgcn.unreachable";
+const char kAMDGPULDSKernelId[] = "llvm.amdgcn.lds.kernel.id";
----------------
arsenm wrote:

These should also really just use getIntrinsic with the enum ID instead of hardcoding the string names 

https://github.com/llvm/llvm-project/pull/98863


More information about the llvm-commits mailing list