diff --git a/mlir/include/mlir/CAPI/IntegerSet.h b/mlir/include/mlir/CAPI/IntegerSet.h --- a/mlir/include/mlir/CAPI/IntegerSet.h +++ b/mlir/include/mlir/CAPI/IntegerSet.h @@ -19,6 +19,6 @@ #include "mlir/CAPI/Wrap.h" #include "mlir/IR/IntegerSet.h" -DEFINE_C_API_METHODS(MlirIntegerSet, mlir::IntegerSet); +DEFINE_C_API_METHODS(MlirIntegerSet, mlir::IntegerSet) #endif // MLIR_CAPI_INTEGERSET_H diff --git a/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp b/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp --- a/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp +++ b/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp @@ -1353,14 +1353,15 @@ } } assert(parentFound && "Child loop not nested in any parent loop"); + (void)parentFound; // Check that each loop at this level is not nested in another loop from // this level. -#ifndef NDEBUG - for (AffineForOp sibling : loops[i]) + for (AffineForOp sibling : loops[i]) { assert(!sibling->isProperAncestor(loop) && "Loops at the same level are nested"); -#endif + (void)sibling; + } } } } diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp --- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp @@ -146,7 +146,7 @@ results.push_back(result); } return VectorizationResult{VectorizationStatus::NoReplace, nullptr}; -}; +} /// Generic vectorization for a single operation `op`, given already vectorized /// operands carried by `bvm`. Vectorization occurs as follows: diff --git a/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp b/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp --- a/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp +++ b/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp @@ -323,6 +323,9 @@ format(std::get<6>(key)) {} Type elementType; + // warning (for all the bitfields below): + // _mlir::spirv::detail::ImageTypeStorage::dim_ is too small to hold all + // values of _enum class mlir::spirv::Dim_ Dim dim : getNumBits(); ImageDepthInfo depthInfo : getNumBits(); ImageArrayedInfo arrayedInfo : getNumBits(); diff --git a/mlir/lib/IR/TypeDetail.h b/mlir/lib/IR/TypeDetail.h --- a/mlir/lib/IR/TypeDetail.h +++ b/mlir/lib/IR/TypeDetail.h @@ -51,6 +51,8 @@ } unsigned width : 30; + // warning: _mlir::detail::IntegerTypeStorage::signedness_ is too small to + // hold all values of _enum mlir::IntegerType::SignednessSemantics_ IntegerType::SignednessSemantics signedness : 2; };