[llvm] [feature][riscv] handle target address calculation in llvm-objdump disassembly for riscv (PR #144620)
Arjun Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 22:07:20 PDT 2025
================
@@ -234,6 +243,91 @@ class RISCVMCInstrAnalysis : public MCInstrAnalysis {
return false;
}
+ bool evaluateInstruction(const MCInst &Inst, uint64_t Addr, uint64_t Size,
----------------
arjunUpatel wrote:
I just merged `evaluateBranch` and `evaluateInstruction` in the latest commit. I chose to add a default `MCSubtargetInfo` parameter to `evaluateBranch` over threading the subtargetinfo via the parent `MCInstrAnalysis` class because I found that change quite invasive since most targets do not end up using the subtargetinfo during instruction analysis. All for learning about better ways of implementing this change.
https://github.com/llvm/llvm-project/pull/144620
More information about the llvm-commits
mailing list