forked from OSchip/llvm-project
Place generated StandardOps to SPIR-V patterns in anonymous namespace
This avoids polluting the mlir namespace. PiperOrigin-RevId: 258826497
This commit is contained in:
parent
8b447b6cad
commit
9291868960
|
@ -27,10 +27,6 @@
|
|||
#include "mlir/IR/StandardTypes.h"
|
||||
#include "mlir/StandardOps/Ops.h"
|
||||
|
||||
namespace mlir {
|
||||
#include "StdOpsToSPIRVConversion.cpp.inc"
|
||||
} // namespace mlir
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
namespace {
|
||||
|
@ -39,6 +35,8 @@ class StdOpsToSPIRVConversionPass
|
|||
: public FunctionPass<StdOpsToSPIRVConversionPass> {
|
||||
void runOnFunction() override;
|
||||
};
|
||||
|
||||
#include "StdOpsToSPIRVConversion.cpp.inc"
|
||||
} // namespace
|
||||
|
||||
void StdOpsToSPIRVConversionPass::runOnFunction() {
|
||||
|
|
Loading…
Reference in New Issue