Fix MLIR standalone example to properly handle namespace

ODS TableGen backend now requires to spell out which namespace they have
to be nested in, in an absolute way.
This commit is contained in:
Mehdi Amini 2020-09-14 21:02:33 +00:00
parent b552a30283
commit 1dac073bdd
4 changed files with 1 additions and 17 deletions

View File

@ -11,12 +11,6 @@
#include "mlir/IR/Dialect.h"
namespace mlir {
namespace standalone {
#include "Standalone/StandaloneOpsDialect.h.inc"
} // namespace standalone
} // namespace mlir
#endif // STANDALONE_STANDALONEDIALECT_H

View File

@ -23,7 +23,7 @@ def Standalone_Dialect : Dialect {
illustrate the basic setup required to develop MLIR-based tools without
working inside of the LLVM source tree.
}];
let cppNamespace = "standalone";
let cppNamespace = "::mlir::standalone";
}
//===----------------------------------------------------------------------===//

View File

@ -13,13 +13,7 @@
#include "mlir/IR/OpDefinition.h"
#include "mlir/Interfaces/SideEffectInterfaces.h"
namespace mlir {
namespace standalone {
#define GET_OP_CLASSES
#include "Standalone/StandaloneOps.h.inc"
} // namespace standalone
} // namespace mlir
#endif // STANDALONE_STANDALONEOPS_H

View File

@ -10,9 +10,5 @@
#include "Standalone/StandaloneDialect.h"
#include "mlir/IR/OpImplementation.h"
namespace mlir {
namespace standalone {
#define GET_OP_CLASSES
#include "Standalone/StandaloneOps.cpp.inc"
} // namespace standalone
} // namespace mlir