Claude/add qbe backend 011 cu uwa f gzns yx kitqra red#4
Open
tienex wants to merge 2 commits into
Open
Conversation
This commit adds a QBE (Quick Backend) IR backend to the Portable C Compiler. QBE is a small compiler backend that uses an SSA-based intermediate representation. Changes include: - Import QBE as a git submodule - Create arch/qbe/ with complete backend implementation: - macdefs.h: Type and register definitions for QBE's virtual registers - code.c: Code generation and QBE IR emission - local.c: Local type handling and transformations - local2.c: Register allocation (simplified for QBE) - table.c: Instruction selection table mapping PCC IR to QBE IR - order.c: Register ordering - Update configure.ac to recognize qbe target (qbe-local-linux) - Update os/linux/ccconfig.h to support QBE backend The QBE backend generates QBE IR output which can then be processed by the QBE compiler to produce machine code for various architectures. To use: ./configure --target=qbe-local-linux && make 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Ignore build artifacts, generated files, and temporary documentation files created during development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.