[Mlir-commits] [mlir] [mlir][spirv] Implement vector type legalization in function signatures (PR #98337)
Angel Zhang
llvmlistbot at llvm.org
Wed Jul 10 10:18:02 PDT 2024
================
@@ -40,7 +40,15 @@ def ConvertToSPIRVPass : Pass<"convert-to-spirv"> {
let description = [{
This is a generic pass to convert to SPIR-V.
}];
- let dependentDialects = ["spirv::SPIRVDialect"];
+ let dependentDialects = [
+ "spirv::SPIRVDialect",
+ "vector::VectorDialect",
+ ];
+ let options = [
+ Option<"runSignatureConversion", "run-signature-conversion", "bool",
+ /*default=*/"false",
+ "Run function signature conversion to convert vector types">
+ ];
----------------
angelz913 wrote:
The `GreedyPatternRewriteDriver` performs dead-code elimination, which will affect the other `ConvertToSPIRV` unit tests (e.g. functions with no return value and just check for individual dialect conversions).
https://github.com/llvm/llvm-project/pull/98337
More information about the Mlir-commits
mailing list