[Mlir-commits] [mlir] 6ca63c1 - [mlir][spirv] Add missing include statements and header guard (NFC) (#191078)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Apr 9 08:46:27 PDT 2026


Author: Keith Smiley
Date: 2026-04-09T08:46:23-07:00
New Revision: 6ca63c1018a0a89912bbf1b30ef28f42ed14e76a

URL: https://github.com/llvm/llvm-project/commit/6ca63c1018a0a89912bbf1b30ef28f42ed14e76a
DIFF: https://github.com/llvm/llvm-project/commit/6ca63c1018a0a89912bbf1b30ef28f42ed14e76a.diff

LOG: [mlir][spirv] Add missing include statements and header guard (NFC) (#191078)

Previously this header assumed these other includes had already been
included

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.h b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.h
index 175edaafbb857..3d75bf1a6a659 100644
--- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.h
+++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.h
@@ -6,7 +6,12 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef MLIR_DIALECT_SPIRV_IR_SPIRVTOSAOPS_H_
+#define MLIR_DIALECT_SPIRV_IR_SPIRVTOSAOPS_H_
+
+#include "mlir/IR/BuiltinAttributes.h"
 #include "mlir/IR/BuiltinTypes.h"
+#include "mlir/IR/OpImplementation.h"
 
 namespace mlir::spirv {
 
@@ -17,3 +22,5 @@ void printSPIRV_I32_1DArmTensor(OpAsmPrinter &printer, Operation *,
                                 DenseIntElementsAttr attr);
 
 } // namespace mlir::spirv
+
+#endif // MLIR_DIALECT_SPIRV_IR_SPIRVTOSAOPS_H_


        


More information about the Mlir-commits mailing list