summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Analysis/AffineStructures.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2019-01-27 09:33:19 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 15:40:38 -0700
commitb42bea215ad8292e68436f68e15900b65f8c8e5e (patch)
tree95506329ddc177c4aa2a7d3e573c777b2fbfee0e /mlir/lib/Analysis/AffineStructures.cpp
parent36babbd7815519db5d26f55695fa3ec500997bcd (diff)
downloadbcm5719-llvm-b42bea215ad8292e68436f68e15900b65f8c8e5e.tar.gz
bcm5719-llvm-b42bea215ad8292e68436f68e15900b65f8c8e5e.zip
Change AffineApplyOp to produce a single result, simplifying the code that
works with it, and updating the g3docs. PiperOrigin-RevId: 231120927
Diffstat (limited to 'mlir/lib/Analysis/AffineStructures.cpp')
-rw-r--r--mlir/lib/Analysis/AffineStructures.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Analysis/AffineStructures.cpp b/mlir/lib/Analysis/AffineStructures.cpp
index 7aa23bbe480..2ea4091f82b 100644
--- a/mlir/lib/Analysis/AffineStructures.cpp
+++ b/mlir/lib/Analysis/AffineStructures.cpp
@@ -105,8 +105,7 @@ AffineValueMap::AffineValueMap(const AffineApplyOp &op)
: map(op.getAffineMap()) {
for (auto *operand : op.getOperands())
operands.push_back(const_cast<Value *>(operand));
- for (unsigned i = 0, e = op.getNumResults(); i < e; i++)
- results.push_back(const_cast<Value *>(op.getResult(i)));
+ results.push_back(const_cast<Value *>(op.getResult()));
}
AffineValueMap::AffineValueMap(AffineMap map, ArrayRef<Value *> operands)
OpenPOWER on IntegriCloud