[PATCH] D131343: [RISC-V][HWASAN] Add support for lowering HWASAN intrinsic for RISC-V

Alexey Baturo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 14:13:33 PDT 2022


smd added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp:451
+
+    // Intentionally load the GOT entry and branch to it, rather than possibly
+    // late binding the function, which may clobber the registers before we have
----------------
jrtc27 wrote:
> This is what STO_RISCV_VARIANT_CC is for
If you don't mind, I'd like address that in a separate patch, as I have to go through the discussion on this matter. Thanks


================
Comment at: llvm/test/CodeGen/RISCV/hwasan-check-memaccess.ll:1
+; RUN: llc -mtriple=riscv64 < %s | FileCheck %s
+
----------------
jrtc27 wrote:
> Use update_llc_test_checks.py. Also test PIC too if you have PIC-specific code.
Fixed, thanks


================
Comment at: llvm/test/CodeGen/RISCV/hwasan-check-memaccess.ll:3
+
+target triple = "riscv64-unknown-linux"
+
----------------
jrtc27 wrote:
> Redundant, you have -mtriple in the command line
Fixed, thanks


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131343/new/

https://reviews.llvm.org/D131343



More information about the llvm-commits mailing list