Add support to the pattern match library for matching NSW and NUW
authorChandler Carruth <chandlerc@gmail.com>
Sun, 5 Jan 2014 03:28:29 +0000 (03:28 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 5 Jan 2014 03:28:29 +0000 (03:28 +0000)
commit272690897ed88b0a53538aefafd7d084b3a7243c
tree6e8366fed7759721a622f36ba0adb47754b4a647
parentb54a0ac20ac76f845026eab8fca112d1d40927de
Add support to the pattern match library for matching NSW and NUW
instructions. I needed this for a quick experiment I was making, and
while I've no idea if that will ever get committed, I didn't want to
throw away the pattern match code and for anyone else to have to write
it again. I've added unittests to make sure this works correctly.

In fun news, this also uncovered the IRBuilder bug. Doh!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198541 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/PatternMatch.h
unittests/IR/PatternMatch.cpp