Skip to content

[wip]decomp: llvm passes to improve ast generated from pcode#139

Draft
kumarak wants to merge 5 commits intomainfrom
ast_improvements
Draft

[wip]decomp: llvm passes to improve ast generated from pcode#139
kumarak wants to merge 5 commits intomainfrom
ast_improvements

Conversation

@kumarak
Copy link
Collaborator

@kumarak kumarak commented Feb 24, 2026

This PR introduces a structured AST normalization pipeline with a pass manager, improves deterministic basic-block ordering, and enhances temporary-variable handling.

Key updates include:

  • New multi-stage AST normalization pipeline (CFG extraction, structuring, cleanup, verification) integrated into the main consumer flow, with configurable goto elimination options.
  • Build system updates to integrate the new pipeline components.

@kumarak kumarak marked this pull request as draft February 24, 2026 20:37
@kumarak kumarak force-pushed the ast_improvements branch 3 times, most recently from 74070d5 to afbe7c8 Compare March 3, 2026 23:15
kumarak and others added 5 commits March 5, 2026 17:52
Update lib/patchestry/AST/OperationStmt.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update scripts/ghidra/util/PcodeSerializer.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…defined

decomp: passes to improve and more structured ast generation from pcode
@kumarak kumarak force-pushed the ast_improvements branch from 6fe46e3 to 24fba92 Compare March 5, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant