[all-commits] [llvm/llvm-project] 7f84fa: [TargetLibraryInfo] Refactor size_t checks in isVa...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Mon Oct 4 06:51:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f84fa4ad41aafc8a20b2ea792c98bf991ed3d53
      https://github.com/llvm/llvm-project/commit/7f84fa4ad41aafc8a20b2ea792c98bf991ed3d53
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2021-10-04 (Mon, 04 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetLibraryInfo.h
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp

  Log Message:
  -----------
  [TargetLibraryInfo] Refactor size_t checks in isValidProtoForLibFunc. NFC

In TargetLibraryInfoImpl::isValidProtoForLibFunc we no longer
need the IsSizeTTy lambda function and the SizeTTy object. Instead
we just follow the regular structure of checking for integer types
given an exepected number of bits.




More information about the All-commits mailing list