compiler-explorer / compiler-explorer/compiler-explorer

[REQUEST] Enable Diff views base on compiler common features

Open
#1,772 0 comments 0 reactions 0 assignees View on GitHub
request
Dominant language
TypeScript
Stars
19.1k
Forks
2.1k
Avg merge
3d 15h
Merged PRs (30d)
67

Description

I wanted to compare the diffs are 2 abstract syntax trees but the diff viewer only supports diff viewers on the assembley and compiler/execution stdout/stderr

It would be nice if you are using 2 compiles that both support extra outputs to be able to diff against those. e.g. if you were using a clang based compiler for both compilations you could diff the optimization, ast or ir output. Likewise if you were using gcc based compilers you could compare the RTL dump.

For implementing this you'd need to check what what output style both compilers selected for a diff support, then populate the diff viewer dropdowns with the extra options

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.