[PATCH] D146438: [RISCV][MC] Refine MCInstrAnalysis based on registers used
Job Noorman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 01:29:13 PDT 2023
jobnoorman updated this revision to Diff 511321.
jobnoorman edited the summary of this revision.
jobnoorman added a comment.
Take outlined function calls/returns into account:
- isCall: true when RD!=X0 (this matches more than just outlined calls but it seems to make sense to treat any JAL/JALR that stores its return address as a call).
- isReturn: True when RS1 is X1 (normal returns) or X5 (returns from outlined functions).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146438/new/
https://reviews.llvm.org/D146438
Files:
llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp
llvm/unittests/Target/RISCV/CMakeLists.txt
llvm/unittests/Target/RISCV/MCInstrAnalysisTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146438.511321.patch
Type: text/x-patch
Size: 8278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230406/4484057a/attachment.bin>
More information about the llvm-commits
mailing list