RISE & Shine: Language-Oriented Compiler Design
Abstract
The trend towards specialization of software and hardware — fueled by the end of Moore’s law and the still accelerating interest in domain-specific computing, such as machine learning — forces us to radically rethink our compiler designs.I Introduction
II Background in IR and Compiler Design
III Shine: A Language-Oriented Compiler
IV Clearly Separating Optimizing from Code Generation
One main principle observed in the Shine compiler is the clear separation of IRs for optimizing and code generation.IV-A RISE expressions, types, and primitives
⬇
:= x | 0.0f | variables and literals
fun(x => ) | function abstraction
|> | () | function application
depFun(x: => ) | dependent fun. abstraction
() | () | () | dependent fun. application
map | reduce | reduceSeq | zip | … primitives