aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorrdzhabarov <rdzhabarov@google.com>2020-10-14 10:51:16 -0700
committerJacques Pienaar <jpienaar@google.com>2020-10-14 11:05:13 -0700
commit008c0ea6a4115101694aab0451c89754dee1a5de (patch)
tree1142fab2e5ccf35c2e130ecfeebe736921b868ff /clang/lib/Frontend/CompilerInvocation.cpp
parentff30bff136743817dae66029f512cdb3a009937f (diff)
downloadllvm-008c0ea6a4115101694aab0451c89754dee1a5de.zip
llvm-008c0ea6a4115101694aab0451c89754dee1a5de.tar.gz
llvm-008c0ea6a4115101694aab0451c89754dee1a5de.tar.bz2
[DDR] Introduce implicit equality check for the source pattern operands with the same name.
This CL allows user to specify the same name for the operands in the source pattern which implicitly enforces equality on operands with the same name. E.g., Pat<(OpA $a, $b, $a) ... > would create a matching rule for checking equality for the first and the last operands. Equality of the operands is enforced at any depth, e.g., OpA ($a, $b, OpB($a, $c, OpC ($a))). Example usage: Pat<(Reshape $arg0, (Shape $arg0)), (replaceWithValue $arg0)> Note, this feature only covers operands but not attributes. Current use cases are based on the operand equality and explicitly add the constraint into the pattern. Attribute equality will be worked out on the different CL. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D89254
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions