mirror of https://github.com/exaloop/codon.git
Update names in docs
parent
bf8db7f693
commit
fc70c830d0
|
@ -100,7 +100,7 @@ In other words, a simple form of constant folding that only looks at addition on
|
|||
The resulting pass would like this:
|
||||
|
||||
``` cpp
|
||||
#include "codon/sir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
|
||||
using namespace codon::ir;
|
||||
|
||||
|
@ -206,7 +206,7 @@ Assume we want our pass to insert a call to `validate()` after each assignment t
|
|||
and the argument passed to `foo()`. We would do something like the following:
|
||||
|
||||
``` cpp
|
||||
#include "codon/sir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
|
||||
using namespace codon::ir;
|
||||
|
||||
|
@ -267,8 +267,8 @@ would subclass `CustomType`. Let's look at an example where we extend CIR to add
|
|||
``` cpp
|
||||
using namespace codon::ir;
|
||||
|
||||
#include "codon/sir/dsl/nodes.h"
|
||||
#include "codon/sir/llvm/llvisitor.h"
|
||||
#include "codon/cir/dsl/nodes.h"
|
||||
#include "codon/cir/llvm/llvisitor.h"
|
||||
|
||||
class Builder : public dsl::codegen::TypeBuilder {
|
||||
public:
|
||||
|
|
|
@ -121,9 +121,9 @@ to help provide a sense of where to look first:
|
|||
- [`codon/`](https://github.com/exaloop/codon/tree/develop/codon): compiler code
|
||||
- [`codon/parser/`](https://github.com/exaloop/codon/tree/develop/codon/parser):
|
||||
parser and type checker code: this is the first step of compilation
|
||||
- [`codon/sir/`](https://github.com/exaloop/codon/tree/develop/codon/sir):
|
||||
- [`codon/cir/`](https://github.com/exaloop/codon/tree/develop/codon/cir):
|
||||
Codon IR and optimizations: the second step of compilation
|
||||
- [`codon/sir/llvm/`](https://github.com/exaloop/codon/tree/develop/codon/sir/llvm):
|
||||
- [`codon/cir/llvm/`](https://github.com/exaloop/codon/tree/develop/codon/cir/llvm):
|
||||
conversion from Codon IR to LLVM IR and machine code: the last step of compilation
|
||||
- [`codon/runtime/`](https://github.com/exaloop/codon/tree/develop/codon/runtime):
|
||||
runtime library: used during execution
|
||||
|
|
Loading…
Reference in New Issue