[PATCH] D55141: [ValueTracking] Make unit tests easier to write; NFC

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 30 12:07:40 PST 2018


nikic created this revision.
nikic added a reviewer: spatel.
Herald added a subscriber: llvm-commits.

This makes unit tests for ValueTracking and in particular computeKnownBits easier to write, by generalizing the existing MatchSelectPatternTest class to also work with other types of tests. It inherits the convention that the function must be `@test` and the tested instruction `%A`.


Repository:
  rL LLVM

https://reviews.llvm.org/D55141

Files:
  unittests/Analysis/ValueTrackingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55141.176178.patch
Type: text/x-patch
Size: 7279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181130/e833d9f4/attachment.bin>


More information about the llvm-commits mailing list