diff --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.h b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.h --- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.h +++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.h @@ -41,12 +41,14 @@ /// with `b` at location `loc`. SmallVector getOrCreateRanges(OffsetSizeAndStrideOpInterface op, OpBuilder &b, Location loc); +} // namespace mlir #define GET_OP_CLASSES #include "mlir/Dialect/StandardOps/IR/Ops.h.inc" #include "mlir/Dialect/StandardOps/IR/OpsDialect.h.inc" +namespace mlir { /// This is a refinement of the "constant" op for the case where it is /// returning a float value of FloatType. /// diff --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td --- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td +++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td @@ -25,7 +25,7 @@ def StandardOps_Dialect : Dialect { let name = "std"; - let cppNamespace = ""; + let cppNamespace = "::mlir"; let hasConstantMaterializer = 1; // TODO: This dependency is needed to handle memref ops in the // canonicalize pass and should be resolved.