[PATCH] D138008: [LoongArch] Diagnose the behavior of reading and writing registers that do not conform to the hardware register size

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 15 01:06:42 PST 2022


gonglingqin created this revision.
gonglingqin added reviewers: xen0n, xry111, SixWeining, wangleiat, MaskRay.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
gonglingqin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When reading or writing a register that does not conform to the size of a
hardware register, an error message is generated instead of a compiler crash.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138008

Files:
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.h
  llvm/test/CodeGen/LoongArch/get-reg-error-la32.ll
  llvm/test/CodeGen/LoongArch/get-reg-error-la64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138008.475365.patch
Type: text/x-patch
Size: 4819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221115/51ce2185/attachment.bin>


More information about the llvm-commits mailing list