[PATCH] D131340: [RISC-V][HWASAN] Add intrinsics required for HWASAN support for RISC-V
Alexey Baturo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 28 08:05:53 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0636aec3305e: [RISC-V][HWASAN] Add intrinsics required for HWASAN support for RISC-V (authored by smd).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131340/new/
https://reviews.llvm.org/D131340
Files:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfo.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -1666,6 +1666,13 @@
// debugger if possible.
def : Pat<(debugtrap), (EBREAK)>;
+let Predicates = [IsRV64], Uses = [X5],
+ Defs = [X1, X6, X7, X28, X29, X30, X31] in
+def HWASAN_CHECK_MEMACCESS_SHORTGRANULES
+ : Pseudo<(outs), (ins GPRJALR:$ptr, i32imm:$accessinfo),
+ [(int_hwasan_check_memaccess_shortgranules X5, GPRJALR:$ptr,
+ (i32 timm:$accessinfo))]>;
+
/// Simple optimization
def : Pat<(add GPR:$rs1, (AddiPair:$rs2)),
(ADDI (ADDI GPR:$rs1, (AddiPairImmLarge AddiPair:$rs2)),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131340.456187.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220828/a6e3995f/attachment.bin>
More information about the llvm-commits
mailing list