TestDialect.cpp along with the ODS-generated files amounts to around 100k LoC and takes a significant amount of time to compile. Factor out the test ops related to testing the sytnax and assembly format, which are a relatively large and well delimited group, into a separate set of files. Also factor out dialect interfaces into a separate file. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D155947
27 lines
848 B
C++
27 lines
848 B
C++
//===- TestOpsSyntax.h - Operations for testing syntax ----------*- 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef MLIR_TEST_DIALECT_TEST_TESTOPSSYNTAX_H
|
|
#define MLIR_TEST_DIALECT_TEST_TESTOPSSYNTAX_H
|
|
|
|
#include "TestAttributes.h"
|
|
#include "TestTypes.h"
|
|
#include "mlir/Bytecode/BytecodeOpInterface.h"
|
|
#include "mlir/IR/OpDefinition.h"
|
|
#include "mlir/IR/OpImplementation.h"
|
|
#include "mlir/Interfaces/InferTypeOpInterface.h"
|
|
|
|
namespace test {
|
|
class TestReturnOp;
|
|
} // namespace test
|
|
|
|
#define GET_OP_CLASSES
|
|
#include "TestOpsSyntax.h.inc"
|
|
|
|
#endif // MLIR_TEST_DIALECT_TEST_TESTOPSSYNTAX_H
|