aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-02-05 16:15:53 +0000
committerJay Foad <jay.foad@amd.com>2020-04-09 10:10:37 +0100
commitc63aed890ecaf686486d6067dc190db7f275afc3 (patch)
tree891545a2785c2b51ade3e26a5987d79604326fbe /clang/lib/Frontend/CompilerInvocation.cpp
parent340d1119eddaa30446853832c3ad1e95c6ff96dc (diff)
downloadllvm-c63aed890ecaf686486d6067dc190db7f275afc3.zip
llvm-c63aed890ecaf686486d6067dc190db7f275afc3.tar.gz
llvm-c63aed890ecaf686486d6067dc190db7f275afc3.tar.bz2
[KnownBits] Move AND, OR and XOR logic into KnownBits
Summary: There are at least three clients for KnownBits calculations: ValueTracking, SelectionDAG and GlobalISel. To reduce duplication the common logic should be moved out of these clients and into KnownBits itself. This patch does this for AND, OR and XOR calculations by implementing and using appropriate operator overloads KnownBits::operator& etc. Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74060
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions