[libcxx-commits] [PATCH] D158861: [llvm] Move CallInst::CreateMalloc to IRBuilderBase::CreateMalloc

Konrad Wilhelm Kleine via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 25 09:54:18 PDT 2023


kwk created this revision.
kwk added a reviewer: nikic.
Herald added subscribers: pmatos, asb, StephenFan, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a reviewer: bollu.
Herald added a project: All.
kwk requested review of this revision.
Herald added subscribers: llvm-commits, libcxx-commits, wangpc, aheejin.
Herald added projects: libc++abi, LLVM.
Herald added a reviewer: libc++abi.

This adds the previously removed `CallInst::CreateMalloc` functionality
to the `IRBuilderBase` class.

The bitcast operation as the last step was removed because it is no
longer needed due to the advent of opaque pointers.

We no longer needed the `Instruction *InsertBefore` and
`BasicBlock *InsertAtEnd` arguments of the `createMalloc` helper
function because we're using `IRBuilder` now. That's why I we also don't
need 4 `CreateMalloc` functions, but only two.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158861

Files:
  libcxxabi/test/test_demangle.pass.cpp
  llvm/bindings/ocaml/llvm/llvm.mli
  llvm/examples/BrainF/BrainF.cpp
  llvm/include/llvm/IR/IRBuilder.h
  llvm/include/llvm/IR/Instructions.h
  llvm/lib/IR/Core.cpp
  llvm/lib/IR/IRBuilder.cpp
  llvm/lib/IR/Instructions.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  polly/lib/CodeGen/IslNodeBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158861.553521.patch
Type: text/x-patch
Size: 18343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230825/b077acab/attachment-0001.bin>


More information about the libcxx-commits mailing list