Skip to content

Commit

Permalink
update website
Browse files Browse the repository at this point in the history
  • Loading branch information
chelini committed Jun 21, 2022
1 parent 1e27818 commit 7b7954e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Polygeist is composed of two pieces:
For more information on Polygeist, please see:

* The Polygeist [installation guide](/Installation/)
* Polygeist toy example [toy example](/getting_started/Use_Polygeist.md)
* Polygeist [toy example](/getting_started/Use_Polygeist.md)

## Citing Polygeist

Expand Down
16 changes: 15 additions & 1 deletion content/getting_started/Use_Polygeist.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 10
---

The following shows a simple example where we use Polygesit to enter the MLIR
lowering pipeline and raise the C code to the Affine dialect.
lowering pipeline from C code.

## Simple matrix multiplication

Expand Down Expand Up @@ -84,3 +84,17 @@ func.func @matmul(%arg0: memref<?x400xf32>, %arg1: memref<?x300xf32>,
}
}
```

Some other useful commands

* `-function=my_func` emits only `my_func`. If you are interested in printing all the functions, use `-function=*`. If you are working with C++, you need to use the mangled name.

* `-show-ast` print the AST that goes as input to Polygesit.

* `-immediate` print the IR right after AST traversal.

* `-S` emits assembly.

* `-emit-llvm` emits LLVM IR.

* `O0`, `O1`, `O2` and `O3` controls the optimization level.

0 comments on commit 7b7954e

Please sign in to comment.