[all-commits] [llvm/llvm-project] 45bb45: [llvm] Move CallInst::CreateMalloc to IRBuilderBas...

Konrad Kleine via All-commits all-commits at lists.llvm.org
Tue Sep 19 00:06:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45bb45f2ae89df6c0e54ead2258764ec91f5f5f5
      https://github.com/llvm/llvm-project/commit/45bb45f2ae89df6c0e54ead2258764ec91f5f5f5
  Author: Konrad Kleine <kkleine at redhat.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M llvm/bindings/ocaml/llvm/llvm.mli
    M llvm/examples/BrainF/BrainF.cpp
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/include/llvm/IR/Instructions.h
    M llvm/lib/IR/Core.cpp
    M llvm/lib/IR/IRBuilder.cpp
    M llvm/lib/IR/Instructions.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
    M polly/lib/CodeGen/IslNodeBuilder.cpp

  Log Message:
  -----------
  [llvm] Move CallInst::CreateMalloc to IRBuilderBase::CreateMalloc

This removes `CreateMalloc` from `CallInst` and adds it to the `IRBuilderBase`
class.

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.

Differential Revision: https://reviews.llvm.org/D158861




More information about the All-commits mailing list