NFC: Remove unnecessarily guarded tablegen includes.
authorRiver Riddle <riverriddle@google.com>
Sat, 23 Nov 2019 01:51:23 +0000 (17:51 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Sat, 23 Nov 2019 02:01:57 +0000 (18:01 -0800)
Support for including a file multiple times was added in tablegen, removing the need for these extra guards. This is because we already insert c/c++ style header guards within each of the specific .td files.

PiperOrigin-RevId: 282076728

45 files changed:
mlir/examples/toy/Ch2/include/toy/Ops.td
mlir/examples/toy/Ch3/include/toy/Ops.td
mlir/examples/toy/Ch3/mlir/ToyCombine.td
mlir/examples/toy/Ch4/include/toy/Ops.td
mlir/examples/toy/Ch4/include/toy/ShapeInferenceInterface.td
mlir/examples/toy/Ch4/mlir/ToyCombine.td
mlir/examples/toy/Ch5/include/toy/Ops.td
mlir/examples/toy/Ch5/include/toy/ShapeInferenceInterface.td
mlir/examples/toy/Ch5/mlir/ToyCombine.td
mlir/examples/toy/Ch6/include/toy/Ops.td
mlir/examples/toy/Ch6/include/toy/ShapeInferenceInterface.td
mlir/examples/toy/Ch6/mlir/ToyCombine.td
mlir/examples/toy/Ch7/include/toy/Ops.td
mlir/examples/toy/Ch7/include/toy/ShapeInferenceInterface.td
mlir/examples/toy/Ch7/mlir/ToyCombine.td
mlir/include/mlir/Analysis/CallInterfaces.td
mlir/include/mlir/Analysis/InferTypeOpInterface.td
mlir/include/mlir/Dialect/AffineOps/AffineOps.td
mlir/include/mlir/Dialect/AffineOps/AffineOpsBase.td
mlir/include/mlir/Dialect/FxpMathOps/FxpMathOps.td
mlir/include/mlir/Dialect/GPU/GPUOps.td
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgLibraryOps.td
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransformPatterns.td
mlir/include/mlir/Dialect/LoopOps/LoopOps.td
mlir/include/mlir/Dialect/QuantOps/QuantOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVArithmeticOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVBitOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVCastOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVControlFlowOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVGLSLOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVLogicalOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVStructureOps.td
mlir/include/mlir/Dialect/StandardOps/Ops.td
mlir/include/mlir/Dialect/VectorOps/VectorOps.td
mlir/include/mlir/IR/OpAsmInterface.td
mlir/include/mlir/Transforms/LoopLikeInterface.td
mlir/lib/Conversion/GPUToNVVM/GPUToNVVM.td
mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.td
mlir/test/lib/DeclarativeTransforms/TestLinalgTransformPatterns.td
mlir/test/mlir-tblgen/reference-impl.td

index fb41818..de9eebb 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef TOY_OPS
 #define TOY_OPS
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 // Provide a definition of the 'toy' dialect in the ODS framework so that we
 // can define our operations.
index 25bf06c..602d96c 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef TOY_OPS
 #define TOY_OPS
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 // Provide a definition of the 'toy' dialect in the ODS framework so that we
 // can define our operations.
index 0a63861..1ca143a 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef TOY_COMBINE
 #define TOY_COMBINE
 
-#ifndef OP_BASE
 include "toy/Ops.td"
-#endif // OP_BASE
 
 /// Note: The DRR definition used for defining patterns is shown below:
 ///
index bbbcc48..35f4140 100644 (file)
 #ifndef TOY_OPS
 #define TOY_OPS
 
-#ifndef MLIR_CALLINTERFACES
 include "mlir/Analysis/CallInterfaces.td"
-#endif // MLIR_CALLINTERFACES
-
-#ifndef SHAPE_INFERENCE_INTERFACE
 include "toy/ShapeInferenceInterface.td"
-#endif // SHAPE_INFERENCE_INTERFACE
 
 // Provide a definition of the 'toy' dialect in the ODS framework so that we
 // can define our operations.
index dc34590..6974575 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef SHAPE_INFERENCE_INTERFACE
 #define SHAPE_INFERENCE_INTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def ShapeInferenceOpInterface : OpInterface<"ShapeInference"> {
   let description = [{
index 0a63861..1ca143a 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef TOY_COMBINE
 #define TOY_COMBINE
 
-#ifndef OP_BASE
 include "toy/Ops.td"
-#endif // OP_BASE
 
 /// Note: The DRR definition used for defining patterns is shown below:
 ///
index d9306f4..29df500 100644 (file)
 #ifndef TOY_OPS
 #define TOY_OPS
 
-#ifndef MLIR_CALLINTERFACES
 include "mlir/Analysis/CallInterfaces.td"
-#endif // MLIR_CALLINTERFACES
-
-#ifndef SHAPE_INFERENCE_INTERFACE
 include "toy/ShapeInferenceInterface.td"
-#endif // SHAPE_INFERENCE_INTERFACE
 
 // Provide a definition of the 'toy' dialect in the ODS framework so that we
 // can define our operations.
index dc34590..6974575 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef SHAPE_INFERENCE_INTERFACE
 #define SHAPE_INFERENCE_INTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def ShapeInferenceOpInterface : OpInterface<"ShapeInference"> {
   let description = [{
index 0a63861..1ca143a 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef TOY_COMBINE
 #define TOY_COMBINE
 
-#ifndef OP_BASE
 include "toy/Ops.td"
-#endif // OP_BASE
 
 /// Note: The DRR definition used for defining patterns is shown below:
 ///
index d9306f4..29df500 100644 (file)
 #ifndef TOY_OPS
 #define TOY_OPS
 
-#ifndef MLIR_CALLINTERFACES
 include "mlir/Analysis/CallInterfaces.td"
-#endif // MLIR_CALLINTERFACES
-
-#ifndef SHAPE_INFERENCE_INTERFACE
 include "toy/ShapeInferenceInterface.td"
-#endif // SHAPE_INFERENCE_INTERFACE
 
 // Provide a definition of the 'toy' dialect in the ODS framework so that we
 // can define our operations.
index dc34590..6974575 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef SHAPE_INFERENCE_INTERFACE
 #define SHAPE_INFERENCE_INTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def ShapeInferenceOpInterface : OpInterface<"ShapeInference"> {
   let description = [{
index 0a63861..1ca143a 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef TOY_COMBINE
 #define TOY_COMBINE
 
-#ifndef OP_BASE
 include "toy/Ops.td"
-#endif // OP_BASE
 
 /// Note: The DRR definition used for defining patterns is shown below:
 ///
index d41406a..a3c2095 100644 (file)
 #ifndef TOY_OPS
 #define TOY_OPS
 
-#ifndef MLIR_CALLINTERFACES
 include "mlir/Analysis/CallInterfaces.td"
-#endif // MLIR_CALLINTERFACES
-
-#ifndef SHAPE_INFERENCE_INTERFACE
 include "toy/ShapeInferenceInterface.td"
-#endif // SHAPE_INFERENCE_INTERFACE
 
 // Provide a definition of the 'toy' dialect in the ODS framework so that we
 // can define our operations.
index dc34590..6974575 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef SHAPE_INFERENCE_INTERFACE
 #define SHAPE_INFERENCE_INTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def ShapeInferenceOpInterface : OpInterface<"ShapeInference"> {
   let description = [{
index 0a63861..1ca143a 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef TOY_COMBINE
 #define TOY_COMBINE
 
-#ifndef OP_BASE
 include "toy/Ops.td"
-#endif // OP_BASE
 
 /// Note: The DRR definition used for defining patterns is shown below:
 ///
index 67440b2..043f009 100644 (file)
@@ -24,9 +24,7 @@
 #ifndef MLIR_CALLINTERFACES
 #define MLIR_CALLINTERFACES
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 // `CallInterfaceCallable`: This is a type used to represent a single callable
 // region. A callable is either a symbol, or an SSA value, that is referenced by
index 325c550..56c7319 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef MLIR_INFERTYPEOPINTERFACE
 #define MLIR_INFERTYPEOPINTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 // OpInterface to compute the return type of an operation. The arguments match
 // those in Operation::create with the exception that the location is optional
index 1b6c777..c57ee50 100644 (file)
 #ifndef AFFINE_OPS
 #define AFFINE_OPS
 
-#ifndef OP_BASE
+include "mlir/Dialect/AffineOps/AffineOpsBase.td"
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
-
-#ifndef MLIR_LOOPLIKEINTERFACE
 include "mlir/Transforms/LoopLikeInterface.td"
-#endif
-
-include "mlir/Dialect/AffineOps/AffineOpsBase.td"
 
 def Affine_Dialect : Dialect {
   let name = "affine";
index 2d6eb14..755f65c 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef AFFINE_OPS_BASE
 #define AFFINE_OPS_BASE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 // Attributes containing affine maps.
 def AffineMapAttr : Attr<
index aa8b7ec..b1bfb27 100644 (file)
 
 #ifndef DIALECT_FXPMATHOPS_FXPMATH_OPS_
 #define DIALECT_FXPMATHOPS_FXPMATH_OPS_
-#ifndef OP_BASE
-include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
+include "mlir/IR/OpBase.td"
 include "mlir/Dialect/QuantOps/QuantPredicates.td"
 
 def fxpmath_Dialect : Dialect {
index a620d10..4329084 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef GPU_OPS
 #define GPU_OPS
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def GPU_Dialect : Dialect {
   let name = "gpu";
index 37c8315..f8c8277 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef LLVMIR_OP_BASE
 #define LLVMIR_OP_BASE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def LLVM_Dialect : Dialect {
   let name = "llvm";
index a2c302f..ca1b58d 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef OP_BASE
-include "mlir/IR/OpBase.td"
-#endif // OP_BASE
-
 #ifndef LINALG_BASE
 #define LINALG_BASE
 
+include "mlir/IR/OpBase.td"
+
 def Linalg_Dialect : Dialect {
   let name = "linalg";
   let description = [{
index dd16498..92b325b 100644 (file)
 #ifndef LINALG_LIBRARY_OPS
 #define LINALG_LIBRARY_OPS
 
-#ifndef AFFINE_OPS_BASE
 include "mlir/Dialect/AffineOps/AffineOpsBase.td"
-#endif // AFFINE_OPS_BASE
-
-#ifndef LINALG_BASE
 include "mlir/Dialect/Linalg/IR/LinalgBase.td"
-#endif // LINALG_BASE
 
 class LinalgParametricNativeOpTrait<string prop, string parameters> :
   NativeOpTrait<"linalg::" # prop # parameters>
index 96974de..414a586 100644 (file)
 #ifndef LINALG_OPS
 #define LINALG_OPS
 
-#ifndef AFFINE_OPS_BASE
 include "mlir/Dialect/AffineOps/AffineOpsBase.td"
-#endif // AFFINE_OPS_BASE
-
-#ifndef LINALG_BASE
 include "mlir/Dialect/Linalg/IR/LinalgBase.td"
-#endif // LINALG_BASE
 
 // Base class for Linalg dialect ops that do not correspond to library calls.
 class Linalg_Op<string mnemonic, list<OpTrait> traits = []> :
index 66a3a16..d243bb2 100644 (file)
 #ifndef LINALG_TRANSFORMS
 #define LINALG_TRANSFORMS
 
-#ifndef LINALG_OPS
 include "mlir/Dialect/Linalg/IR/LinalgOps.td"
-#endif // LINALG_OPS
-#ifndef LINALG_LIBRARY_OPS
 include "mlir/Dialect/Linalg/IR/LinalgLibraryOps.td"
-#endif // LINALG_LIBRARY_OPS
 
 def HasNoLinalgTransformMarker : CPred<[{
   !$0.getAttrOfType<StringAttr>(LinalgTransforms::kLinalgTransformMarker)
index 6f228a2..5e0b809 100644 (file)
 #ifndef LOOP_OPS
 #define LOOP_OPS
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
-
-#ifndef MLIR_LOOPLIKEINTERFACE
 include "mlir/Transforms/LoopLikeInterface.td"
-#endif
 
 def Loop_Dialect : Dialect {
   let name = "loop";
index 48a1598..85d5cd2 100644 (file)
 
 #ifndef DIALECT_QUANTOPS_QUANT_OPS_
 #define DIALECT_QUANTOPS_QUANT_OPS_
-#ifndef OP_BASE
+
 include "mlir/IR/OpBase.td"
 include "mlir/Dialect/QuantOps/QuantPredicates.td"
-#endif // OP_BASE
 
 def quant_Dialect : Dialect {
   let name = "quant";
index 6554275..cbcd930 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef SPIRV_ARITHMETIC_OPS
 #define SPIRV_ARITHMETIC_OPS
 
-#ifndef SPIRV_BASE
-include "mlir/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
+include "mlir/Dialect/SPIRV/SPIRVBase.td"
 
 class SPV_ArithmeticBinaryOp<string mnemonic, Type type,
                        list<OpTrait> traits = []> :
index 44e940a..f88f87e 100644 (file)
@@ -24,9 +24,7 @@
 #ifndef SPIRV_BASE
 #define SPIRV_BASE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 //===----------------------------------------------------------------------===//
 // SPIR-V dialect definitions
index 0a183af..ba748f8 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef SPIRV_BIT_OPS
 #define SPIRV_BIT_OPS
 
-#ifndef SPIRV_BASE
-include "mlir/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
+include "mlir/Dialect/SPIRV/SPIRVBase.td"
 
 class SPV_BitBinaryOp<string mnemonic, list<OpTrait> traits = []> :
       // All the operands type used in bit instructions are SPV_Integer.
index 1798b9d..2faffb6 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef SPIRV_CAST_OPS
 #define SPIRV_CAST_OPS
 
-#ifndef SPIRV_BASE
-include "mlir/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
+include "mlir/Dialect/SPIRV/SPIRVBase.td"
 
 class SPV_CastOp<string mnemonic, Type resultType, Type operandType,
                  list<OpTrait> traits = []> :
index 1e41fa0..a494633 100644 (file)
 #ifndef SPIRV_CONTROLFLOW_OPS
 #define SPIRV_CONTROLFLOW_OPS
 
-#ifndef SPIRV_BASE
-include "mlir/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
-
-#ifndef MLIR_CALLINTERFACES
+include "mlir/Dialect/SPIRV/SPIRVBase.td"
 include "mlir/Analysis/CallInterfaces.td"
-#endif // MLIR_CALLINTERFACES
 
 // -----
 
index 7d5ae76..217b6d9 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef SPIRV_GLSL_OPS
 #define SPIRV_GLSL_OPS
 
-#ifndef SPIRV_BASE
 include "mlir/Dialect/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
 
 //===----------------------------------------------------------------------===//
 // SPIR-V GLSL 4.50 opcode specification.
index 7321938..be9825a 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef SPIRV_LOGICAL_OPS
 #define SPIRV_LOGICAL_OPS
 
-#ifndef SPIRV_BASE
-include "mlir/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
+include "mlir/Dialect/SPIRV/SPIRVBase.td"
 
 class SPV_LogicalBinaryOp<string mnemonic, Type operandsType,
                     list<OpTrait> traits = []> :
index 9be4898..41d729d 100644 (file)
 #ifndef SPIRV_OPS
 #define SPIRV_OPS
 
-#ifndef SPIRV_BASE
 include "mlir/Dialect/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
-
-#ifndef SPIRV_ARITHMETIC_OPS
 include "mlir/Dialect/SPIRV/SPIRVArithmeticOps.td"
-#endif // SPIRV_ARITHMETIC_OPS
-
-#ifndef SPIRV_BIT_OPS
 include "mlir/Dialect/SPIRV/SPIRVBitOps.td"
-#endif // SPIRV_BIT_OPS
-
-#ifndef SPIRV_CAST_OPS
 include "mlir/Dialect/SPIRV/SPIRVCastOps.td"
-#endif // SPIRV_CAST_OPS
-
-#ifndef SPIRV_CONTROLFLOW_OPS
 include "mlir/Dialect/SPIRV/SPIRVControlFlowOps.td"
-#endif // SPIRV_CONTROLFLOW_OPS
-
-#ifndef SPIRV_LOGICAL_OPS
 include "mlir/Dialect/SPIRV/SPIRVLogicalOps.td"
-#endif // SPIRV_LOGICAL_OPS
-
-#ifndef SPIRV_STRUCTURE_OPS
 // Pull in ops for defining the SPIR-V module structure
 include "mlir/Dialect/SPIRV/SPIRVStructureOps.td"
-#endif // SPIRV_STRUCTURE_OPS
-
-#ifndef SPIRV_GLSL_OPS
 // Pull in ops for extended instruction set for GLSL
 include "mlir/Dialect/SPIRV/SPIRVGLSLOps.td"
-#endif // SPIRV_GLSL_OPS
 
 // -----
 
index fab97bd..e6b4dac 100644 (file)
@@ -24,9 +24,7 @@
 #ifndef SPIRV_STRUCTURE_OPS
 #define SPIRV_STRUCTURE_OPS
 
-#ifndef SPIRV_BASE
-include "mlir/SPIRV/SPIRVBase.td"
-#endif // SPIRV_BASE
+include "mlir/Dialect/SPIRV/SPIRVBase.td"
 
 def SPV_AddressOfOp : SPV_Op<"_address_of", [InFunctionScope, NoSideEffect]> {
   let summary = "Get the address of a global variable.";
index 66613e0..e335984 100644 (file)
 #ifndef STANDARD_OPS
 #define STANDARD_OPS
 
-#ifndef OP_BASE
-include "mlir/IR/OpBase.td"
-#endif // OP_BASE
-
-include "mlir/IR/OpAsmInterface.td"
 include "mlir/Analysis/CallInterfaces.td"
+include "mlir/IR/OpAsmInterface.td"
 
 def Std_Dialect : Dialect {
   let name = "std";
index 3b71e59..ce03750 100644 (file)
 #ifndef VECTOR_OPS
 #define VECTOR_OPS
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
-
-#ifndef AFFINE_OPS_BASE
 include "mlir/Dialect/AffineOps/AffineOpsBase.td"
-#endif // AFFINE_OPS_BASE
 
 def Vector_Dialect : Dialect {
   let name = "vector";
index 974360e..85726a8 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef MLIR_OPASMINTERFACE
 #define MLIR_OPASMINTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 /// Interface for hooking into the OpAsmPrinter and OpAsmParser.
 def OpAsmOpInterface : OpInterface<"OpAsmOpInterface"> {
index 4ba8917..5c324b7 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef MLIR_LOOPLIKEINTERFACE
 #define MLIR_LOOPLIKEINTERFACE
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
   let description = [{
index 5c94069..8c27ba4 100644 (file)
 #ifndef MLIR_CONVERSION_GPUTONVVM_TD
 #define MLIR_CONVERSION_GPUTONVVM_TD
 
-#ifndef GPU_OPS
 include "mlir/Dialect/GPU/GPUOps.td"
-#endif // GPU_OPS
-
-#ifndef NVVMIR_OPS
 include "mlir/Dialect/LLVMIR/NVVMOps.td"
-#endif // NVVMIR_OPS
 
 def : Pat<(GPU_BarrierOp), (NVVM_Barrier0Op)>;
 
index 769ec58..9ebbea6 100644 (file)
 #ifndef MLIR_CONVERSION_STANDARDTOSPIRV_TD
 #define MLIR_CONVERSION_STANDARDTOSPIRV_TD
 
-#ifndef STANDARD_OPS
 include "mlir/Dialect/StandardOps/Ops.td"
-#endif // STANDARD_OPS
-
-#ifndef SPIRV_OPS
 include "mlir/Dialect/SPIRV/SPIRVOps.td"
-#endif // SPIRV_OPS
 
 class BinaryOpPattern<Op src, Op tgt> :
       Pat<(src SPV_ScalarOrVector:$l, SPV_ScalarOrVector:$r),
index c052c74..839671c 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef TEST_LINALG_TRANSFORMS_PATTERNS
 #define TEST_LINALG_TRANSFORMS_PATTERNS
 
-#ifndef LINALG_TRANSFORMS
 include "mlir/Dialect/Linalg/Transforms/LinalgTransformPatterns.td"
-#endif // LINALG_TRANSFORMS
 
 //===----------------------------------------------------------------------===//
 // Test Linalg fusion patterns.
index 53cb705..291b7ea 100644 (file)
@@ -1,8 +1,6 @@
 // RUN: mlir-tblgen -gen-reference-implementations -I %S/../../include %s | FileCheck %s
 
-#ifndef OP_BASE
 include "mlir/IR/OpBase.td"
-#endif // OP_BASE
 
 def X_Dialect : Dialect {
   let name = "x";