Antonio Frighetto
19dd1a34dd
OperatorPrecedenceResolutionPass: add segmentRef
2022-07-19 13:52:13 +02:00
Alvise de Faveri
2ffa537605
IRCanonicalization: Add Copy()
...
Use the `Copy` opcode to substitute load instructiobs.
2022-06-28 10:28:38 +02:00
Alvise de Faveri
fefe460ae4
Add parentheses logic for reference opcodes
2022-06-28 10:27:52 +02:00
Alvise de Faveri
6b258c83a1
IRCanonicalization: Fold ModelGEP(AddressOf())
...
- `FoldModelGEP` folds `ModelGEP(AddressOf())` into `ModelGEPRef`
- `RemoveRefDeref` remove `ModelGEPRef`s with no arguments
2022-06-28 10:26:50 +02:00
Alvise de Faveri
123a1777cd
IRCanonicalization: Add RemoveLoadStore pass
2022-06-28 10:25:49 +02:00
Antonio Frighetto
cd65fd1554
Introduce OperatorPrecedenceResolutionPass
...
A simple pass that maps LLVM IR instructions to C operators,
taking into account their precedence and associativity to
emit nice-looking parenthesized expressions.
2022-06-15 10:28:50 +02:00