[mlir] Add #include <optional> (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 14 Jan 2023 05:05:06 +0000 (21:05 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 14 Jan 2023 05:05:06 +0000 (21:05 -0800)
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.

I'll post a separate patch to actually replace llvm::Optional with
std::optional.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716

223 files changed:
mlir/examples/toy/Ch1/include/toy/AST.h
mlir/examples/toy/Ch1/include/toy/Parser.h
mlir/examples/toy/Ch2/include/toy/AST.h
mlir/examples/toy/Ch2/include/toy/Parser.h
mlir/examples/toy/Ch3/include/toy/AST.h
mlir/examples/toy/Ch3/include/toy/Parser.h
mlir/examples/toy/Ch4/include/toy/AST.h
mlir/examples/toy/Ch4/include/toy/Parser.h
mlir/examples/toy/Ch5/include/toy/AST.h
mlir/examples/toy/Ch5/include/toy/Parser.h
mlir/examples/toy/Ch6/include/toy/AST.h
mlir/examples/toy/Ch6/include/toy/Parser.h
mlir/examples/toy/Ch7/include/toy/AST.h
mlir/examples/toy/Ch7/include/toy/Parser.h
mlir/examples/toy/Ch7/mlir/MLIRGen.cpp
mlir/include/mlir/Analysis/DataFlow/ConstantPropagationAnalysis.h
mlir/include/mlir/Analysis/DataFlow/DeadCodeAnalysis.h
mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
mlir/include/mlir/Analysis/Presburger/PresburgerRelation.h
mlir/include/mlir/Analysis/Presburger/Simplex.h
mlir/include/mlir/Analysis/Presburger/Utils.h
mlir/include/mlir/Conversion/MathToLibm/MathToLibm.h
mlir/include/mlir/Dialect/Affine/Analysis/AffineAnalysis.h
mlir/include/mlir/Dialect/Affine/Analysis/AffineStructures.h
mlir/include/mlir/Dialect/Affine/Analysis/LoopAnalysis.h
mlir/include/mlir/Dialect/Affine/Analysis/Utils.h
mlir/include/mlir/Dialect/Affine/LoopUtils.h
mlir/include/mlir/Dialect/Affine/Utils.h
mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
mlir/include/mlir/Dialect/CommonFolders.h
mlir/include/mlir/Dialect/Func/Transforms/DecomposeCallGraphTypes.h
mlir/include/mlir/Dialect/GPU/Transforms/Passes.h
mlir/include/mlir/Dialect/LLVMIR/LLVMAttrs.h
mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
mlir/include/mlir/Dialect/Linalg/Analysis/DependenceAnalysis.h
mlir/include/mlir/Dialect/Linalg/IR/Linalg.h
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
mlir/include/mlir/Dialect/SCF/Utils/Utils.h
mlir/include/mlir/Dialect/SPIRV/IR/TargetAndABI.h
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
mlir/include/mlir/Dialect/Tosa/Utils/ConversionUtils.h
mlir/include/mlir/Dialect/Transform/IR/TransformDialect.h
mlir/include/mlir/Dialect/Transform/Utils/DiagnosedSilenceableFailure.h
mlir/include/mlir/Dialect/Utils/IndexingUtils.h
mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h
mlir/include/mlir/ExecutionEngine/ExecutionEngine.h
mlir/include/mlir/ExecutionEngine/MemRefUtils.h
mlir/include/mlir/IR/AffineMap.h
mlir/include/mlir/IR/Builders.h
mlir/include/mlir/IR/BuiltinAttributeInterfaces.h
mlir/include/mlir/IR/BuiltinAttributes.h
mlir/include/mlir/IR/Diagnostics.h
mlir/include/mlir/IR/DialectResourceBlobManager.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/OpImplementation.h
mlir/include/mlir/IR/Operation.h
mlir/include/mlir/IR/OperationSupport.h
mlir/include/mlir/IR/PatternMatch.h
mlir/include/mlir/IR/SubElementInterfaces.h
mlir/include/mlir/IR/ValueRange.h
mlir/include/mlir/Interfaces/InferIntRangeInterface.h
mlir/include/mlir/Pass/AnalysisManager.h
mlir/include/mlir/Pass/Pass.h
mlir/include/mlir/Pass/PassInstrumentation.h
mlir/include/mlir/Pass/PassManager.h
mlir/include/mlir/Pass/PassRegistry.h
mlir/include/mlir/Support/LogicalResult.h
mlir/include/mlir/Support/Timing.h
mlir/include/mlir/Tools/PDLL/AST/Diagnostic.h
mlir/include/mlir/Tools/PDLL/AST/Nodes.h
mlir/include/mlir/Tools/PDLL/AST/Types.h
mlir/include/mlir/Tools/PDLL/Parser/CodeComplete.h
mlir/include/mlir/Tools/mlir-translate/Translation.h
mlir/include/mlir/Transforms/InliningUtils.h
mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp
mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp
mlir/lib/Analysis/Presburger/IntegerRelation.cpp
mlir/lib/Analysis/Presburger/PWMAFunction.cpp
mlir/lib/Analysis/Presburger/Utils.cpp
mlir/lib/AsmParser/AsmParserImpl.h
mlir/lib/AsmParser/Parser.h
mlir/lib/AsmParser/Token.cpp
mlir/lib/AsmParser/Token.h
mlir/lib/AsmParser/TypeParser.cpp
mlir/lib/Bindings/Python/DialectSparseTensor.cpp
mlir/lib/Bindings/Python/Globals.h
mlir/lib/Bindings/Python/IRAttributes.cpp
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/IRInterfaces.cpp
mlir/lib/Bindings/Python/IRModule.cpp
mlir/lib/Bindings/Python/IRModule.h
mlir/lib/Bindings/Python/IRTypes.cpp
mlir/lib/CAPI/IR/IR.cpp
mlir/lib/CAPI/IR/Pass.cpp
mlir/lib/CAPI/Interfaces/Interfaces.cpp
mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
mlir/lib/Conversion/MemRefToSPIRV/MemRefToSPIRV.cpp
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
mlir/lib/Dialect/AMDGPU/IR/AMDGPUDialect.cpp
mlir/lib/Dialect/Affine/Analysis/AffineAnalysis.cpp
mlir/lib/Dialect/Affine/Analysis/Utils.cpp
mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
mlir/lib/Dialect/Affine/Transforms/LoopTiling.cpp
mlir/lib/Dialect/Affine/Transforms/LoopUnroll.cpp
mlir/lib/Dialect/Affine/Transforms/LoopUnrollAndJam.cpp
mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
mlir/lib/Dialect/Affine/Utils/LoopFusionUtils.cpp
mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
mlir/lib/Dialect/Affine/Utils/Utils.cpp
mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp
mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp
mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
mlir/lib/Dialect/GPU/Transforms/SerializeToBlob.cpp
mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
mlir/lib/Dialect/Index/IR/IndexOps.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/lib/Dialect/Linalg/Transforms/ConstantFold.cpp
mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
mlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
mlir/lib/Dialect/Linalg/Transforms/SplitReduction.cpp
mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
mlir/lib/Dialect/Math/IR/MathOps.cpp
mlir/lib/Dialect/MemRef/IR/MemRefDialect.cpp
mlir/lib/Dialect/MemRef/Transforms/ExpandStridedMetadata.cpp
mlir/lib/Dialect/PDL/IR/PDL.cpp
mlir/lib/Dialect/SCF/Transforms/StructuralTypeConversions.cpp
mlir/lib/Dialect/SPIRV/IR/SPIRVCanonicalization.cpp
mlir/lib/Dialect/SPIRV/IR/TargetAndABI.cpp
mlir/lib/Dialect/SPIRV/Transforms/UpdateVCEPass.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.h
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseStorageSpecifierToLLVM.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/lib/Dialect/Traits.cpp
mlir/lib/Dialect/Utils/IndexingUtils.cpp
mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
mlir/lib/Dialect/Vector/Transforms/VectorTransferSplitRewritePatterns.cpp
mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
mlir/lib/ExecutionEngine/JitRunner.cpp
mlir/lib/IR/AffineExpr.cpp
mlir/lib/IR/AffineMap.cpp
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/IR/BuiltinAttributes.cpp
mlir/lib/IR/Diagnostics.cpp
mlir/lib/IR/DialectResourceBlobManager.cpp
mlir/lib/IR/MLIRContext.cpp
mlir/lib/IR/OperationSupport.cpp
mlir/lib/IR/SubElementInterfaces.cpp
mlir/lib/IR/SymbolTable.cpp
mlir/lib/IR/Verifier.cpp
mlir/lib/Interfaces/InferIntRangeInterface.cpp
mlir/lib/Pass/Pass.cpp
mlir/lib/Pass/PassRegistry.cpp
mlir/lib/Pass/PassTiming.cpp
mlir/lib/Rewrite/ByteCode.cpp
mlir/lib/Rewrite/FrozenRewritePatternSet.cpp
mlir/lib/Support/Timing.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
mlir/lib/Target/SPIRV/Deserialization/Deserializer.h
mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
mlir/lib/Tools/PDLL/AST/NodePrinter.cpp
mlir/lib/Tools/PDLL/AST/Nodes.cpp
mlir/lib/Tools/PDLL/AST/Types.cpp
mlir/lib/Tools/PDLL/CodeGen/CPPGen.cpp
mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp
mlir/lib/Tools/PDLL/ODS/Context.cpp
mlir/lib/Tools/PDLL/Parser/Parser.cpp
mlir/lib/Tools/lsp-server-support/Protocol.h
mlir/lib/Tools/lsp-server-support/SourceMgrUtils.cpp
mlir/lib/Tools/lsp-server-support/SourceMgrUtils.h
mlir/lib/Tools/lsp-server-support/Transport.cpp
mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.h
mlir/lib/Tools/mlir-pdll-lsp-server/LSPServer.cpp
mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp
mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.h
mlir/lib/Tools/mlir-translate/Translation.cpp
mlir/lib/Tools/tblgen-lsp-server/LSPServer.cpp
mlir/lib/Tools/tblgen-lsp-server/TableGenServer.cpp
mlir/lib/Tools/tblgen-lsp-server/TableGenServer.h
mlir/lib/Transforms/LocationSnapshot.cpp
mlir/lib/Transforms/Utils/InliningUtils.cpp
mlir/lib/Transforms/ViewOpGraph.cpp
mlir/test/lib/Analysis/DataFlow/TestDenseDataFlowAnalysis.cpp
mlir/test/lib/Analysis/TestDataFlowFramework.cpp
mlir/test/lib/Dialect/Shape/TestShapeMappingAnalysis.cpp
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestTypes.cpp
mlir/test/lib/Dialect/Test/TestTypes.h
mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
mlir/test/lib/Interfaces/TilingInterface/TestTilingInterface.cpp
mlir/test/lib/Transforms/TestIntRangeInference.cpp
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
mlir/unittests/Analysis/Presburger/PresburgerSetTest.cpp
mlir/unittests/Analysis/Presburger/SimplexTest.cpp
mlir/unittests/Analysis/Presburger/Utils.h
mlir/unittests/IR/AttributeTest.cpp

index 6b9fdb617bea6b1b759505e0062d2f431a24d4a4..3b332314d4f7d4135f76d0ecfada9ff25f9ebe06 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6674d45914a3377fe390dc7695e7335ef0f7a231..652258e6498176dd4f6632f933113b420170cef2 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6b9fdb617bea6b1b759505e0062d2f431a24d4a4..3b332314d4f7d4135f76d0ecfada9ff25f9ebe06 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6674d45914a3377fe390dc7695e7335ef0f7a231..652258e6498176dd4f6632f933113b420170cef2 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6b9fdb617bea6b1b759505e0062d2f431a24d4a4..3b332314d4f7d4135f76d0ecfada9ff25f9ebe06 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6674d45914a3377fe390dc7695e7335ef0f7a231..652258e6498176dd4f6632f933113b420170cef2 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6b9fdb617bea6b1b759505e0062d2f431a24d4a4..3b332314d4f7d4135f76d0ecfada9ff25f9ebe06 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6674d45914a3377fe390dc7695e7335ef0f7a231..652258e6498176dd4f6632f933113b420170cef2 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6b9fdb617bea6b1b759505e0062d2f431a24d4a4..3b332314d4f7d4135f76d0ecfada9ff25f9ebe06 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6674d45914a3377fe390dc7695e7335ef0f7a231..652258e6498176dd4f6632f933113b420170cef2 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6b9fdb617bea6b1b759505e0062d2f431a24d4a4..3b332314d4f7d4135f76d0ecfada9ff25f9ebe06 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 6674d45914a3377fe390dc7695e7335ef0f7a231..652258e6498176dd4f6632f933113b420170cef2 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 9286f5bee4bf68a3296f41dc22ca101453fa2c96..e5bd0690d27537ab201715800327c289766286c2 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Casting.h"
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index e6df5581c6f1c4511707735ceb016aedc4690da4..90b1edaf6748f07eaa3f087f2014fd62ee04666e 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace toy {
 
index 279ae0375918f7fffaa984d5bf420e81451ecd21..d5035babe5c359ceeaa20b0677a1abf7952f2114 100644 (file)
@@ -26,6 +26,7 @@
 #include "llvm/ADT/ScopedHashTable.h"
 #include "llvm/Support/raw_ostream.h"
 #include <numeric>
+#include <optional>
 
 using namespace mlir::toy;
 using namespace toy;
index 6c2b830d5077b7720d8311934abf94a224e702f6..3f5fc6bc4c98b56b023872e6b71f9d9515948b58 100644 (file)
@@ -17,6 +17,7 @@
 #define MLIR_ANALYSIS_DATAFLOW_CONSTANTPROPAGATIONANALYSIS_H
 
 #include "mlir/Analysis/DataFlow/SparseAnalysis.h"
+#include <optional>
 
 namespace mlir {
 namespace dataflow {
index 4c7978338565edcdefe67559d83649cde43d72fd..6028b5b4d683846631f69aa0c906d859cf7ed94a 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/Analysis/DataFlowFramework.h"
 #include "mlir/IR/SymbolTable.h"
 #include "llvm/ADT/SmallPtrSet.h"
+#include <optional>
 
 namespace mlir {
 
index 349c05e20a87fad97b1442ade20e6e84ac67963f..031fb02c77314baffa7e805b66bcf652802a220d 100644 (file)
@@ -20,6 +20,7 @@
 #include "mlir/Analysis/Presburger/PresburgerSpace.h"
 #include "mlir/Analysis/Presburger/Utils.h"
 #include "mlir/Support/LogicalResult.h"
+#include <optional>
 
 namespace mlir {
 namespace presburger {
index 172e202d69e8f397793939860138119662a31133..566baca625d4b25991d7636c4e4717233f1c0ec4 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "mlir/Analysis/Presburger/IntegerRelation.h"
 #include "mlir/Analysis/Presburger/PresburgerRelation.h"
+#include <optional>
 
 namespace mlir {
 namespace presburger {
index 541e89671f0886052ee61cef703591e1f5f7f43a..189b52c428bc285f529e579235c079a242dd21d2 100644 (file)
@@ -14,6 +14,7 @@
 #define MLIR_ANALYSIS_PRESBURGER_PRESBURGERRELATION_H
 
 #include "mlir/Analysis/Presburger/IntegerRelation.h"
+#include <optional>
 
 namespace mlir {
 namespace presburger {
index e5d9b6e3257e201c5bacbfe5cb00816b1830788b..4ef4e622e2bf888d55cfdfd24f6b17b59799253e 100644 (file)
@@ -27,6 +27,7 @@
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/StringSaver.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 namespace mlir {
 namespace presburger {
index fca0161139f87255697e52c09da12d3a5804f14e..775d9542077696b79c51832a0bae4229a25b7e39 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/ADT/SmallBitVector.h"
 
 #include "mlir/Analysis/Presburger/Matrix.h"
+#include <optional>
 
 namespace mlir {
 namespace presburger {
index caca1ceb8d6fd21992240bd36a8a5e47ac9bb7fb..dfb45df8c2da129219a5425badbd114d14228a36 100644 (file)
@@ -9,6 +9,7 @@
 #define MLIR_CONVERSION_MATHTOLIBM_MATHTOLIBM_H_
 
 #include "mlir/Transforms/DialectConversion.h"
+#include <optional>
 
 namespace mlir {
 template <typename T>
index 636a23dc2a9ba90751cf3b686d7370495b4cd4f3..02a58e9c0484976a8ed1c5583fc5c1b10a91db0c 100644 (file)
@@ -19,6 +19,7 @@
 #include "mlir/IR/Value.h"
 #include "llvm/ADT/Optional.h"
 #include "llvm/ADT/SmallVector.h"
+#include <optional>
 
 namespace mlir {
 
index e519cbc766ccad9271aa18fb194381f7975032c7..de69fb8e94befffc93ce3f49b004c104bf2c2bed 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/IR/AffineExpr.h"
 #include "mlir/IR/OpDefinition.h"
 #include "mlir/Support/LogicalResult.h"
+#include <optional>
 
 namespace mlir {
 
index 15f8f255c6005500e614244bb37338d471176f8f..6f95f08987d7f96361c6b31d9c199f5045bcc0b7 100644 (file)
@@ -16,6 +16,7 @@
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/Optional.h"
+#include <optional>
 
 namespace mlir {
 
index 5c2a91a9e4d57762f5753facd7693c8f679176d6..62a8b0e2e5813f5f2adb9d2bb4921930a9f74384 100644 (file)
@@ -23,6 +23,7 @@
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/SmallVector.h"
 #include <memory>
+#include <optional>
 
 namespace mlir {
 
index 252933e8976ee17d4d8a5804224d2c86ff3eb6cf..c13cd8cc371e41fc560a56838ad8b281133ee561 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/IR/Block.h"
 #include "mlir/Support/LLVM.h"
 #include "mlir/Support/LogicalResult.h"
+#include <optional>
 
 namespace mlir {
 class AffineForOp;
index a514170cca4cc210ce430f2dcbb3ed38f5edd67e..1ea6507e104ba3c255ecd8fe34055f5f0dc86897 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "mlir/Dialect/Affine/Analysis/AffineAnalysis.h"
 #include "mlir/Dialect/Affine/IR/AffineOps.h"
+#include <optional>
 
 namespace mlir {
 
index 799aff951c295d119a6cf604cb05e36e1da266a8..2eef942f6191d1f7a8a43453dba0e648ca96145e 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/IR/PatternMatch.h"
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/SetVector.h"
+#include <optional>
 
 #include "mlir/Dialect/Bufferization/IR/BufferizationEnums.h.inc"
 
index 986990ed0c47ff871028d1abb8bc52ee3b0bb663..a8f0a070c3f5ca776f28cc3b8aafcb58ed60ddb0 100644 (file)
@@ -19,6 +19,7 @@
 #include "mlir/IR/BuiltinTypes.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/STLExtras.h"
+#include <optional>
 
 namespace mlir {
 /// Performs constant folding `calculate` with element-wise behavior on the two
index bcb60beab1f8dbd7d2a88463313d17bea7f745a4..6e740f3a352063673e654ab02a3a2d15e717585f 100644 (file)
@@ -19,6 +19,7 @@
 #define MLIR_DIALECT_FUNC_TRANSFORMS_DECOMPOSECALLGRAPHTYPES_H
 
 #include "mlir/Transforms/DialectConversion.h"
+#include <optional>
 
 namespace mlir {
 
index 9ab830b0a06791afad916509c5a1d167b211ae7d..049dd04b0a40c31fd66625cfa61a551f3cf4a497 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "mlir/Dialect/GPU/IR/GPUDialect.h"
 #include "mlir/Pass/Pass.h"
+#include <optional>
 
 namespace llvm {
 class TargetMachine;
index 025093565fb395fbd04ff60361132a2ebe72f2d0..20203a49892b688cabd4230dc48c7a912ef911dd 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "mlir/Dialect/LLVMIR/LLVMTypes.h"
 #include "mlir/IR/OpImplementation.h"
+#include <optional>
 
 #include "mlir/Dialect/LLVMIR/LLVMOpsEnums.h.inc"
 
index fc9cd5da8589d16231d47dba06aeeb32cd3da509..8cccfefc25e6acaa84893afe1ed7009cb5cb7fe4 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/IR/SubElementInterfaces.h"
 #include "mlir/IR/Types.h"
 #include "mlir/Interfaces/DataLayoutInterfaces.h"
+#include <optional>
 
 namespace llvm {
 class ElementCount;
index b65db9fbf67d8f5f62f402ca667753a1e028f0dc..f6490f0d064a6ecc60562ba9d455ae3d9b43ed15 100644 (file)
@@ -12,6 +12,7 @@
 #include "mlir/Dialect/Linalg/IR/Linalg.h"
 #include "mlir/IR/Builders.h"
 #include "mlir/IR/OpDefinition.h"
+#include <optional>
 
 namespace mlir {
 namespace func {
index 28c75fcfa65307989be1e89e48180181209fbabe..179a1c14ed8062b15cddb0fed1b4a92ff95bb024 100644 (file)
@@ -25,6 +25,7 @@
 #include "mlir/Interfaces/SideEffectInterfaces.h"
 #include "mlir/Interfaces/TilingInterface.h"
 #include "mlir/Interfaces/ViewLikeInterface.h"
+#include <optional>
 
 namespace mlir {
 namespace linalg {
index 3152061e6cbc2fbf6ef8fc18dba977e28b46a2d2..f0ed6d5a05cb607d469457d5bcae1c747027fb55 100644 (file)
@@ -14,6 +14,7 @@
 #include "mlir/Dialect/SCF/IR/SCF.h"
 #include "llvm/ADT/MapVector.h"
 #include "llvm/ADT/StringSet.h"
+#include <optional>
 
 namespace mlir {
 class AffineExpr;
index bcf86b07db3b4bccc9e63cbade1ed40914b284a3..f330a54922e3de493d4310e1933f0614e1e3df54 100644 (file)
@@ -19,6 +19,7 @@
 #include "mlir/Interfaces/ShapedOpInterfaces.h"
 #include "mlir/Interfaces/SideEffectInterfaces.h"
 #include "mlir/Interfaces/ViewLikeInterface.h"
+#include <optional>
 
 namespace mlir {
 
index 34a4e4f14cba6b1f6291d777878838a08f13b305..594124d60af1b3d3e21642e06f00ff8e492a67a1 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/Support/LLVM.h"
 #include "mlir/Support/LogicalResult.h"
 #include "llvm/ADT/STLExtras.h"
+#include <optional>
 
 namespace mlir {
 class Location;
index 55b88586749fc7cf5227b1bad199cce9d4ae8603..ce3bc94fac2cb1338a89b3f4872e54082488b950 100644 (file)
@@ -16,6 +16,7 @@
 #include "mlir/Dialect/SPIRV/IR/SPIRVAttributes.h"
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/SmallSet.h"
+#include <optional>
 
 namespace mlir {
 class Operation;
index 9b3b69522e28a81a5a875d43695301076edd878e..7c0f3e1529d2414e5f5b8b23858b6d5751d1df8a 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/Dialect/SparseTensor/IR/Enums.h"
 #include "mlir/IR/Value.h"
 #include "llvm/ADT/BitVector.h"
+#include <optional>
 
 namespace mlir {
 namespace sparse_tensor {
index 8a8a209c7dca3b86ef9286379e6a578ed873e09c..fd4574abe5401bc3973b9a2a90d7c63f39076f79 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/Dialect/Tensor/IR/Tensor.h"
 #include "mlir/Dialect/Utils/StructuredOpsUtils.h"
 #include "mlir/IR/PatternMatch.h"
+#include <optional>
 
 namespace mlir {
 namespace tosa {
index 05533b6a3f2c634303ad9ec33e319fb64960b9f9..0abc006144eb99fa1d32a743931fba7cd70bde98 100644 (file)
@@ -14,6 +14,7 @@
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/StringMap.h"
+#include <optional>
 
 namespace mlir {
 namespace transform {
index fcb3524479b7296f01fc7babb1c510f03e6ccc0e..de4bce061a2aa2c8e6bec80f6cd266f6534348dc 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "mlir/IR/Diagnostics.h"
 #include "mlir/IR/Operation.h"
+#include <optional>
 
 #ifndef MLIR_DIALECT_TRANSFORM_UTILS_DIAGNOSEDSILENCEABLEFAILURE_H
 #define MLIR_DIALECT_TRANSFORM_UTILS_DIAGNOSEDSILENCEABLEFAILURE_H
index e9493e26d48e5cf8a3e70594aa2bf3be7d1ef686..3b4584c918865d842386f18ecab4146d4a5e451b 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallVector.h"
+#include <optional>
 
 namespace mlir {
 class ArrayAttr;
index 0711aa3ba80d07d8f07b6517ee718f4f48b35c8c..b69cc1beeb50b9ad0eb54ef325dc1957efab1808 100644 (file)
@@ -19,6 +19,7 @@
 #include "mlir/IR/PatternMatch.h"
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/StringRef.h"
+#include <optional>
 
 namespace mlir {
 
index e4606f9b428ff359f62cc6e95d42e07038de9a0e..b11369662e0dacb6e25e31c341c3157ec82f5876 100644 (file)
@@ -10,6 +10,7 @@
 #define MLIR_DIALECT_VECTOR_TRANSFORMS_VECTORREWRITEPATTERNS_H
 
 #include <utility>
+#include <optional>
 
 #include "mlir/Dialect/Vector/IR/VectorOps.h"
 #include "mlir/Dialect/Vector/Utils/VectorUtils.h"
index faaba1b018f6f80609f3b1c8183cbbadee26a293..48ff26cea0f27962ab8e0e60b3b3a70790a35067 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <functional>
 #include <memory>
+#include <optional>
 
 namespace llvm {
 template <typename T>
index f2e46d2f8b6babe2523ef96004cee3e6308acf3a..9240aae01b12b90649ac2779b9423bf75426cef8 100644 (file)
@@ -29,6 +29,7 @@
 #include <functional>
 #include <initializer_list>
 #include <memory>
+#include <optional>
 
 #ifndef MLIR_EXECUTIONENGINE_MEMREFUTILS_H_
 #define MLIR_EXECUTIONENGINE_MEMREFUTILS_H_
index 186c613b12fe1ceb9e987913b2c5270091b2e2a7..1c0f1b22c8f92d14499a02070cd1330c7ee14556 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/DenseMapInfo.h"
 #include "llvm/ADT/SmallBitVector.h"
+#include <optional>
 
 namespace llvm {
 class SmallBitVector;
index 66fa8264eb16f741026564f2d787f3a14a3cc829..6c7c519323bd8d03bc23ebbf7359f9a3e5978ae6 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "mlir/IR/OpDefinition.h"
 #include "llvm/Support/Compiler.h"
+#include <optional>
 
 namespace mlir {
 
index 906414ef959aa35fd6e1ff5925079ccb34f01e12..b7deea2ec8f4f5b2ee1504a761e6c9a182a1fa75 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/ADT/Any.h"
 #include "llvm/Support/raw_ostream.h"
 #include <complex>
+#include <optional>
 
 namespace mlir {
 
index 814a1fcef9d1401fc8235cd668d15a7bc2ce2a86..3247da996c6b808750779c1f46aaa0e18df643a3 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/ADT/APFloat.h"
 #include "llvm/ADT/Sequence.h"
 #include <complex>
+#include <optional>
 
 namespace mlir {
 class AffineMap;
index 7c1c81548c3678da259640bb8aef20485c4c658c..68292a8bae48c2dfcceb251dee4f8b3644240a2d 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "mlir/IR/Location.h"
 #include <functional>
+#include <optional>
 
 namespace llvm {
 class MemoryBuffer;
index 23dead9d5401173a7d962b7ddccd50b47af68f6d..92f90cfd81396aca6f2ad38d01616e146ef7023e 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/RWMutex.h"
 #include "llvm/Support/SMLoc.h"
+#include <optional>
 
 namespace mlir {
 //===----------------------------------------------------------------------===//
index 34020e70f84ffd049379ec4ec9a197673699b05f..b5c35e7ab87e81e53aba82f80882b1ee94931624 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/Support/PointerLikeTypeTraits.h"
 
 #include <type_traits>
+#include <optional>
 
 namespace mlir {
 class Builder;
index 9e7fe093b2ae5beca3b6a3ff11cdaec6490d127e..2cf9ed9c34d50c8f29fe7315089ed252ad0b7d84 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/IR/OpDefinition.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/SMLoc.h"
+#include <optional>
 
 namespace mlir {
 class AsmParsedResourceEntry;
index c4ef826e94366e8cf7103e65bb6d82fd2cf179bc..ca7fed442e4776daec3db25be967391a446bec2d 100644 (file)
@@ -19,6 +19,7 @@
 #include "mlir/IR/OperationSupport.h"
 #include "mlir/IR/Region.h"
 #include "llvm/ADT/Twine.h"
+#include <optional>
 
 namespace mlir {
 /// Operation is the basic unit of execution within MLIR.
index 629236046a1e0ddd9ba25c2c662f75e3b2356357..230df19715ae0f1c33bd02f0f2c035234636daad 100644 (file)
@@ -27,6 +27,7 @@
 #include "llvm/Support/PointerLikeTypeTraits.h"
 #include "llvm/Support/TrailingObjects.h"
 #include <memory>
+#include <optional>
 
 namespace llvm {
 class BitVector;
index 9c6f1d4dd548039c7a21427d97e53121167fe41d..08e249c979902b4618b482e0267176d9e7add8b8 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/IR/BuiltinOps.h"
 #include "llvm/ADT/FunctionExtras.h"
 #include "llvm/Support/TypeName.h"
+#include <optional>
 
 namespace mlir {
 
index 87f4ae50a65501bb936938c33d75aafa58b50b2a..85a6ba7d104d3dfd7da4ef0f8ed0ee416f77f839 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/IR/Attributes.h"
 #include "mlir/IR/Types.h"
 #include "mlir/IR/Visitors.h"
+#include <optional>
 
 namespace mlir {
 //===----------------------------------------------------------------------===//
index b09301e2b79b358b20fbfd6d0de5c33889cd02ee..a39e50d291ee0551b4793fa2dd12373cc6c4203d 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/IR/Value.h"
 #include "llvm/ADT/PointerUnion.h"
 #include "llvm/ADT/Sequence.h"
+#include <optional>
 
 namespace mlir {
 class ValueRange;
index 131807dddf239e31096cd9e4c9c130f37b598383..48a3264e07ce7844c4f459f062aed399c2008ed2 100644 (file)
@@ -15,6 +15,7 @@
 #define MLIR_INTERFACES_INFERINTRANGEINTERFACE_H
 
 #include "mlir/IR/OpDefinition.h"
+#include <optional>
 
 namespace mlir {
 /// A set of arbitrary-precision integers representing bounds on a given integer
index 04fc88a6480cc0fa7b7be5c79ff033111e7834e1..fb8375a12d06642b848e770a5f803d241b284e8f 100644 (file)
@@ -16,6 +16,7 @@
 #include "llvm/ADT/MapVector.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/Support/TypeName.h"
+#include <optional>
 
 namespace mlir {
 class AnalysisManager;
index aa22fce5c03961c9f1c48427eb1b0256b68e95e9..3eace7d4d54292643886ba5813fff62ccfda8556 100644 (file)
@@ -14,6 +14,7 @@
 #include "mlir/Support/LogicalResult.h"
 #include "llvm/ADT/PointerIntPair.h"
 #include "llvm/ADT/Statistic.h"
+#include <optional>
 
 namespace mlir {
 namespace detail {
index 8cb6b708ec7acac13708d4fded8eb897d7966f89..8db982e5364a82c383f3f46825dcd1cf34565037 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "mlir/Support/LLVM.h"
 #include "mlir/Support/TypeID.h"
+#include <optional>
 
 namespace mlir {
 class OperationName;
index d7c354ec6fb97473387aa35504d02f4679350284..877b8672ee25df6eea1ce22e849c7fe7421e2c3c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <functional>
 #include <vector>
+#include <optional>
 
 namespace llvm {
 class Any;
index b0731f100c8042aa8d9c1f296fb79f95a8a16a6a..c4541525923658acc3d62d03451966220773c142 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/Support/TypeID.h"
 #include <functional>
 #include <utility>
+#include <optional>
 
 namespace mlir {
 class OpPassManager;
index e3163fe431e5264b92811a9ef0b60eac3ecce22c..fa7bd6e565592bfb68469f98aeafbf0c1e438805 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/Optional.h"
+#include <optional>
 
 namespace mlir {
 
index f9d877e0707982d8a438c726ff792f6a37b74fa2..3c7335c278dc1b36ee146fc7bbbeaa3084b5f1fc 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringMapEntry.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 namespace mlir {
 
index c68c621299417b64ef48d581fead47374f5951a6..896767a026189761fbb24e92258cafd3f84c6c51 100644 (file)
@@ -10,6 +10,7 @@
 #define MLIR_TOOLS_PDLL_AST_DIAGNOSTIC_H
 
 #include <string>
+#include <optional>
 
 #include "mlir/Support/LLVM.h"
 #include "mlir/Support/LogicalResult.h"
index af8a05e072d624e704d6a33f42c3f8bc72dad77e..51092d5a8434769bf315ce36186818318aa99ee1 100644 (file)
@@ -16,6 +16,7 @@
 #include "llvm/Support/SMLoc.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/TrailingObjects.h"
+#include <optional>
 
 namespace mlir {
 namespace pdll {
index 22cdf8333f98cac0a9523f8798b946865e3a1994..e9f5259c76f99cbc9355e850ab1ad0bbc7416843 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "mlir/Support/LLVM.h"
 #include "mlir/Support/StorageUniquer.h"
+#include <optional>
 
 namespace mlir {
 namespace pdll {
index 90ceda96e97e2fb954216348b2791726916dec42..237aed1af85b05816b739076bd366c94c21982fe 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "mlir/Support/LLVM.h"
 #include "llvm/Support/SourceMgr.h"
+#include <optional>
 
 namespace mlir {
 namespace pdll {
index a4ecaeba15a44589bf1c107365e792db956106e0..d80d53818b2600b6f886d09b9b4aa732dbda16d6 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "mlir/IR/Operation.h"
 #include "llvm/Support/CommandLine.h"
+#include <optional>
 
 namespace mlir {
 template <typename OpTy>
index 6c914d6c1d7ff5696fc92a5fadb26d9f7fc31ba6..c388f14af04e60dd2f33b5940d922831c733ca74 100644 (file)
@@ -16,6 +16,7 @@
 #include "mlir/IR/DialectInterface.h"
 #include "mlir/IR/Location.h"
 #include "mlir/IR/Region.h"
+#include <optional>
 
 namespace mlir {
 
index 636ab5875461f2401143a68e774d294e0cb121cf..6ccc6b8e9318a43f3fdff3f5e3f2d3125d5d8322 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/Analysis/DataFlow/ConstantPropagationAnalysis.h"
 #include "mlir/Interfaces/CallInterfaces.h"
 #include "mlir/Interfaces/ControlFlowInterfaces.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::dataflow;
index f03ac019fd011ea2ed73509b3cfca44437b6840d..95a8c611e066ececc6faa39f9f5e7d4f85018db6 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/Interfaces/InferIntRangeInterface.h"
 #include "mlir/Interfaces/LoopLikeInterface.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 #define DEBUG_TYPE "int-range-analysis"
 
index 1367ff1910982f60d794432a63861cdb8a7e509b..7423744e04454a86639297bcc8edce784f7a080f 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/Support/Debug.h"
 #include <numeric>
+#include <optional>
 
 #define DEBUG_TYPE "presburger"
 
index fe494fc798e503366570516b27fd9cab60f9ea46..413d9a0db255bbe86e1a444203a7f880fc520fc6 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "mlir/Analysis/Presburger/PWMAFunction.h"
 #include "mlir/Analysis/Presburger/Simplex.h"
+#include <optional>
 
 using namespace mlir;
 using namespace presburger;
index be1e4cacbc99e970c981c0246465280c2558f704..d397744eb23ec70dc4e4c19e56877c60561f2cb0 100644 (file)
@@ -18,6 +18,7 @@
 #include <numeric>
 
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 using namespace presburger;
index a457bf768f881a22d22198b2247ce601e1f077aa..0463929d52ed41e7944678172ba6c5b5fa599d40 100644 (file)
@@ -14,6 +14,7 @@
 #include "mlir/IR/Builders.h"
 #include "mlir/IR/OpImplementation.h"
 #include "llvm/Support/Base64.h"
+#include <optional>
 
 namespace mlir {
 namespace detail {
index 477aff08ea25f9e4c6d299e3d306df5c30ea9a3a..e5cbd8bbf86f58f1c632ac66c7939af11d4d39b8 100644 (file)
@@ -12,6 +12,7 @@
 #include "ParserState.h"
 #include "mlir/IR/Builders.h"
 #include "mlir/IR/OpImplementation.h"
+#include <optional>
 
 namespace mlir {
 namespace detail {
index 48faea38cc9f55a3b1d12f10417a3ac771f83b4b..dd392b4121a43417df72ea61ee7e7c941fe1bd18 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "Token.h"
 #include "llvm/ADT/StringExtras.h"
+#include <optional>
 
 using namespace mlir;
 
index 95e67cc2bca7a629dc28a27ba493495a31fb9a5d..3f4db2ea927e785b5a5e73d3865f676637802002 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/ADT/Optional.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/SMLoc.h"
+#include <optional>
 
 namespace mlir {
 
index 63f5b835eb3ca2efd7d4a81e8fbd83399cc06631..cf20ae8f65f5e82f02775850c1a7f67eef7ff863 100644 (file)
@@ -15,6 +15,7 @@
 #include "mlir/IR/BuiltinTypes.h"
 #include "mlir/IR/OpDefinition.h"
 #include "mlir/IR/TensorEncoding.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index af47ac8df7345fb7698ba811278ccbdf49fa4a1c..6885ef9cf2ceb98178def0e83ef2b998a6ef4909 100644 (file)
@@ -9,6 +9,7 @@
 #include "mlir-c/Dialect/SparseTensor.h"
 #include "mlir-c/IR.h"
 #include "mlir/Bindings/Python/PybindAdaptors.h"
+#include <optional>
 
 namespace py = pybind11;
 using namespace llvm;
index f0bf3f556357f09954bd8d1ef4d8993ca006ac41..fbe51a753d36d84377c8a404e4eade7eea4ab4a6 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <string>
 #include <vector>
+#include <optional>
 
 #include "PybindUtils.h"
 
index 0c8c9b8ba79dd9d1d6600a8d0fab615dc3aff537..c598aee7b32f9a951d42953cd94454fc58d6cd34 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <utility>
+#include <optional>
 
 #include "IRModule.h"
 
index f1c7be5e430167e769a38bc620bcecfbec3ecb18..7a9e8eb3a6c54e903cc82f5fa2deb0210bfcb0ef 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/ADT/SmallVector.h"
 
 #include <utility>
+#include <optional>
 
 namespace py = pybind11;
 using namespace mlir;
index 3f50d3bc0af458f0132dff1a5fb4596d0fa2ab57..f3e4e73c1a41c7daf875ba45361c92de2322de21 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <utility>
+#include <optional>
 
 #include "IRModule.h"
 #include "mlir-c/BuiltinAttributes.h"
index 1cdd7e441266821b9ca8e5816b882f8f6575cb07..3614360fc08a2bcbb083c32b7c51670f39c50d77 100644 (file)
@@ -11,6 +11,7 @@
 #include "PybindUtils.h"
 
 #include <vector>
+#include <optional>
 
 #include "mlir-c/Bindings/Python/Interop.h"
 
index 2492ad5d1f2776d578befa1c2d828ac096e66faa..b198b4b652fd63abdaa55271d490740222f35b24 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <utility>
 #include <vector>
+#include <optional>
 
 #include "PybindUtils.h"
 
index 10527af6c9eac4dce780f0d7021c327c85e5530b..ad46e52b3162499069378efcc6a8f3d8eb336efc 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "mlir-c/BuiltinAttributes.h"
 #include "mlir-c/BuiltinTypes.h"
+#include <optional>
 
 namespace py = pybind11;
 using namespace mlir;
index f5364c864c09ece02e8cb599bb7732cb8b62d910..13e8d2034ac74a9d5d448200459262ed5ca395e8 100644 (file)
@@ -25,6 +25,7 @@
 #include "mlir/Parser/Parser.h"
 
 #include <cstddef>
+#include <optional>
 
 using namespace mlir;
 
index 6f81cd8084efb929c2ef8a5785e71a54972486fc..9ae425fe50adfaff4a2448b1f7566ed60e9fc2ed 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/CAPI/Support.h"
 #include "mlir/CAPI/Utils.h"
 #include "mlir/Pass/PassManager.h"
+#include <optional>
 
 using namespace mlir;
 
index ec2cf017581a8ceb30727553017f804a215090f8..61f1c9542884f049a26903976af42251ad948013 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/CAPI/Wrap.h"
 #include "mlir/Interfaces/InferTypeOpInterface.h"
 #include "llvm/ADT/ScopeExit.h"
+#include <optional>
 
 using namespace mlir;
 
index 8154c6bd0647b8bb373791d158f2d96babe91ee1..d924231e4f501628748a6e57508413a7d061544b 100644 (file)
@@ -16,6 +16,7 @@
 #include "mlir/Pass/Pass.h"
 
 #include "llvm/ADT/STLExtras.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_CONVERTAMDGPUTOROCDL
index 5ecf510bb8d5745fd9e9221d1e6a734776c21a5c..5c21708f53d10cbfa4099860e628df58217c19df 100644 (file)
@@ -21,6 +21,7 @@
 #include "mlir/IR/BuiltinOps.h"
 #include "mlir/IR/Matchers.h"
 #include "mlir/Transforms/DialectConversion.h"
+#include <optional>
 
 using namespace mlir;
 
index c48686e877eac5ce96f38df29214f5fe7b7fd173..8918e50a5d27137fa05d723a7627a41a90e9f6f0 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/IR/BuiltinDialect.h"
 #include "mlir/IR/PatternMatch.h"
 #include "mlir/Pass/Pass.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_CONVERTMATHTOLIBM
index 9e965e3083b221ab7a1bde3ab2f5036f36a1b298..7960b95fef581d012ee219cacb7f2b5c88187ef2 100644 (file)
@@ -16,6 +16,7 @@
 #include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
 #include "mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 #define DEBUG_TYPE "memref-to-spirv-pattern"
 
index c3084e503a80691475b6acace952e6218e7e7868..55729de3113a2f0250a0070f51aa28e69ea55a33 100644 (file)
@@ -31,6 +31,7 @@
 #include "mlir/Transforms/RegionUtils.h"
 #include "llvm/ADT/Sequence.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 #define DEBUG_TYPE "loops-to-gpu"
 
index 2664996e03b7a610c4b217715dbd3becb2aac5f3..e9b0ec515dc3fb7bc562a369981507c1a928a779 100644 (file)
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <type_traits>
+#include <optional>
 
 #include "mlir/Conversion/VectorToSCF/VectorToSCF.h"
 
index d7732b84946d1435f7fcf1acb72551c1639a3f57..c082088c58ceb8ff3a8c5e5cb8cf98adadc848fa 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/ADT/TypeSwitch.h"
 
 #include <limits>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::amdgpu;
index 065ad518228a44c831a145594c97284dd0f7183f..e9fc4e58c211211c246a069795247ab43ac1659a 100644 (file)
@@ -26,6 +26,7 @@
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 #define DEBUG_TYPE "affine-analysis"
 
index e8ca0269bc7a166c7e0dff45ad72202194e61c87..4ab91ba4bf08cd53e19f18f0fc6c1b69d38cfa50 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 #define DEBUG_TYPE "analysis-utils"
 
index 43b1637c4d48efe08f90be4b6308f20c54f77c31..cc658f1ddd822dde806f98194e127c91fc8a7f8e 100644 (file)
@@ -32,6 +32,7 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
 #include <algorithm>
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_AFFINEDATACOPYGENERATION
index b8591231b6931d286e6e4133ff8f27e3f9d9d3e4..ee5dd9870abb93ff95094357366657c2a96974f7 100644 (file)
@@ -25,6 +25,7 @@
 #include "mlir/IR/IRMapping.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_AFFINELOOPTILING
index a948b4c2e119c3948284994a016040f3eede1c52..a1cbb9127df8ef241e80db11a12986184876f4ee 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_AFFINELOOPUNROLL
index ec76320ffa4a888ebd92383aa4b14213f42dc95b..55d580b727826a838b9ee4829ae9591af4222a9f 100644 (file)
@@ -46,6 +46,7 @@
 #include "mlir/IR/IRMapping.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Support/CommandLine.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_AFFINELOOPUNROLLANDJAM
index 86ebf1b54a40b0152e4b3847e35a2473aef74bcf..a6503957748b9a7d452b033fbbb4e941ac179ed1 100644 (file)
@@ -28,6 +28,7 @@
 #include "mlir/Support/LLVM.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_AFFINEVECTORIZE
index 27b56054dee9b52a1fdc537370feb9cc98b9fd89..59fdeb8d440b42c7ce21a85e1caa779fe8fa471e 100644 (file)
@@ -21,6 +21,7 @@
 #include "mlir/IR/Operation.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 #define DEBUG_TYPE "loop-fusion-utils"
 
index d92ab6ea0f78aa973eb3c16e5eda7290bb5ecc11..9b3ec21f7797194181e0af8367d8b474b7a474fd 100644 (file)
@@ -30,6 +30,7 @@
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 #define DEBUG_TYPE "loop-utils"
 
index 5c32c9e3093507fc441da448bcced975a9f9e32b..9140031e5d39fa697a0740a54ea9814f0cc359ba 100644 (file)
@@ -25,6 +25,7 @@
 #include "mlir/IR/IRMapping.h"
 #include "mlir/IR/IntegerSet.h"
 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
+#include <optional>
 
 #define DEBUG_TYPE "affine-utils"
 
index f23b61681d75aa877b48b687e271393f3a653620..f56aefaea3579d8551d4601f42a2f435a8afddb5 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/Interfaces/InferIntRangeInterface.h"
 
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 #define DEBUG_TYPE "int-range-analysis"
 
index 59263f699032b2adaddf28e299785ab61b5e8497..ca9aa6890a0e66cbcab8a5be3d5b4db1911e9639 100644 (file)
@@ -15,6 +15,7 @@
 #include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
 #include "mlir/Dialect/Tensor/IR/Tensor.h"
 #include "mlir/IR/Matchers.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::bufferization;
index 1c0f52b5585e82aa59477130864ed8e41fda8cbb..49a600400d376ffcf5df5bc5608043fb29cd17b3 100644 (file)
@@ -20,6 +20,7 @@
 #include "mlir/Pass/Pass.h"
 #include "llvm/ADT/SetOperations.h"
 #include "llvm/ADT/SmallString.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::bufferization;
index 7ff9b0c19eab8d5d5c63e9332d04a862fdd1a0e9..1bc3968f357d9300507992d545e87dbb1ec8579f 100644 (file)
@@ -21,6 +21,7 @@
 #include "mlir/Pass/PassManager.h"
 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
 #include "mlir/Transforms/Passes.h"
+#include <optional>
 
 namespace mlir {
 namespace bufferization {
index efc2398c4a648508afe5273bf992d9aba563d3f6..f67cde9616306edb09bd62e455712b490d53cfb2 100644 (file)
@@ -14,6 +14,7 @@
 #include "mlir/Dialect/MemRef/IR/MemRef.h"
 #include "mlir/IR/Dialect.h"
 #include "mlir/IR/Operation.h"
+#include <optional>
 
 namespace mlir {
 namespace bufferization {
index 7dfd626323b71ff98230580eed27eab4c1d42ad6..2ceb2bf338109c1f7369a8f2628eeb8a1ab49c17 100644 (file)
@@ -41,6 +41,7 @@
 #include "mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h"
 
 #include <random>
+#include <optional>
 
 #include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
 #include "mlir/Dialect/Bufferization/IR/Bufferization.h"
index 6493ab68f016dd9c829a3b8c3e9ae82efac9665c..7520e85091f5d173e91e4e4e48c76a95f78e361a 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Target/TargetMachine.h"
 
 #include <string>
+#include <optional>
 
 #define DEBUG_TYPE "serialize-to-blob"
 
index 692c1e8fb3bf437723252e17dd5978563a083fa5..63c9aac1a0263203278d08400d3d97b9d6e4e1f9 100644 (file)
@@ -55,6 +55,7 @@
 #include "llvm/Transforms/IPO/Internalize.h"
 
 #include <mutex>
+#include <optional>
 
 using namespace mlir;
 
index 598bb9a78ebf17c24e3975cf52eab3b4fb3d2483..8033c13ba2ff3e0bf195d85530cc96b7edd7fc8c 100644 (file)
@@ -12,6 +12,7 @@
 #include "mlir/IR/Builders.h"
 #include "mlir/IR/OpImplementation.h"
 #include "llvm/ADT/SmallString.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::index;
index c74ceb9aa2421f8852c7751532ce30681a6bcf29..ca5e93fbb2e24250cffa08fe332d5ae9de4a4f40 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/BinaryFormat/Dwarf.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::LLVM;
index 327d4be302dd9d56ebb82f2a399d8bcede8e74de..ac3da6336c2691ea3e228fb37551cfbdef0cdb3e 100644 (file)
@@ -35,6 +35,7 @@
 #include "llvm/Support/SourceMgr.h"
 
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::LLVM;
index 5aa8e24cfc4680f14128c6f52c38ce77e0edfafd..3d59a6378dec367fb5558e4f948b2715b6748cd8 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/ADT/ScopeExit.h"
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/TypeSize.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::LLVM;
index f5f4b4507af4e51d264ceb6d0408f24a39345652..2e3355efc78e149668c20a5cf020c90c219287c8 100644 (file)
@@ -31,6 +31,7 @@
 #include "llvm/IR/Type.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/SourceMgr.h"
+#include <optional>
 
 using namespace mlir;
 using namespace NVVM;
index 0b7642fe8f8e5451b85109a8b1a820e416665656..a75813750d3172012cf62adf1265363de3ff43c6 100644 (file)
@@ -39,6 +39,7 @@
 #include "llvm/Support/FormatVariadic.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::linalg;
index b7c24b1967dabb56a4d76eafd56ec177ab9f1d14..6162387b99b4e0c96c7b6fbb048543365c529d79 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/IR/PatternMatch.h"
 #include "mlir/Support/LLVM.h"
 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::linalg;
index 5660704606d0cd97228a8636be71699da21ebe8e..0c6e9fb74a35256b4d39f4fb30771107522965fb 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/Dialect/Utils/IndexingUtils.h"
 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_LINALGDATALAYOUTPROPAGATION
index 15b3304af7c0331a3d16441de055503c84e022b9..56b44e949267289f104c6c339af0fabfed852bf0 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "mlir/Dialect/Affine/IR/AffineOps.h"
 #include "mlir/Dialect/Linalg/IR/Linalg.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::linalg;
index 58216fee60303b9624505b6cbb3fe52714ba1d17..de501a6a3f00a1859e3445d2fe3e162e5284f838 100644 (file)
@@ -24,6 +24,7 @@
 #include "mlir/Support/LLVM.h"
 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
 #include <utility>
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_LINALGFOLDUNITEXTENTDIMS
index 3f6266d8393eb8f5ac2e2fdca40dc85b8e568274..fa04cf503766dc35fc22fc1355fd367071dfe192 100644 (file)
@@ -31,6 +31,7 @@
 #include "llvm/Support/Debug.h"
 
 #include <set>
+#include <optional>
 
 #define DEBUG_TYPE "linalg-fusion"
 
index bedf92eb9985ef09d14031442d31e57995a2684d..f6bd4de019d497afe40647e01ab40d6f0765175e 100644 (file)
@@ -21,6 +21,7 @@
 #include "mlir/IR/AffineExpr.h"
 #include "mlir/IR/AffineMap.h"
 #include "mlir/Support/LLVM.h"
+#include <optional>
 
 using namespace mlir;
 using namespace linalg;
index 7282215999fd4fa6b3d3de07a850c06c5aefb5a7..3df9cad8a29b30e6c46e24f0359b3929460487cb 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <utility>
+#include <optional>
 
 #include "mlir/Analysis/SliceAnalysis.h"
 #include "mlir/Dialect/Arith/IR/Arith.h"
index 58c0a7b7e62b31e8c5585c836a26ac993e584cd9..b54275045ba29545421c6b6e4c787efd5c6fd741 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/Dialect/Tensor/IR/Tensor.h"
 #include "mlir/Dialect/Utils/StaticValueUtils.h"
 #include "mlir/Interfaces/TilingInterface.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::linalg;
index 5f367d1a240a8b6424b46e8d3416cb6dc81b9b02..f421d9a72e278aa5093f9b317c8969efe49e40b0 100644 (file)
@@ -31,6 +31,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
 #include <type_traits>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::linalg;
index 1f622a4037a61307a06cdbe95d0de71a1d0048e3..4c3608326e0ceedf285b1cb1f7108b550583f137 100644 (file)
@@ -35,6 +35,7 @@
 #include "mlir/Pass/Pass.h"
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 #define DEBUG_TYPE "linalg-utils"
 
index 78186ba48cbd1e7a1b9543ef3873f0e989a66296..f379b4c0c10ad92b29662ddf548fc210ed915cbf 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/Dialect/CommonFolders.h"
 #include "mlir/Dialect/Math/IR/Math.h"
 #include "mlir/IR/Builders.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::math;
index 6dbcebb64165d77fab751fb14333c932bcc2b96c..021f7ecfe2408560025fcc78f1bddbd276c2637e 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/Dialect/MemRef/IR/MemRef.h"
 #include "mlir/Interfaces/SideEffectInterfaces.h"
 #include "mlir/Transforms/InliningUtils.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::memref;
index 4613d603ee5addd0245a166e1d7cdc1500b92962..06c9c657a34dbf05e36e335f500f7987946ccd08 100644 (file)
@@ -22,6 +22,7 @@
 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallBitVector.h"
+#include <optional>
 
 namespace mlir {
 namespace memref {
index 7778d943587d59de773adac8bad6993ca97abb27..511cae630bd5ec16529193716a263bfb81c9dbc0 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/Interfaces/InferTypeOpInterface.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/ADT/TypeSwitch.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdl;
index 9998fcabd8290cdcde38d607ab7b253e4ad3514f..e2454a0b9a755ef146462afeb84a16dcb7838a4b 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/Dialect/SCF/Transforms/Passes.h"
 #include "mlir/Dialect/SCF/Transforms/Transforms.h"
 #include "mlir/Transforms/DialectConversion.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::scf;
index 5ea8a6778023dd1a8e8eae594190989700d5cdc7..1fa45cbdf97d878bbe20bd707e1ef0c8a91052a3 100644 (file)
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <utility>
+#include <optional>
 
 #include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
 
index f23a91936ad78136a55d95017ec34280dee8410c..42ded31b69022e89b0ed33ff22d5c6590b2983e2 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/IR/FunctionInterfaces.h"
 #include "mlir/IR/Operation.h"
 #include "mlir/IR/SymbolTable.h"
+#include <optional>
 
 using namespace mlir;
 
index 22a295346643b9b26f4833ff37a14bff461194d1..027bfab19a473464be4e88450be60a4d82c64014 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/ADT/SetVector.h"
 #include "llvm/ADT/SmallSet.h"
 #include "llvm/ADT/StringExtras.h"
+#include <optional>
 
 namespace mlir {
 namespace spirv {
index 59aa111c1e773de75b0d2131d0ec6345d310d082..d89f532250b6973dacb4a2d459359c1363bee33c 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "CodegenEnv.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::sparse_tensor;
index 10a2d883fdddc99b1cceb5ad58b1e71aa7a1ba63..341cfb9dbb275671188ecaf85b0b70b85670ba7e 100644 (file)
@@ -20,6 +20,7 @@
 #include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
 #include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
 #include "mlir/Dialect/SparseTensor/Utils/Merger.h"
+#include <optional>
 
 namespace mlir {
 namespace sparse_tensor {
index 9bc3d182afe9de110d3d18f9120c168cbd8df207..fd91078e44ba03517b7a7dbc1b7269f75645c707 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/IR/Matchers.h"
 #include "mlir/IR/Types.h"
 #include "mlir/IR/Value.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::sparse_tensor;
index eaa4b420bbcd3a515ec77692ba02853ecc071325..e900936f894b863ee01d45b0d5486553b61a6ed8 100644 (file)
@@ -10,6 +10,7 @@
 #include "SparseTensorStorageLayout.h"
 
 #include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
+#include <optional>
 
 using namespace mlir;
 using namespace sparse_tensor;
index 0ce37620061a6a640a00a3a816c07edc1a591bf1..ab85c5fa2fb02e5917af1855667bdcbfa1b43aa3 100644 (file)
@@ -27,6 +27,7 @@
 #include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
 #include "mlir/Dialect/Tensor/IR/Tensor.h"
 #include "mlir/Transforms/DialectConversion.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::sparse_tensor;
index f75070ffadd81c8b36cb57d98fd3ad00a60665cf..59f956f1f1106af5df0c390cd5eab1e5057e7a41 100644 (file)
@@ -33,6 +33,7 @@
 #include "mlir/IR/Matchers.h"
 #include "mlir/IR/TensorEncoding.h"
 #include "llvm/ADT/SmallBitVector.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::sparse_tensor;
index 748f564109fd0335c3020e1734fb43de1294fde8..1d06570e82778b05a0600bc6d5cf02c98f115576 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "mlir/IR/Operation.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 namespace mlir {
 namespace sparse_tensor {
index 2c17b4a38b13eec3fa33a03f4c31520adaf5f0e9..55e53644bf5ef706ac12aa247792ba667578d077 100644 (file)
@@ -28,6 +28,7 @@
 #include "llvm/ADT/SmallBitVector.h"
 #include "llvm/ADT/StringRef.h"
 #include <algorithm>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::tensor;
index 272f7675df44c46e25ead95c693b28e520759079..fb4374eae6432eb71108b92eaea720fcacb89b77 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/IR/BuiltinTypes.h"
 #include "mlir/IR/TypeUtilities.h"
 #include "llvm/Support/FormatVariadic.h"
+#include <optional>
 
 using namespace mlir;
 
index 3f8015cccba3fb8fc3374e9183a7db4944d4ed94..71ff38fffd99c3ffee2dc153313d3b24424fbad8 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/IR/BuiltinAttributes.h"
 
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 
index c0f55b35a0f84a053a457e572a223834b8a42ee9..2e6499f7f3ba0d4ac0295b34bed26d536544eb88 100644 (file)
@@ -12,6 +12,7 @@
 #include "mlir/IR/Builders.h"
 
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 
index 092c457d3bed96b54aed6493f4de00473aa3431a..6e2e2d496ecc9e14daa59d60954bd7cd9a79231e 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <type_traits>
+#include <optional>
 
 #include "mlir/Dialect/Affine/IR/AffineOps.h"
 #include "mlir/Dialect/Arith/IR/Arith.h"
index 1b316083258ce9d02f89f1ca0bb01c7762bb59b7..09ff4ddd2e36480a9622af2f7ab0f0f6037f520b 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/ADT/MapVector.h"
 #include "llvm/ADT/STLExtras.h"
 #include <numeric>
+#include <optional>
 
 #define DEBUG_TYPE "vector-unrolling"
 
index 518fd160667802ef3c5fa67c11433e021a31808b..dddecc4caf1b67beaeb2cd0e14f02f85a67a04e0 100644 (file)
@@ -39,6 +39,7 @@
 #include <cstdint>
 #include <numeric>
 #include <utility>
+#include <optional>
 
 using namespace mlir;
 using llvm::Error;
index d783f5f6d83f510917e392445a947e2f4ebe4f83..12af9d31a3f9a16aaa1632f23a653079415f1337 100644 (file)
@@ -17,6 +17,7 @@
 #include "mlir/Support/TypeID.h"
 #include "llvm/ADT/STLExtras.h"
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index c6873d32dadd9b13fc5d033bc77f104dbcb46e56..f25b1a12b1b73c02b7ef79b75a068a4b035dfea4 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/raw_ostream.h"
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 
index d92bde34b705d7240bc73523124c223dd6386527..5839e2bed4aa35d90b4a5705a8b5d4125173a124 100644 (file)
@@ -46,6 +46,7 @@
 #include "llvm/Support/Threading.h"
 
 #include <tuple>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index 0263a15ab2c2ae5f5e9fff2f122db9dcdc4bed18..b5810ff5b950244fce6c67c398c301cc0aa5bf45 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/ADT/Sequence.h"
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/Endian.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index ef8b1a17792556f0dfe36963a566e336171e674a..be1ec397107b806ff2af53647ace3cff7d27f7f0 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index 60a2fb2e3c591ef4e27e2c90ce29c29b2fa9b77a..a47fe9bfb89521d1f2d9367bfb6ee36e0580eaf3 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "mlir/IR/DialectResourceBlobManager.h"
 #include "llvm/ADT/SmallString.h"
+#include <optional>
 
 using namespace mlir;
 
index 4415605a1273e59f6ae133d8a7c3aad760351725..a354eed67b17a9780e18fd5d2d8ee95453fef600 100644 (file)
@@ -37,6 +37,7 @@
 #include "llvm/Support/ThreadPool.h"
 #include "llvm/Support/raw_ostream.h"
 #include <memory>
+#include <optional>
 
 #define DEBUG_TYPE "mlircontext"
 
index e6503383be4fabf186c49e57187f40fae45f27ad..dc6b26dab961dafaf7901037ea49c0dc555f127f 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/ADT/BitVector.h"
 #include "llvm/Support/SHA1.h"
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 
index 606b3c6041fe2c854f8e39d39835d1fa3b2e59c4..9eeb7b4d7925a2a6012136f2c0c6d3f19b846b18 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/IR/Operation.h"
 
 #include "llvm/ADT/DenseSet.h"
+#include <optional>
 
 using namespace mlir;
 
index 741a0a4fd5b904d2826e87ba2a44bf8ca23a9de5..bec7c0be7671f178bd30b6545e0c41de1f066a09 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringSwitch.h"
+#include <optional>
 
 using namespace mlir;
 
index 96364bd81b9f0197c3572412c012d146853fc438..60fa3e13854bd727a56dd54afa293106c24a7d7d 100644 (file)
@@ -36,6 +36,7 @@
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Regex.h"
 #include <atomic>
+#include <optional>
 
 using namespace mlir;
 
index b72045aede3d03e333eab1632d6f40a23c070873..212eea6de29267dfd22bffb03388cde3cd867ee1 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "mlir/Interfaces/InferIntRangeInterface.h"
 #include "mlir/IR/BuiltinTypes.h"
+#include <optional>
 #include "mlir/Interfaces/InferIntRangeInterface.cpp.inc"
 
 using namespace mlir;
index 8dab26714159eaf370987ec1440c9a35adde09dc..2bb4f1ae186a4118d5eccbc79ec1d0c0c16bf14e 100644 (file)
@@ -26,6 +26,7 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/Threading.h"
 #include "llvm/Support/ToolOutputFile.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index cc9eab3005a5f09ad728c6c4237ea19939a2058b..c286b3ac2a3eb39fbf3b84e2e8659bd710c408cd 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <utility>
+#include <optional>
 
 #include "mlir/Pass/Pass.h"
 #include "mlir/Pass/PassManager.h"
index c0bfb980423ab96503ce4fc51ffccbb3f973793a..c0100cc52bbcf9554a47c4a52066b816714ef291 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/Support/Threading.h"
 
 #include <chrono>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;
index 89735f068069ea624fddb0039f67e006fb05455f..6b1122033c91445ee334a0fbd120bda88141e946 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/Support/Format.h"
 #include "llvm/Support/FormatVariadic.h"
 #include <numeric>
+#include <optional>
 
 #define DEBUG_TYPE "pdl-bytecode"
 
index fc6cc968aa3dea61ac9e9d23d0b97a7b897288e1..947bada34d5bc91654bebb0969fc13cc5aa7f8af 100644 (file)
@@ -13,6 +13,7 @@
 #include "mlir/Interfaces/SideEffectInterfaces.h"
 #include "mlir/Pass/Pass.h"
 #include "mlir/Pass/PassManager.h"
+#include <optional>
 
 using namespace mlir;
 
index b2380ed2d02432d2c77136e343ac9da29d00d4d4..48eb1e84adf3c0da71e74a118390e0ac846d456a 100644 (file)
@@ -26,6 +26,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 #include <atomic>
+#include <optional>
 #include <chrono>
 
 using namespace mlir;
index c72f29be3f9c3a150e2f01fd018b20dd23739404..c9ad8a8ff34aaaa4b3438da5786c066e99fce30b 100644 (file)
@@ -44,6 +44,7 @@
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
 #include "llvm/Transforms/Utils/Cloning.h"
 #include "llvm/Transforms/Utils/ModuleUtils.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::LLVM;
index 847a3aa5fc4396670d89305c69a87742f53bb8e7..aa64af7651ccd097453fcb86c639920783345cfa 100644 (file)
@@ -20,6 +20,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/Debug.h"
+#include <optional>
 
 using namespace mlir;
 
index 642c22637fe1943d0b074408722eee3e8e7f67d2..73af4330997293d5a49e3edfed82636d3e3bddda 100644 (file)
@@ -29,6 +29,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/SaveAndRestore.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 using namespace mlir;
 
index a4c6d6a8e18d09fc020881215a2669d28d06c681..72c68a865cd0145291a299e20161c2b34895b15f 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/ScopedPrinter.h"
 #include <cstdint>
+#include <optional>
 
 namespace mlir {
 namespace spirv {
index f39bfebfd768c2b34becd5a0123bb4748213965e..7a6a0479513ad7bd325ea3d748660d362149080f 100644 (file)
@@ -25,6 +25,7 @@
 #include "llvm/ADT/bit.h"
 #include "llvm/Support/Debug.h"
 #include <cstdint>
+#include <optional>
 
 #define DEBUG_TYPE "spirv-serialization"
 
index 43b602204b01f4c6f7000e72c1bfcc4b247f1826..c2b8acaf473caef6047a358639e821a4ab7a0444 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/SaveAndRestore.h"
 #include "llvm/Support/ScopedPrinter.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll::ast;
index 0129f9fd1d0bce4af30edf156971a3adaf7e8cad..9842e39d89ebc26ad0049c3defdc9168b668ce37 100644 (file)
@@ -10,6 +10,7 @@
 #include "mlir/Tools/PDLL/AST/Context.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/TypeSwitch.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll::ast;
index 55351154d93b83bc3af09cced3e98f3ee092e3fb..4ee291391246bd8c48df7a1b49c0f11696cdb35a 100644 (file)
@@ -9,6 +9,7 @@
 #include "mlir/Tools/PDLL/AST/Types.h"
 #include "TypeDetail.h"
 #include "mlir/Tools/PDLL/AST/Context.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll;
index 28da3db3f4e6876317f35dd72b642cde9955a389..3c490dff7d2d76b4312ce4688c7e7b89c1af032a 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/FormatVariadic.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll;
index 6cb15dd20d937602aa4da9961316c7453fd5e24e..432c64964f7a4482bf24f7a9ef9a55e048621d4e 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/ADT/ScopedHashTable.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/TypeSwitch.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll;
index a3933c9c73b204a9c25cd0e23db0e871e4beec52..61a9df92c80479540d5e0ff93e0f91fe9ca8a407 100644 (file)
@@ -12,6 +12,7 @@
 #include "mlir/Tools/PDLL/ODS/Operation.h"
 #include "llvm/Support/ScopedPrinter.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll::ods;
index bbb68cac20511d7e1d6daef91f6cf10035c666ab..61a1f47f02320822713da5e6b3f7081cf27a4cb6 100644 (file)
@@ -32,6 +32,7 @@
 #include "llvm/TableGen/Error.h"
 #include "llvm/TableGen/Parser.h"
 #include <string>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll;
index 14e8ae3f8382cf6d84e389be8c0d6c4d98db673d..0a001a03faaccb3b307a98b4a63c9cd62099bd2c 100644 (file)
@@ -33,6 +33,7 @@
 #include <string>
 #include <utility>
 #include <vector>
+#include <optional>
 
 namespace mlir {
 struct LogicalResult;
index 5fc74970e533fb8c8e992172314f20e80014625a..d65f77c4207878c16e2b70dc958aa1f9828dfbaf 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "SourceMgrUtils.h"
 #include "llvm/Support/Path.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::lsp;
index 75f739d6b064be3a967d43188663ee24410c8aed..da57f3df3c8ef31967bd8339740e309ae56a1f90 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "Protocol.h"
 #include "llvm/Support/SourceMgr.h"
+#include <optional>
 
 namespace mlir {
 namespace lsp {
index ddb7622347f85b69ce54f2cb167873c3e6388165..a18603eb33a738449073801d02981013fc83cc11 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/Support/Error.h"
 #include <system_error>
 #include <utility>
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::lsp;
index 3deff0f2b6b5f8915d49eec4ce54eb20e707a483..81053c100323496ef0bf5cdeefe8da173490a2c0 100644 (file)
@@ -13,6 +13,7 @@
 #include "Protocol.h"
 #include "llvm/ADT/FunctionExtras.h"
 #include "llvm/ADT/StringMap.h"
+#include <optional>
 
 #define DEBUG_TYPE "mlir-lsp-server"
 
index 7a679d844920cf2448d89576fd99630d5012e935..11015a3ff5a9fc704bff26ce939ad8a4849805c6 100644 (file)
@@ -19,6 +19,7 @@
 #include "mlir/Parser/Parser.h"
 #include "llvm/Support/Base64.h"
 #include "llvm/Support/SourceMgr.h"
+#include <optional>
 
 using namespace mlir;
 
index e9e7541466226e05f4e212f5e74edeee7fecf1f5..0224724af1c56887da147933c2e134c54c1e5e01 100644 (file)
@@ -12,6 +12,7 @@
 #include "mlir/Support/LLVM.h"
 #include "llvm/Support/Error.h"
 #include <memory>
+#include <optional>
 
 namespace mlir {
 class DialectRegistry;
index 9b525cd53fc213ff0dc5597a97cdd411e5ed559e..8be034f846652aca15cf0d13128c0773b54450c6 100644 (file)
@@ -14,6 +14,7 @@
 #include "Protocol.h"
 #include "llvm/ADT/FunctionExtras.h"
 #include "llvm/ADT/StringMap.h"
+#include <optional>
 
 #define DEBUG_TYPE "pdll-lsp-server"
 
index f9f7ae7d852d241902c3a933e441262c9ddd70c9..53afc8fb2437ed607ab2595445626a8a3079ecc3 100644 (file)
@@ -30,6 +30,7 @@
 #include "llvm/ADT/TypeSwitch.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::pdll;
index f77a68aa8681c09785a02db5edbdcf94ac4561b3..68c807fa8ef91abcc2e43e2ec45a8286c8f5674d 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/ADT/StringRef.h"
 #include <memory>
 #include <string>
+#include <optional>
 
 namespace mlir {
 namespace lsp {
index ca8ea1ca04aaad7775da71613110e20267f16f26..2f578186dfe4d4fb70539cafbc900797b2daf465 100644 (file)
@@ -18,6 +18,7 @@
 #include "mlir/Parser/Parser.h"
 #include "mlir/Tools/ParseUtilities.h"
 #include "llvm/Support/SourceMgr.h"
+#include <optional>
 
 using namespace mlir;
 
index e51a2245077c54ef7c639cec37a325f19ba75198..c8445adbe81d86501b78281d83982ce964018bcc 100644 (file)
@@ -14,6 +14,7 @@
 #include "TableGenServer.h"
 #include "llvm/ADT/FunctionExtras.h"
 #include "llvm/ADT/StringMap.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::lsp;
index 4bfee8435db43380d98ebdef4d0cf0e150ae730a..55a340271d4cfeb3aa57931fd9657be214ac488f 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/Support/Path.h"
 #include "llvm/TableGen/Parser.h"
 #include "llvm/TableGen/Record.h"
+#include <optional>
 
 using namespace mlir;
 
index dd994a3ddefb9e1ade51e0ff99ef099b22f52f10..d8c79e7dfff71c6872fb19e60876ff8f970f92f8 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/ADT/StringRef.h"
 #include <memory>
 #include <string>
+#include <optional>
 
 namespace mlir {
 namespace lsp {
index f020be2a220616874bdca9f1a5fad33e6ec2d4f9..44b0560b7ba3b00394d24af7f10120ebbd17bbfa 100644 (file)
@@ -14,6 +14,7 @@
 #include "mlir/Support/FileUtilities.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ToolOutputFile.h"
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_LOCATIONSNAPSHOT
index 6a3453053226381c519a601a26ce0314194af87f..e47ce0480ac1b7baba01a7d8f020e67994d0e095 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/ADT/MapVector.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 #define DEBUG_TYPE "inlining"
 
index b4b069e7327ad90c7a049fdee1fbbcb39d413d18..92505e58603d1f0424ab0c08b7e3d63b3ff99b12 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Support/Format.h"
 #include "llvm/Support/GraphWriter.h"
 #include <utility>
+#include <optional>
 
 namespace mlir {
 #define GEN_PASS_DEF_VIEWOPGRAPH
index d4f03ecd1f5eb12e9a749b764d221e0e30e7d899..e79e690cc5c3c4f9b3d5451599b8e932a0e169f1 100644 (file)
@@ -12,6 +12,7 @@
 #include "mlir/Analysis/DataFlow/SparseAnalysis.h"
 #include "mlir/Interfaces/SideEffectInterfaces.h"
 #include "mlir/Pass/Pass.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::dataflow;
index 38c3df0021e6f560a3ef7f6136259c1afb4ae4b4..ecacc36c479f5accfa2df324c1524515125d0dae 100644 (file)
@@ -9,6 +9,7 @@
 #include "mlir/Analysis/DataFlowFramework.h"
 #include "mlir/Dialect/Func/IR/FuncOps.h"
 #include "mlir/Pass/Pass.h"
+#include <optional>
 
 using namespace mlir;
 
index 7310958db6f0662c8a2c45579807e945d3edaf54..d3c5fa4e252ff0b4052e00df5c746c5e833fec3f 100644 (file)
@@ -9,6 +9,7 @@
 #include "mlir/Dialect/Shape/Analysis/ShapeMappingAnalysis.h"
 #include "mlir/IR/BuiltinOps.h"
 #include "mlir/Pass/Pass.h"
+#include <optional>
 
 using namespace mlir;
 
index 6cbd53620cbde85e82d6613d3cd51486991dcd60..56e6bd22b9458c63a221316f7717c3e9a1426720 100644 (file)
@@ -32,6 +32,7 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringSwitch.h"
+#include <optional>
 
 #include <numeric>
 
index ff37631acaab0f08134d542e350987fc69761980..067c9b203adc81b21c305a8e92d5e40a153e200f 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/ADT/Hashing.h"
 #include "llvm/ADT/SetVector.h"
 #include "llvm/ADT/TypeSwitch.h"
+#include <optional>
 
 using namespace mlir;
 using namespace test;
index ad1a8a2e7ce35ff6c2cead1ef8306abf2b3ccc14..bb3751d28182522a228f2641b5e27cdbab6fdf46 100644 (file)
@@ -15,6 +15,7 @@
 #define MLIR_TESTTYPES_H
 
 #include <tuple>
+#include <optional>
 
 #include "TestTraits.h"
 #include "mlir/IR/Diagnostics.h"
index 48dc95a1a431aeb4f05d5834593e09acccc45f79..b0f11ffeafffd0eaa92e091173aa9179ea54b4a2 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <type_traits>
+#include <optional>
 
 #include "mlir/Analysis/SliceAnalysis.h"
 #include "mlir/Dialect/Affine/IR/AffineOps.h"
index 382847d9a6b66480b9b2010d567b3d5e8a74801a..a7e90d4a977d0b074bef9877e060ad1d90cbcd69 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <utility>
+#include <optional>
 
 #include "mlir/Dialect/Affine/IR/AffineOps.h"
 #include "mlir/Dialect/Func/IR/FuncOps.h"
index 85d3a763df1e0a6b5a8c2afa596762a73b11279c..cb4ce7106d0e69ed207ebe7122407307547f6fdd 100644 (file)
@@ -16,6 +16,7 @@
 #include "mlir/Pass/PassRegistry.h"
 #include "mlir/Support/TypeID.h"
 #include "mlir/Transforms/FoldUtils.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::dataflow;
index 6f2e07798361b447777141b755f53cd86775b32e..67c8b6d709638c6a154806ecf724214ff7cabfb8 100644 (file)
@@ -29,6 +29,7 @@
 #include "llvm/TableGen/TableGenBackend.h"
 
 #include <list>
+#include <optional>
 
 using llvm::ArrayRef;
 using llvm::formatv;
index ae9df279dd27412ff9085d4c46f960e79f91d5e2..b3d6d54de782b230abeac3dfcc8c846df69b9241 100644 (file)
@@ -16,6 +16,7 @@
 #include <gtest/gtest.h>
 
 #include <numeric>
+#include <optional>
 
 using namespace mlir;
 using namespace presburger;
index 3e4d272ca11f72878e8d9caddcbac6db99541107..17feea052da1c50726f6ec097318405a34aeb82d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <gmock/gmock.h>
 #include <gtest/gtest.h>
+#include <optional>
 
 using namespace mlir;
 using namespace presburger;
index 8ff6d75b3499affb6b776930d339ceecc7299485..8524826e5655cad467d528bd006fc90c21b0f622 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <gmock/gmock.h>
 #include <gtest/gtest.h>
+#include <optional>
 
 using namespace mlir;
 using namespace presburger;
index 70ccb484bb4278940e85175d7ec54b3c3491021b..e18f0ebd09dc2d79cdcf0db113fdfbcecc0b004e 100644 (file)
@@ -21,6 +21,7 @@
 #include "mlir/Support/LLVM.h"
 
 #include <gtest/gtest.h>
+#include <optional>
 
 namespace mlir {
 namespace presburger {
index a1813e6b1996dbece28fcec8a55b0fe6e9f48742..c4af61bf944a89f8f306a135997f50b980a21ee7 100644 (file)
@@ -11,6 +11,7 @@
 #include "mlir/IR/BuiltinAttributes.h"
 #include "mlir/IR/BuiltinTypes.h"
 #include "gtest/gtest.h"
+#include <optional>
 
 using namespace mlir;
 using namespace mlir::detail;