
Assistant Professor @illinoisCS | PhD @MIT @MIT_CSAIL
- Tweets77
- Following183
- Followers787
- Likes203

ALT As modern hardware architectures evolve to support increasingly diverse, complex instruction sets for meeting the performance demands of modern workloads in image processing, deep learning, etc., it has become ever more crucial for compilers to provide robust support for evolution of their internal abstractions and retargetable code generation support to keep pace with emerging instruction sets. We propose Hydride, a novel approach to compiling for complex, emerging hardware architectures. Hydride uses vendor-defined pseudocode specifications of multiple hardware ISAs to automatically design retargetable instructions for AutoLLVM IR, an extensible compiler IR which consists of (formally defined) language-independent and target-independent LLVM IR instructions to compile to those ISAs, and automatically generated instruction selection passes to lower AutoLLVM IR to each of the specified hardware ISAs. Hydride also includes a code synthesizer that automatically generates code generation

ALT Hydride operates in two phases: an offline and an online phase. During the offline phase, Hydride Automatic IR Generator (Section 3) uses ISA pseudocode specifications provided by hardware vendors to automatically generate language-independent instructions for the LLVM compiler IR, along with their semantics, which we call the AutoLLVM IR. We define these new operations as LLVM intrinsic functions to avoid the need for changes to existing LLVM passes. During the online phase (i.e., at compilation time), Hydride’s Code Synthesizer (Section 4) uses syntax-guided synthesis to translate code for an input Halide program from the Halide front-end’s IR to AutoLLVM IR.

ALT Hydride parses ISA pseudocode in (a) to emit Hydride IR which is canonicalized using transformations such as loop rerolling, function inlining, etc. in (b). Hydride then extracts constants to produce code in (c) and inserts hole in (d) (hole defined in (e)) to synthesize the missing operation. After synthesis, %hole = add i32 %low.i, i32 0 ; where 0 is abstracted away before similarity checking.












