[DynInst_API:] [dyninst/dyninst] 259fa9: Extract, refactor aarch64 codegen emitter classes ...


Date: Sun, 31 May 2026 19:21:57 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 259fa9: Extract, refactor aarch64 codegen emitter classes ...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 259fa96a3e6fe66df0d8fff815a85e5240f96626
      https://github.com/dyninst/dyninst/commit/259fa96a3e6fe66df0d8fff815a85e5240f96626
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2026-06-01 (Mon, 01 Jun 2026)

  Changed paths:
    M dyninstAPI/CMakeLists.txt
    M dyninstAPI/src/ASTs/ast_helpers.h
    M dyninstAPI/src/Relocation/Widgets/CFWidget-aarch64.C
    M dyninstAPI/src/Relocation/Widgets/PCWidget-aarch64.C
    M dyninstAPI/src/codegen-aarch64.C
    M dyninstAPI/src/codegen/CMakeLists.txt
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64.C
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64.h
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64Dyn.h
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64RestoreRegs.C
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64RestoreRegs.h
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64SaveRegs.C
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64SaveRegs.h
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64Stat.C
    A dyninstAPI/src/codegen/emitters/aarch64/EmitterAarch64Stat.h
    A dyninstAPI/src/codegen/emitters/aarch64/generators.C
    A dyninstAPI/src/codegen/emitters/aarch64/generators.h
    R dyninstAPI/src/emit-aarch64.C
    R dyninstAPI/src/emit-aarch64.h
    M dyninstAPI/src/inst-aarch64.C
    M dyninstAPI/src/inst-aarch64.h
    M dyninstAPI/src/registerSpace/registerSpace.C
    M dyninstAPI/src/trampolines/baseTramp-aarch64.C

  Log Message:
  -----------
  Extract, refactor aarch64 codegen emitter classes (#2259)

* Extract, rename EmitterAarch64

* Extract, rename EmitterAarch64Dyn

Since emitTOCCommon just asserts, I removed the implementations here
and just let the default one in Emitter do the assert.

* Extract, rename EmitterAaarch64Stat

emitTOCCall, emitTOCJump, emitCallInstruction, emitCallReplacement,
emitPLTCommon, and emitTOCCommon were removed since they all just
assert. The default implementations in Emitter do the same, so
there's no need to duplicate them here.

* Extract, rename EmitterAarch64RestoreRegs

Also removes unused 'tearFrame'

* Extract, rename EmitterAarch64SaveRegs

Also removes unused 'createFrame'.

* Extract push/popStack

* Remove unused cleanUpAndExit, MovePCToReg

* Clean up inst-aarch.C

* Remove emit-aarch64.h

It's no longer needed.



To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 259fa9: Extract, refactor aarch64 codegen emitter classes ..., Tim Haines <=