[all-commits] [llvm/llvm-project] d6a88e: [GlobalISel] Add convenience matchers for nots and...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Fri Nov 13 13:54:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d6a88e7e194dab3b71d7cb560b73835df69d1737
      https://github.com/llvm/llvm-project/commit/d6a88e7e194dab3b71d7cb560b73835df69d1737
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
    M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp

  Log Message:
  -----------
  [GlobalISel] Add convenience matchers for nots and all-ones constants

Add a convenience matcher which handles

```
G_XOR %not_reg, -1
```

And a convenience matcher which returns true if an integer constant is
all-ones.

Differential Revision: https://reviews.llvm.org/D91459




More information about the All-commits mailing list