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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 8 16:46:20 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Keith Smiley (keith)

<details>
<summary>Changes</summary>

Previously this header assumed these other includes had already been
included


---
Full diff: https://github.com/llvm/llvm-project/pull/191078.diff


1 Files Affected:

- (modified) mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.h (+7) 


``````````diff
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_

``````````

</details>


https://github.com/llvm/llvm-project/pull/191078


More information about the Mlir-commits mailing list