[all-commits] [llvm/llvm-project] 209496: [Core] Allow `hasAddressTaken` to ignore "casted d...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Aug 31 19:33:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 209496b766bb08f43155d38dc8015804fb6c0c96
      https://github.com/llvm/llvm-project/commit/209496b766bb08f43155d38dc8015804fb6c0c96
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

  Changed paths:
    M llvm/include/llvm/IR/Function.h
    M llvm/lib/IR/Function.cpp
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/callgraph.ll

  Log Message:
  -----------
  [Core] Allow `hasAddressTaken` to ignore "casted direct calls"

A direct call to a function casted to a different type is still not
really an address taken event. We allow the user to opt out of these
now.

Reviewed By: arsenm

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


  Commit: 8dd3b4581cb4eb628c4d14a4a1c2a8da854880de
      https://github.com/llvm/llvm-project/commit/8dd3b4581cb4eb628c4d14a4a1c2a8da854880de
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [Attributor][NFC] Clean include order


Compare: https://github.com/llvm/llvm-project/compare/6e42f905ae21...8dd3b4581cb4


More information about the All-commits mailing list