[mlir] Support attributes in `matchPattern`
The primary motivation is to we have a simple mechanism to extract values from attributes in folders and canon patterns without having to re-fold constants or write nested conditions over attribute types. Matching over attributes composes especially well with fold adaptors. Update folds in Arith and SPIRV dialects to match over attributes, where applicable. Reviewed By: mehdi_amini, zero9178 Differential Revision: https://reviews.llvm.org/D159437
parent
c1440869
Please register or sign in to comment