Continue to work outlined in D155747 and split the main SPIR-V ops implementation file into a few smaller and quicker to compile files. Move control flow and memory ops to their own implementation files. Create new `.cpp` files for tablegened code. After this change, the `SPIRVOps.cpp` is 2k LoC-long and takes a reasonable amount of time to compile. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D155883
23 lines
907 B
C++
23 lines
907 B
C++
//===- SPIRVOpAvailability.cpp - MLIR SPIR-V Availability Implementation --===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Defines the SPIR-V operation availability in the SPIR-V dialect.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
|
|
|
|
// TableGen'erated operation interfaces for querying versions, extensions, and
|
|
// capabilities.
|
|
#include "mlir/Dialect/SPIRV/IR/SPIRVAvailability.cpp.inc"
|
|
|
|
namespace mlir::spirv {
|
|
// TableGen'erated operation availability interface implementations.
|
|
#include "mlir/Dialect/SPIRV/IR/SPIRVOpAvailabilityImpl.inc"
|
|
} // namespace mlir::spirv
|