summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2018-12-10 09:55:10 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 14:24:04 -0700
commit073c3ad997b38e1183954709446ee52ea08a6614 (patch)
tree30c25a1d828af52354bcd9cf36558049316aa0da /mlir/lib/Transforms
parentc28aeef9019d0ec8a713eebde20b9fc7867ea030 (diff)
downloadbcm5719-llvm-073c3ad997b38e1183954709446ee52ea08a6614.tar.gz
bcm5719-llvm-073c3ad997b38e1183954709446ee52ea08a6614.zip
Properly namespace createLowerAffineApply
This was missing from the original commit. The implementation of createLowerAffineApply was defined in the default namespace but declared in the `mlir` namespace, which could lead to linking errors when it was used. Put the definition in `mlir` namespace. PiperOrigin-RevId: 224830894
Diffstat (limited to 'mlir/lib/Transforms')
-rw-r--r--mlir/lib/Transforms/LowerAffineApply.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LowerAffineApply.cpp b/mlir/lib/Transforms/LowerAffineApply.cpp
index 89a3ec9d869..0dc405132e1 100644
--- a/mlir/lib/Transforms/LowerAffineApply.cpp
+++ b/mlir/lib/Transforms/LowerAffineApply.cpp
@@ -76,4 +76,6 @@ static PassRegistration<LowerAffineApply>
pass("lower-affine-apply",
"Decompose affine_applies into primitive operations");
-FunctionPass *createLowerAffineApplyPass() { return new LowerAffineApply(); }
+FunctionPass *mlir::createLowerAffineApplyPass() {
+ return new LowerAffineApply();
+}
OpenPOWER on IntegriCloud