aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-09-13 16:26:57 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-09-13 16:27:12 +0100
commit9db20822f795f1057d5ba31bdc2aa82a6d96a6a0 (patch)
treefafc5fa2fd381cd043ab4fc07aec1c44dc5589a8 /llvm/lib/Transforms/Utils/Local.cpp
parent0fc3ebb70a2d71d4b13102ed932a23a386104c17 (diff)
downloadllvm-9db20822f795f1057d5ba31bdc2aa82a6d96a6a0.zip
llvm-9db20822f795f1057d5ba31bdc2aa82a6d96a6a0.tar.gz
llvm-9db20822f795f1057d5ba31bdc2aa82a6d96a6a0.tar.bz2
[APInt] Add APIntOps::ScaleBitMask helper
APInt is used to describe a bit mask in a variety of value tracking and demanded bits/elts functions. When traversing through dst/src operands, we have a number of places where these masks need to widened/narrowed to translate through bitcasts, reductions etc. to a different type. This patch add a APIntOps::ScaleBitMask common helper, adds unit test coverage, and updates a number of cases to use the the helper instead of their own implementation. This came up on D109065 where we currently have to add yet another implementation of the same code. Differential Revision: https://reviews.llvm.org/D109683
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions