[TFUtils] Expose untyped accessor to evaluation result tensors
authorMircea Trofin <mtrofin@google.com>
Wed, 5 Aug 2020 17:22:45 +0000 (10:22 -0700)
committerMircea Trofin <mtrofin@google.com>
Wed, 5 Aug 2020 17:22:45 +0000 (10:22 -0700)
commitb18c41c66fd16bde1a0a80a94f03815bc58dcc5a
treeaf6ebd87c662ac968720a89e5c4ad9014ab4df3d
parentf425c0442c3ef137f2c4ab5eebd3d39036b09d70
[TFUtils] Expose untyped accessor to evaluation result tensors

These were implementation detail, but become necessary for generic data
copying.

Also added const variations to them, and move assignment, since we had a
move ctor (and the move assignment helps in a subsequent patch).

Differential Revision: https://reviews.llvm.org/D85262
llvm/include/llvm/Analysis/Utils/TFUtils.h
llvm/lib/Analysis/TFUtils.cpp
llvm/unittests/Analysis/TFUtilsTest.cpp