[PATCH] D107850: [asan] Implemented custom calling convention similar to the one used by HWASan for X86.
    Vitaly Buka via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Aug 19 11:07:00 PDT 2021
    
    
  
vitalybuka added inline comments.
================
Comment at: llvm/include/llvm/IR/Intrinsics.td:1640
 
+def int_asan_check_memaccess :
+  Intrinsic<[],[llvm_ptr_ty, llvm_i8_ty, llvm_i8_ty],
----------------
PTAL at lvm.read_register.i32
How about:
llvm.asan.check.memaccess ->
  lvm.asan.check_read
  lvm.asan.check_write
  lvm.asan.kernel.check_read
  lvm.asan.kernel.check_write
Even better
  lvm.asan.check_read.{i8, i16, i32, ...}
  lvm.asan.check_write.{i8, i16, i32, ...}
  lvm.asan.kernel.check_read.{i8, i16, i32, ...}
  lvm.asan.kernel.check_write.{i8, i16, i32, ...}
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107850/new/
https://reviews.llvm.org/D107850
    
    
More information about the cfe-commits
mailing list