[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
Tue Aug 23 14:05:22 PDT 2022
smd updated this revision to Diff 454955.
smd added a comment.
Addressing comments
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
@@ -1675,6 +1675,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.454955.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/bc7c1482/attachment.bin>
More information about the llvm-commits
mailing list