Erik Eckstein
90c71ad002
libswift: improve and simplify pass invocation
...
* unify FunctionPassContext and InstructionPassContext
* add a modification API: PassContext.setOperand
* automatic invalidation notifications when the SIL is modified
2021-08-23 10:21:12 +02:00
Erik Eckstein
b175436d07
libswift: add instructions, support block predecessors/successors
...
Add many new instruction classes in libswift, including all terminator instructions.
This allows to support BasicBlock predecessors and successors.
2021-07-01 16:15:44 +02:00
Erik Eckstein
9c363fb807
libswift: add an example SILPrinter pass.
...
SILPrinter prints the SIL of a function.
It's and example pass which demonstrates the basic SIL API of libswift.
2021-06-09 11:33:41 +02:00