[PATCH] D154392: [llvm] Remove uses of Type::getPointerTo() (NFC)

Youngsuk Kim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 14:53:03 PDT 2023


JOE1994 created this revision.
JOE1994 added reviewers: nikic, barannikov88.
Herald added subscribers: StephenFan, pengfei, hiraditya.
Herald added a project: All.
JOE1994 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Partial progress towards removing in-tree uses of `getPointerTo()`,
by employing the following options:

- Drop the call entirely if the sole purpose of it is to support a no-op bitcast (remove the no-op bitcast as well).

- Replace with `PointerType::get()`/`PointerType::getUnqual()`.

Also, remove no-op function `EmitBitCastOfLValueToProperType()`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154392

Files:
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Target/X86/X86InterleavedAccess.cpp
  llvm/lib/Target/X86/X86WinEHState.cpp
  llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
  llvm/unittests/IR/PatternMatch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154392.536905.patch
Type: text/x-patch
Size: 12917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230703/b995e23d/attachment.bin>


More information about the llvm-commits mailing list