Core code of the BLAMda compiler.