[all-commits] [llvm/llvm-project] c7ec6e: [X86][BF16] Make backend type bf16 to follow the p...

Phoebe Wang via All-commits all-commits at lists.llvm.org
Tue Aug 9 18:41:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7ec6e19d5446a448f888b33f66316cf2ec6ecae
      https://github.com/llvm/llvm-project/commit/c7ec6e19d5446a448f888b33f66316cf2ec6ecae
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.h
    M llvm/test/CodeGen/X86/bfloat.ll

  Log Message:
  -----------
  [X86][BF16] Make backend type bf16 to follow the psABI

X86 psABI has updated to support __bf16 type, the ABI of which is the
same as FP16. See https://discourse.llvm.org/t/patch-add-optional-bfloat16-support/63149

This is an alternative of D129858, which has less code modification and
supports the vector type as well.

Reviewed By: LuoYuanke

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


  Commit: e4888a37d36780872d685c68ef8b26b2e14d6d39
      https://github.com/llvm/llvm-project/commit/e4888a37d36780872d685c68ef8b26b2e14d6d39
  Author: Freddy Ye <freddy.ye at intel.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/lib/Basic/Targets/X86.cpp
    M clang/lib/Basic/Targets/X86.h
    M clang/lib/CodeGen/TargetInfo.cpp
    A clang/test/CodeGen/X86/bfloat-abi.c
    A clang/test/CodeGen/X86/bfloat-half-abi.c
    A clang/test/CodeGen/X86/bfloat-mangle.cpp
    M clang/test/Sema/vector-decl-crash.c
    M llvm/include/llvm/IR/Type.h

  Log Message:
  -----------
  [X86][BF16] Enable __bf16 for x86 targets.

X86 psABI has updated to support __bf16 type, the ABI of which is the
same as FP16. See https://discourse.llvm.org/t/patch-add-optional-bfloat16-support/63149

Reviewed By: pengfei

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


  Commit: 0ae2a41d803d715975d710ec289a4bd90ca534e2
      https://github.com/llvm/llvm-project/commit/0ae2a41d803d715975d710ec289a4bd90ca534e2
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
    M compiler-rt/cmake/builtin-config-ix.cmake
    M compiler-rt/lib/builtins/CMakeLists.txt
    M compiler-rt/lib/builtins/fp_trunc.h
    M compiler-rt/lib/builtins/truncsfbf2.c

  Log Message:
  -----------
  [compiler-rt][BF16] Provide __truncsfbf2 only when __bf16 is available

#56854 shows a backwards compatibility problem when builtins of compiler-rt don't follow ABI. We need to prevent to fall into the trap again for BF16.

Reviewed By: bkramer

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


Compare: https://github.com/llvm/llvm-project/compare/dfe2a3f3eb92...0ae2a41d803d


More information about the All-commits mailing list