summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/MemRefDataFlowOpt.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-02-21 18:01:09 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:37:12 -0700
commit3e656599f1c1ab2d4b810ba054d59c99d5628b35 (patch)
treea6724518ab63f0b6f801d42c8b5da3f34408e698 /mlir/lib/Transforms/MemRefDataFlowOpt.cpp
parentc98a87cc06865640684c262e0f0470a21abc8c2b (diff)
downloadbcm5719-llvm-3e656599f1c1ab2d4b810ba054d59c99d5628b35.tar.gz
bcm5719-llvm-3e656599f1c1ab2d4b810ba054d59c99d5628b35.zip
Define a PassID class to use when defining a pass. This allows for the type used for the ID field to be self documenting. It also allows for the compiler to know the set alignment of the ID object, which is useful for storing pointer identifiers within llvm data structures.
PiperOrigin-RevId: 235107957
Diffstat (limited to 'mlir/lib/Transforms/MemRefDataFlowOpt.cpp')
-rw-r--r--mlir/lib/Transforms/MemRefDataFlowOpt.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/MemRefDataFlowOpt.cpp b/mlir/lib/Transforms/MemRefDataFlowOpt.cpp
index 68bce854222..0ba06fecae0 100644
--- a/mlir/lib/Transforms/MemRefDataFlowOpt.cpp
+++ b/mlir/lib/Transforms/MemRefDataFlowOpt.cpp
@@ -84,13 +84,11 @@ struct MemRefDataFlowOpt : public FunctionPass {
DominanceInfo *domInfo = nullptr;
PostDominanceInfo *postDomInfo = nullptr;
- static char passID;
+ constexpr static PassID passID = {};
};
} // end anonymous namespace
-char MemRefDataFlowOpt::passID = 0;
-
/// Creates a pass to perform optimizations relying on memref dataflow such as
/// store to load forwarding, elimination of dead stores, and dead allocs.
FunctionPass *mlir::createMemRefDataFlowOptPass() {
OpenPOWER on IntegriCloud