Loop partitioning and Tensorization - Work on different IR levels

@yzhliu should be able to answer this.