[all-commits] [llvm/llvm-project] 798b26: [CallSite removal][IPO] Change implementation of A...

topperc via All-commits all-commits at lists.llvm.org
Thu Apr 16 16:29:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 798b262c3c9d4a8603dc6c6bbbe0a7ffb82eadbc
      https://github.com/llvm/llvm-project/commit/798b262c3c9d4a8603dc6c6bbbe0a7ffb82eadbc
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M llvm/include/llvm/IR/CallSite.h
    M llvm/lib/IR/AbstractCallSite.cpp
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [CallSite removal][IPO] Change implementation of AbstractCallSite to store a CallBase* instead of CallSite. NFCI.

CallSite will likely be removed soon, but AbstractCallSite serves a different purpose and won't be going away.

This patch switches it to internally store a CallBase* instead of a
CallSite. The only interface changes are the removal of the getCallSite
method and getCallBackUses now takes a CallBase&. These methods had only
a few callers that were easy enough to update without needing a
compatibility shim.

In the future once the other CallSites are gone, the CallSite.h
header should be renamed to AbstractCallSite.h

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




More information about the All-commits mailing list