Skip to content

Commit

Permalink
fix small bugs on website
Browse files Browse the repository at this point in the history
  • Loading branch information
LysanderT committed Jun 5, 2024
1 parent 4a9b688 commit 18c4012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/tutorial/simple-transpiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int test(int base, int arg1, int base2, int arg2) {
}
```
We do this using the [script provided by Metalift](https://github.com/metalift/metalift/blob/main/tests/compile-add-blocks). The script generates both the LLVM bitcode (.ll) file, along with a file containing loop information (.loops, which is empty since our input code does not contain any loops).
We do this using the [script provided by Metalift](https://github.com/starptr/metalift/blob/oscar/main/tests/compile-add-blocks). The script generates both the LLVM bitcode (.ll) file, along with a file containing loop information (.loops, which is empty since our input code does not contain any loops).
We pass these file names to Metalift's `analyze` function, which returns a number of results. The most important is the last one, which contains [information about the code to be transpiled](https://github.com/metalift/metalift/blob/main/metalift/analysis.py#L185). The code info is then used to generate our grammar as described above.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/tutorial/transpiler-for-hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ The ```CodeInfo``` object consists of all the variables that are modified in the


## Transpiler flow
Once the target operators semantics and the search space description is defined, we can build the transpiler now. First, we need to compiler the source code to LLVM bytecode using the [script provided by Metalift].(https://github.com/starptr/metalift/blob/oscar/main/tests/compile-add-blocks). The script generates both the LLVM bitcode (.ll) file by calling the Clang compiler, along with a file containing loop information.
Once the target operators semantics and the search space description is defined, we can build the transpiler now. First, we need to compiler the source code to LLVM bytecode using the [script provided by Metalift](https://github.com/starptr/metalift/blob/oscar/main/tests/compile-add-blocks). The script generates both the LLVM bitcode (.ll) file by calling the Clang compiler, along with a file containing loop information.

<!--phmdoctest-mark.skip-->
```python
Expand Down

0 comments on commit 18c4012

Please sign in to comment.