jlebar accepted this revision. jlebar added a comment. This revision is now accepted and ready to land. Perhaps it's worth a comment on the Device class that Device objects should be passed by value, and are cheap to copy? https://reviews.llvm.org/D24537