Index: mlir/include/mlir/Dialect/StandardOps/IR/Ops.h =================================================================== --- mlir/include/mlir/Dialect/StandardOps/IR/Ops.h +++ 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. /// Index: mlir/include/mlir/Dialect/StandardOps/IR/Ops.td =================================================================== --- mlir/include/mlir/Dialect/StandardOps/IR/Ops.td +++ 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.