diff --git a/lib/Conversion/PolygeistToLLVM/PassDetails.h b/lib/Conversion/PolygeistToLLVM/PassDetails.h new file mode 100644 index 000000000000..3cdc2aa81fa7 --- /dev/null +++ b/lib/Conversion/PolygeistToLLVM/PassDetails.h @@ -0,0 +1,39 @@ +//===- PassDetails.h - polygeist pass class details ----------------*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// Stuff shared between the different polygeist passes. +// +//===----------------------------------------------------------------------===// + +// clang-tidy seems to expect the absolute path in the header guard on some +// systems, so just disable it. +// NOLINTNEXTLINE(llvm-header-guard) +#ifndef CONVERSION_POLYGEIST_PASSDETAILS_H +#define CONVERSION_POLYGEIST_PASSDETAILS_H + +#include "mlir/Pass/Pass.h" +#include "mlir/Dialect/Polygeist/IR/PolygeistOps.h" +#include "mlir/Dialect/Polygeist/Transforms/Passes.h" + +namespace mlir { +class FunctionOpInterface; +// Forward declaration from Dialect.h +template +void registerDialect(DialectRegistry ®istry); +namespace polygeist { + +class PolygeistDialect; + +#define GEN_PASS_CLASSES +#include "mlir/Dialect/Polygeist/Transforms/Passes.h.inc" + +} // namespace polygeist +} // namespace mlir + +#endif // DIALECT_POLYGEIST_TRANSFORMS_PASSDETAILS_H