[llvm] [feature][riscv] handle target address calculation in llvm-objdump disassembly for riscv (PR #109914)
Arjun Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 11:08:10 PST 2024
================
@@ -181,6 +181,12 @@ class MCInstrAnalysis {
evaluateBranch(const MCInst &Inst, uint64_t Addr, uint64_t Size,
uint64_t &Target) const;
+ /// Given an instruction that accesses a menory address, try to compute
+ /// the target address. Return true success, and the address in Target.
+ virtual bool
+ evaluateInstruction(const MCInst &Inst, uint64_t Addr, uint64_t Size,
+ uint64_t &Target, int ArchRegWidth) const;
----------------
arjunUpatel wrote:
Makes sense. On it :saluting_face:
https://github.com/llvm/llvm-project/pull/109914
More information about the llvm-commits
mailing list