Skip to content

Sketch out documentation structure #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## LLVM backend for KORE
## LLVM Backend for KORE

For installation instructions, refer to [INSTALL.md](INSTALL.md).
This project implements a fast concrete rewriting engine for KORE, the internal
representation of the [K Framework][K], along with a set of related tools and
utilities. Direct usage of this repository is intended for advanced K users and
core developers; most use cases are supported by the user-facing K tools.

Internal documentation for core developers and advanced K users can be found in
the [`docs/`](docs) directory.

For developer setup instructions, refer to [INSTALL.md](INSTALL.md).

[K]: https://github.com/runtimeverification/k
95 changes: 95 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# LLVM Backend

## Technical Documentation

* Documentation for all the major components of the backend

### Overview

* Summary of project
* Diagram showing components

### KORE

* High level summary
* Language specification inc. syntax
* Parsing
* [Binary format](binary_kore.md)

### Pattern Matching

* [Existing documentation](../matching/README.md)
* Paper
* Decision tree structure
* Parsing / serializing tree

### Runtime Term Representation

* Blocks / tags / headers
* Hooked / native type representations

### Code Generation and Rewriting

* Emitted functions / lookup tables
* Printing & serialization / visitors
* Rewriting / rule application

### Garbage Collection

* Arenas
* Allocation / collection
* Static terms

### Runtime Library

* Hooks
* Generated vs. LLVM
* Main, search etc.

### Bindings

* C
* Python

### Debugging Support

* GDB script

### Interface

* Scripts installed
* KORE tools
* Ordinal lookups

## Developer Guide

* How do we work on the backend?
* Tools, environment, best practice etc.

### Environment Setup

* [Dependencies](../INSTALL.md)
* Submodules

### Style and Code Checks

* Shellcheck
* Clang format
* IWYU
* Style guides?

### Testing

* Adding tests
* `lit`, `FileCheck` etc.
* Path assumptions

### Using the Backend

* Building a semantics that uses the backend directly
* Embedding / library mode
* Advantages / disadvantages

### Nix

* Differences to traditional setup