[all-commits] [llvm/llvm-project] 250f2b: adding bf16 support to NVPTX

kushanam via All-commits all-commits at lists.llvm.org
Wed Jun 28 11:57:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 250f2bb2c6a9c288faeb821585e9394697c561d8
      https://github.com/llvm/llvm-project/commit/250f2bb2c6a9c288faeb821585e9394697c561d8
  Author: root <kahmadian at nvidia.com>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsNVPTX.def
    M clang/test/CodeGen/builtins-nvptx.c
    M clang/test/CodeGenCUDA/bf16.cu
    M llvm/include/llvm/IR/IntrinsicsNVVM.td
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
    M llvm/lib/Target/NVPTX/NVPTXMCExpr.cpp
    M llvm/lib/Target/NVPTX/NVPTXMCExpr.h
    M llvm/lib/Target/NVPTX/NVPTXSubtarget.cpp
    M llvm/lib/Target/NVPTX/NVPTXSubtarget.h
    M llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
    A llvm/test/CodeGen/NVPTX/bf16-instructions.ll
    M llvm/test/CodeGen/NVPTX/convert-sm80.ll
    M llvm/test/CodeGen/NVPTX/f16-instructions.ll
    A llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70-autoupgrade.ll
    M llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70.ll
    A llvm/test/CodeGen/NVPTX/math-intrins-sm86-ptx72-autoupgrade.ll
    M llvm/test/CodeGen/NVPTX/math-intrins-sm86-ptx72.ll
    M llvm/test/CodeGen/NVPTX/param-load-store.ll

  Log Message:
  -----------
  adding bf16 support to NVPTX

Currently, bf16 has been scatteredly added to the PTX codegen. This patch aims to complete the set of instructions and code path required to support bf16 data type.

Reviewed By: tra

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

Co-authored-by: Artem Belevich <tra at google.com>




More information about the All-commits mailing list