[all-commits] [llvm/llvm-project] 36adfe: Adding support of AMDLIBM vector library (#78560)

Rohit Aggarwal via All-commits all-commits at lists.llvm.org
Wed Feb 14 22:43:18 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36adfec155de366d722f2bac8ff9162289dcf06c
      https://github.com/llvm/llvm-project/commit/36adfec155de366d722f2bac8ff9162289dcf06c
  Author: Rohit Aggarwal <44664450+rohitaggarwal007 at users.noreply.github.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/Driver/autocomplete.c
    M llvm/include/llvm/Analysis/TargetLibraryInfo.h
    M llvm/include/llvm/Analysis/VecFuncs.def
    M llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/lib/Frontend/Driver/CodeGenOptions.cpp
    M llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll
    A llvm/test/Transforms/LoopVectorize/X86/amdlibm-calls-finite.ll
    A llvm/test/Transforms/LoopVectorize/X86/amdlibm-calls.ll
    M llvm/test/Transforms/SLPVectorizer/X86/sin-sqrt.ll
    M llvm/test/Transforms/Util/add-TLI-mappings.ll

  Log Message:
  -----------
  Adding support of AMDLIBM vector library (#78560)

Hi,

AMD has it's own implementation of vector calls. This patch include the
changes to enable the use of AMD's math library using -fveclib=AMDLIBM.
Please refer https://github.com/amd/aocl-libm-ose 

---------

Co-authored-by: Rohit Aggarwal <Rohit.Aggarwal at amd.com>




More information about the All-commits mailing list