The code is the runtime counterpart of the heterogeneous execution engine.
This patch is huge. It will be split to smaller individual patches. This version is on
phabricator as a reference of the current implementation.
https://drive.google.com/file/d/0B5GasMlWJhTOb2tXTDZsal9qclE/view?usp=sharing