Ithemal: Accurate, Portable and Fast Basic Block Throughput Estimation using Deep Neural Networks