[all-commits] [llvm/llvm-project] 56e681: [TargetLibraryInfo] Pick new/delete calls by target

Paul T Robinson via All-commits all-commits at lists.llvm.org
Tue Sep 28 10:11:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56e681afcce53d2a6eb1df2724c715bd95a43a25
      https://github.com/llvm/llvm-project/commit/56e681afcce53d2a6eb1df2724c715bd95a43a25
  Author: Paul Robinson <paul.robinson at sony.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    R llvm/test/Transforms/InstCombine/malloc-free-delete.ll
    A llvm/test/Transforms/InstCombine/malloc-free.ll
    A llvm/test/Transforms/InstCombine/new-delete-itanium.ll
    A llvm/test/Transforms/InstCombine/new-delete-msvc.ll

  Log Message:
  -----------
  [TargetLibraryInfo] Pick new/delete calls by target

There are two sets of new/delete functions, one with Windows/MSVC
mangling and one with Itanium mangling. Mark one set or the other
as unavailable depending on the target.

Split the test malloc-free-delete.ll into three parts: malloc-free.dll
for the C API tests, new-delete-itanium.ll and new-delete-msvc.ll for
the target-specific new/delete tests.

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




More information about the All-commits mailing list