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 wi

Programming / Compilers / LLVM - Chandler Carruth [gmail.com] - 4 January 2014 21:28 UTC

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!

2726908 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.
include/llvm/Support/PatternMatch.h | 90 +++++++++++++++++++++++++++++++++++
unittests/IR/PatternMatch.cpp | 74 ++++++++++++++++++++++++++++
2 files changed, 164 insertions(+)

Upstream: github.com


  • Share