aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-07 20:20:24 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-04-07 20:20:24 +0000
commitf38b46ffca9b55d476229dce6bca4f3274cffb6d (patch)
tree122253afe36fad0ddc08482ab936168a76b4bf1f /clang/lib/Frontend/TestModuleFileExtension.h
parent424417da79c60c8d67de6b0bb55e9d8404764707 (diff)
downloadllvm-f38b46ffca9b55d476229dce6bca4f3274cffb6d.zip
llvm-f38b46ffca9b55d476229dce6bca4f3274cffb6d.tar.gz
llvm-f38b46ffca9b55d476229dce6bca4f3274cffb6d.tar.bz2
[ConstantRange] Add signed/unsigned unionWith()
This extends D59959 to unionWith(), allowing to specify that a non-wrapping unsigned/signed range is preferred. This is somewhat less useful than the intersect case, because union operations are rarer. An example use would the the phi union computed in SCEV. The implementation is mostly a straightforward use of getPreferredRange(), but I also had to adjust some <=/< checks to make sure that no ranges with lower==upper get constructed before they're passed to getPreferredRange(), as these have additional constraints. Differential Revision: https://reviews.llvm.org/D60377 llvm-svn: 357876
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.h')
0 files changed, 0 insertions, 0 deletions