next up previous contents
Next: Writing a Module Up: The Basic SUIF Programming Previous: Using A Group Walker   Contents

Writing a Pass

In the SUIF compiler infrastructure, a programmer can construct his or her own compiler by putting together different modules. Shared libraries (also known as DLLs or dynamically linked libraries) consisting of one or more modules can be imported in the compiler environment dynamically There are two common kinds of modules: those that contain definitions of new IR nodes and those that contain new passes. The following discusses how to define a module, how to handle the command line interface, and finally discuss two important subclasses of modules for writing compiler passes, the Pass module and the PipelinablePass module.

SUIF Nightly Build