[all-commits] [llvm/llvm-project] 1fc5e5: [AMDGPU] Implement 'llvm.get.fpenv' and 'llvm.set....

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Mar 6 06:12:06 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fc5e50cebf1e423bce105930c3a075044998f68
      https://github.com/llvm/llvm-project/commit/1fc5e50cebf1e423bce105930c3a075044998f68
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAMDGPU.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGenOpenCL/builtins-amdgcn.cl
    M llvm/docs/AMDGPUUsage.rst
    M llvm/docs/LangRef.rst
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.h
    A llvm/test/CodeGen/AMDGPU/fpenv.ll

  Log Message:
  -----------
  [AMDGPU] Implement 'llvm.get.fpenv' and 'llvm.set.fpenv' (#83906)

Summary:
This patch implements the LLVM floating point environment control
intrinsics and also exposes it through clang. We encode the floating
point environment as a 64-bit value that simply concatenates the values
of the mode registers and the current trap status. We only fetch the
bits relevant for floating point instructions. That is, rounding mode,
denormalization mode, ieee, dx10 clamp, debug, enabled traps, f16
overflow, and active exceptions.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list