Add TODO to revisit coupling of CallOp to MemRefType lowering

PiperOrigin-RevId: 271619132
This commit is contained in:
Nicolas Vasilache 2019-09-27 12:02:09 -07:00 committed by A. Unique TensorFlower
parent 74eabdd14e
commit bc4984e4f7
1 changed files with 3 additions and 0 deletions

View File

@ -716,6 +716,9 @@ struct CallOpInterfaceLowering : public LLVMLegalizationPattern<CallOpType> {
// Otherwise, it had been converted to an operation producing a structure.
// Extract individual results from the structure and return them as list.
// TODO(aminim, ntv, riverriddle, zinenko): this seems like patching around
// a particular interaction between MemRefType and CallOp lowering. Find a
// way to avoid special casing.
SmallVector<Value *, 4> results;
results.reserve(numResults);
for (unsigned i = 0; i < numResults; ++i) {