diff options
author | Jakub Kuderski <jakub@nod-labs.com> | 2023-09-05 14:52:04 -0400 |
---|---|---|
committer | Jakub Kuderski <jakub@nod-labs.com> | 2023-09-05 14:52:27 -0400 |
commit | c8544d280a8ef1e41efc5c036e00dc671edbb93d (patch) | |
tree | f999202d8a5a23e9831c5619d0cfb111ce15f5c0 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | c1440869979c67d0256be3f6a2bc2dfcf3b5092a (diff) | |
download | llvm-c8544d280a8ef1e41efc5c036e00dc671edbb93d.zip llvm-c8544d280a8ef1e41efc5c036e00dc671edbb93d.tar.gz llvm-c8544d280a8ef1e41efc5c036e00dc671edbb93d.tar.bz2 |
[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
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions