[llvm] [AMDGPU] Update instrumentAddress method to support aligned size and unusual size accesses. (PR #104804)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 08:47:05 PDT 2024


================
@@ -179,6 +181,46 @@ void instrumentAddress(Module &M, IRBuilder<> &IRB, Instruction *OrigIns,
   return;
 }
 
+void instrumentAddress(Module &M, IRBuilder<> &IRB, Instruction *OrigIns,
+                       Instruction *InsertBefore, Value *Addr,
+                       MaybeAlign Alignment, TypeSize TypeStoreSize,
----------------
arsenm wrote:

There's no such thing as no alignment, do not use MaybeAlign (we really should just get rid of it)

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


More information about the llvm-commits mailing list