summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/Value.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-02-01 16:42:18 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:06:49 -0700
commit5052bd8582fbcfc0a4774c34141c2dd04b333613 (patch)
tree845641f175aee8c535a4d7deb43e5c854f07add4 /mlir/lib/IR/Value.cpp
parente0774c008fdcee1d4007ede4fde4cf7ad83cfda8 (diff)
downloadbcm5719-llvm-5052bd8582fbcfc0a4774c34141c2dd04b333613.tar.gz
bcm5719-llvm-5052bd8582fbcfc0a4774c34141c2dd04b333613.zip
Define the AffineForOp and replace ForInst with it. This patch is largely mechanical, i.e. changing usages of ForInst to OpPointer<AffineForOp>. An important difference is that upon construction an AffineForOp no longer automatically creates the body and induction variable. To generate the body/iv, 'createBody' can be called on an AffineForOp with no body.
PiperOrigin-RevId: 232060516
Diffstat (limited to 'mlir/lib/IR/Value.cpp')
-rw-r--r--mlir/lib/IR/Value.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/mlir/lib/IR/Value.cpp b/mlir/lib/IR/Value.cpp
index 7103eeb7389..a9c046dc7b1 100644
--- a/mlir/lib/IR/Value.cpp
+++ b/mlir/lib/IR/Value.cpp
@@ -64,8 +64,6 @@ MLIRContext *IROperandOwner::getContext() const {
switch (getKind()) {
case Kind::OperationInst:
return cast<OperationInst>(this)->getContext();
- case Kind::ForInst:
- return cast<ForInst>(this)->getContext();
}
}
OpenPOWER on IntegriCloud