[all-commits] [llvm/llvm-project] 832aae: [asan] Implemented intrinsic for the custom callin...
kstoimenov via All-commits
all-commits at lists.llvm.org
Wed Aug 25 08:32:41 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 832aae738becbc0ec955144aeca6f4e2ac16e297
https://github.com/llvm/llvm-project/commit/832aae738becbc0ec955144aeca6f4e2ac16e297
Author: Kirill Stoimenov <kstoimenov at google.com>
Date: 2021-08-25 (Wed, 25 Aug 2021)
Changed paths:
M llvm/include/llvm/IR/Intrinsics.td
M llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h
M llvm/lib/Target/X86/X86AsmPrinter.cpp
M llvm/lib/Target/X86/X86AsmPrinter.h
M llvm/lib/Target/X86/X86InstrCompiler.td
M llvm/lib/Target/X86/X86MCInstLower.cpp
M llvm/lib/Target/X86/X86RegisterInfo.td
M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
A llvm/test/CodeGen/X86/asan-check-memaccess-add.ll
A llvm/test/CodeGen/X86/asan-check-memaccess-or.ll
Log Message:
-----------
[asan] Implemented intrinsic for the custom calling convention similar used by HWASan for X86.
The implementation uses the int_asan_check_memaccess intrinsic to instrument the code. The intrinsic is replaced by a call to a function which performs the access check. The generated function names encode the input register name as a number using Reg - X86::NoRegister formula.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D107850
More information about the All-commits
mailing list