[DynInst_API:] [dyninst/dyninst] 502f73: initial compilable commit


Date: Wed, 16 Oct 2024 14:40:51 -0700
From: Ronak Chauhan <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 502f73: initial compilable commit
  Branch: refs/heads/ronak/amdgpu-va-rebase
  Home:   https://github.com/dyninst/dyninst
  Commit: 502f73ff9811a04a8d3fc66139d98b2c834632a4
      https://github.com/dyninst/dyninst/commit/502f73ff9811a04a8d3fc66139d98b2c834632a4
  Author: wuxx1279 <bbiiggppiigg@xxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M cmake/DyninstCapArchDef.cmake
    M cmake/DyninstPlatform.cmake
    M common/CMakeLists.txt
    A common/src/arch-amdgpu.C
    A common/src/arch-amdgpu.h
    M common/src/arch.h
    M dataflowAPI/src/ABI.C
    A dataflowAPI/src/amdgpu_gfx908_machRegIndex.h
    A dataflowAPI/src/amdgpu_gfx90a_machRegIndex.h
    A dataflowAPI/src/amdgpu_gfx940_machRegIndex.h
    M dyninstAPI/CMakeLists.txt
    M dyninstAPI/src/BPatch_snippet.C
    A dyninstAPI/src/RegisterConversion-amdgpu.C
    A dyninstAPI/src/Relocation/Widgets/CFWidget-amdgpu.C
    M dyninstAPI/src/Relocation/Widgets/CFWidget.h
    A dyninstAPI/src/Relocation/Widgets/PCWidget-amdgpu.C
    M dyninstAPI/src/Relocation/Widgets/StackModWidget.C
    M dyninstAPI/src/arch-forward-decl.h
    M dyninstAPI/src/ast.C
    M dyninstAPI/src/binaryEdit.C
    A dyninstAPI/src/codegen-amdgpu.C
    A dyninstAPI/src/codegen-amdgpu.h
    M dyninstAPI/src/codegen.h
    A dyninstAPI/src/emit-amdgpu.C
    A dyninstAPI/src/emit-amdgpu.h
    M dyninstAPI/src/function.h
    A dyninstAPI/src/inst-amdgpu.C
    A dyninstAPI/src/inst-amdgpu.h
    M dyninstAPI/src/legacy-instruction.h
    A dyninstAPI/src/linux-amdgpu.C
    A dyninstAPI/src/linux-amdgpu.h
    M dyninstAPI/src/linux.h
    M dyninstAPI/src/mapped_object.C
    A dyninstAPI/src/parse-amdgpu.C
    M dyninstAPI/src/parse-cfg.h
    M dyninstAPI/src/registerSpace.C
    M dyninstAPI/src/registerSpace.h
    A dyninstAPI/src/stackwalk-amdgpu.C
    M dyninstAPI_RT/CMakeLists.txt
    M dyninstAPI_RT/src/RTlinux.c
    A dyninstAPI_RT/src/RTthread-amdgpu.c
    M parseAPI/src/Parser-speculative.C
    M proccontrol/CMakeLists.txt
    A proccontrol/src/amdgpu_process.C
    A proccontrol/src/amdgpu_process.h
    M proccontrol/src/linux.C
    M proccontrol/src/linux.h
    M stackwalk/CMakeLists.txt
    A stackwalk/src/amdgpu-swk.C
    A stackwalk/src/amdgpu-swk.h
    M stackwalk/src/dbginfo-stepper.C
    M stackwalk/src/framestepper.C
    A stackwalk/src/linux-amdgpu-swk.C
    M stackwalk/src/linux-x86-swk.C
    M symtabAPI/CMakeLists.txt
    A symtabAPI/src/emitElfStatic-amdgpu.C
    A symtabAPI/src/relocationEntry-elf-amdgpu.C

  Log Message:
  -----------
  initial compilable commit


  Commit: 95d5178f12d18d385c694fd08e9c1db800819890
      https://github.com/dyninst/dyninst/commit/95d5178f12d18d385c694fd08e9c1db800819890
  Author: Ronak Chauhan <rchauhan9@xxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/emitter.h

  Log Message:
  -----------
  Add additional interfaces to the Emitter


  Commit: 65b1fa2a5d638d683944fe82ce171b6d300bfaf2
      https://github.com/dyninst/dyninst/commit/65b1fa2a5d638d683944fe82ce171b6d300bfaf2
  Author: Ronak Chauhan <rchauhan9@xxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/CMakeLists.txt
    M dyninstAPI/src/Relocation/Widgets/PCWidget-amdgpu.C
    A dyninstAPI/src/amdgpu-vega-details.cpp
    A dyninstAPI/src/amdgpu-vega-details.h
    M dyninstAPI/src/codegen.h
    M dyninstAPI/src/emit-amdgpu.C
    M dyninstAPI/src/emit-amdgpu.h
    M dyninstAPI/src/inst-amdgpu.C
    M proccontrol/src/amdgpu_process.C

  Log Message:
  -----------
  Get dyninst to build with the AMDGPU Vega emitter


  Commit: b726bfe26b1546db9d9b4afbe0b99367c2ee70d7
      https://github.com/dyninst/dyninst/commit/b726bfe26b1546db9d9b4afbe0b99367c2ee70d7
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/amdgpu-vega-details.cpp

  Log Message:
  -----------
  [AMDGPU] Use hex literals instead of binary literals


  Commit: 5fb86718c611da0c0fe4db570d7fee711e477a43
      https://github.com/dyninst/dyninst/commit/5fb86718c611da0c0fe4db570d7fee711e477a43
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/RegisterConversion-amdgpu.C
    M dyninstAPI/src/inst-amdgpu.C
    M dyninstAPI/src/registerSpace.C
    M dyninstAPI/src/registerSpace.h

  Log Message:
  -----------
  [AMDGPU] Add register conversion for gfx908

Next : look into dataflowAPI and ABI


  Commit: 0b568435c31ece2d924886774e6659aa09f0ac0e
      https://github.com/dyninst/dyninst/commit/0b568435c31ece2d924886774e6659aa09f0ac0e
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dataflowAPI/src/ABI.C
    M dyninstAPI/src/registerSpace.C

  Log Message:
  -----------
  Try to fill in some ABI and liveness related gaps


  Commit: 1a96c0082a1b4746e3a981fc3d51d7c945faab96
      https://github.com/dyninst/dyninst/commit/1a96c0082a1b4746e3a981fc3d51d7c945faab96
  Author: wuxx1279 <bbiiggppiigg@xxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dataflowAPI/src/amdgpu_gfx908_machRegIndex.h
    M dyninstAPI/src/codegen.C
    M dyninstAPI/src/registerSpace.C
    M dyninstAPI/src/registerSpace.h

  Log Message:
  -----------
  Fixes to let insertSnippet Example Work

This commit contains of the following patch to make the insert
snippet example works. It is not intended to be merged, and all
these "hacks" should be looked at carefully and changed to a
correct implementation.

1. Add additional registers in the liveness register map in dataflowAPI
2. Add additional register encoding types in registerSpace
3. Add definedRegs tracking for arch_amdgpu


  Commit: b5b4f376942729b83a88ff24d732d6c5877ae48a
      https://github.com/dyninst/dyninst/commit/b5b4f376942729b83a88ff24d732d6c5877ae48a
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/CMakeLists.txt

  Log Message:
  -----------
  [AMDGPU] Remove duplicate CMake config


  Commit: d508234f36f3eb92d718c749ed8d5eb7c066c8ea
      https://github.com/dyninst/dyninst/commit/d508234f36f3eb92d718c749ed8d5eb7c066c8ea
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/CMakeLists.txt

  Log Message:
  -----------
  [AMDGPU] Compile amdgpu-vega-details.cpp only when building Dyninst for AMDGPU


  Commit: d216773b6a940fc3ef599bb3894d6f98fabfebfa
      https://github.com/dyninst/dyninst/commit/d216773b6a940fc3ef599bb3894d6f98fabfebfa
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/CMakeLists.txt
    A dyninstAPI/src/ast-amdgpu.C

  Log Message:
  -----------
  [AMDGPU] Have separate implementation of AST interfaces for AMDGPU


  Commit: 3136b53e05ef763c6919229a6f795bef1113d4b5
      https://github.com/dyninst/dyninst/commit/3136b53e05ef763c6919229a6f795bef1113d4b5
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/ast-amdgpu.C

  Log Message:
  -----------
  [AMDGPU][AST-Lower] Remove some code not relevant to AMDGPU


  Commit: f3c58934e04ee46c8ec2660eb1de190d658609d3
      https://github.com/dyninst/dyninst/commit/f3c58934e04ee46c8ec2660eb1de190d658609d3
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/ast-amdgpu.C

  Log Message:
  -----------
  [AMDGPU] Emit short jump for branchOp in AstOperatorNode


  Commit: 53f75dbeb8a8219ef05235db4078e4dd60ab86a6
      https://github.com/dyninst/dyninst/commit/53f75dbeb8a8219ef05235db4078e4dd60ab86a6
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/registerSpace.C

  Log Message:
  -----------
  Remove print statements from checkLive


  Commit: 54d3bbc76244823d092fa2a03c2b31829176d4eb
      https://github.com/dyninst/dyninst/commit/54d3bbc76244823d092fa2a03c2b31829176d4eb
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/ast-amdgpu.C
    M dyninstAPI/src/emit-amdgpu.C
    M dyninstAPI/src/emit-amdgpu.h
    M dyninstAPI/src/emitter.h

  Log Message:
  -----------
  [Emitter] Add emitOpImmSimple interface for immedate operations

The existing emitOpImm takes two opcodes, and we don't want to mess with
any existing code.


  Commit: bd1122cfcd0052abf4d30a96e22edfc90d4bf7ac
      https://github.com/dyninst/dyninst/commit/bd1122cfcd0052abf4d30a96e22edfc90d4bf7ac
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/ast-amdgpu.C

  Log Message:
  -----------
  [AMDGPU] [WIP] Generate code for binary operations

1. Liveness and register re-allocation seem to be broken
2. reg-to-reg binary operations generate correct instruction, but modify
  a live register
3. imm-to-reg binary operations segfault and require fixing.


  Commit: 585ece714b96e77556982daabfc8b0dd58d117b8
      https://github.com/dyninst/dyninst/commit/585ece714b96e77556982daabfc8b0dd58d117b8
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/ast-amdgpu.C

  Log Message:
  -----------
  Revert "[AMDGPU] [WIP] Generate code for binary operations"

This reverts commit 1c6f674843025282e672d853e895cc6c1cd404f7.


  Commit: 107b4f79494d10cdce878a048bbae2d62d6a0038
      https://github.com/dyninst/dyninst/commit/107b4f79494d10cdce878a048bbae2d62d6a0038
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/ast-amdgpu.C

  Log Message:
  -----------
  [AMDGPU] Generate SALU instructions for binary operations


  Commit: e622221fbbd7a5b9c487c82dd6bbe5c8f0be16f3
      https://github.com/dyninst/dyninst/commit/e622221fbbd7a5b9c487c82dd6bbe5c8f0be16f3
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/amdgpu-vega-details.cpp

  Log Message:
  -----------
  [AMDGPU] Fix emitting SMEM instructions


  Commit: f45b9f3403b070e1f8a73e22e9b10d3b92dc9161
      https://github.com/dyninst/dyninst/commit/f45b9f3403b070e1f8a73e22e9b10d3b92dc9161
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M dyninstAPI/src/BPatch_addressSpace.C
    M dyninstAPI/src/BPatch_snippet.C
    M dyninstAPI/src/ast-amdgpu.C
    M dyninstAPI/src/ast.h

  Log Message:
  -----------
  [AMDGPU][CodeGen] Add variable allocation skeleton


  Commit: 013476e10ec8a419ab0c60147e4036e01ccd2799
      https://github.com/dyninst/dyninst/commit/013476e10ec8a419ab0c60147e4036e01ccd2799
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M common/src/arch-amdgpu.h
    M symtabAPI/src/relocationEntry-elf-amdgpu.C

  Log Message:
  -----------
  Use DYNINST_EXPORT macro


  Commit: 03a21540f67e4e0331add6adfb28af6dcb9f5936
      https://github.com/dyninst/dyninst/commit/03a21540f67e4e0331add6adfb28af6dcb9f5936
  Author: Ronak Chauhan <ronak@xxxxxxxxxxx>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M cmake/DyninstOptions.cmake
    M cmake/DyninstPlatform.cmake

  Log Message:
  -----------
  [AMDGPU] Add CMake option for AMDGPU build of Dyninst


Compare: https://github.com/dyninst/dyninst/compare/9c716f717fe6...03a21540f67e

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] 502f73: initial compilable commit, Ronak Chauhan <=