[ConstantRange] Support abs with poison flag
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 30 Jul 2020 20:47:33 +0000 (22:47 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 30 Jul 2020 20:49:28 +0000 (22:49 +0200)
commit94f8120cb9d368602df5aefa32211e001338e296
treec2ce28a5ffb5c5a0c56b965eac5aa69029b7c600
parent8c1a31d83313e4d43509177193f1de14cf897c05
[ConstantRange] Support abs with poison flag

This just adds the ConstantRange support, including exhaustive
testing. It's not wired up to the IR intrinsic flag yet.
llvm/include/llvm/IR/ConstantRange.h
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp