[llvm] Replace uses of Type::getPointerTo (NFC)
authorYoungsuk Kim <youngsuk.kim@hpe.com>
Wed, 28 Jun 2023 13:21:01 +0000 (09:21 -0400)
committerJOE1994 <joseph942010@gmail.com>
Wed, 28 Jun 2023 13:21:34 +0000 (09:21 -0400)
commit243f0566dc414e8bb6e15c7a6ae490d0e3cd0656
treeae62935d1beb48985127f7dd049787f25dd0f87c
parente12c701ff0405880045f0330fb6ff94e31ec5c47
[llvm] Replace uses of Type::getPointerTo (NFC)

Partial progress towards removing in-tree uses of `Type::getPointerTo`,
before we can deprecate the API.

If the API is used solely to support an unnecessary bitcast, get rid of
the bitcast as well.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D153933
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/lib/Target/ARM/ARMParallelDSP.cpp
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
llvm/lib/Transforms/Utils/ValueMapper.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp