AMDGPU: Add llvm.amdgcn.exp2 intrinsic
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 14 Jun 2023 12:07:25 +0000 (08:07 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 15 Jun 2023 11:00:07 +0000 (07:00 -0400)
commit28f3edd2be2a27b9dc7739d137147007c5fd9e41
tree83b2d945558377b05cec19fe53da13e17945816d
parentccf216fe2cf724246ea02153d64750216380c540
AMDGPU: Add llvm.amdgcn.exp2 intrinsic

Provide direct access to v_exp_f32 and v_exp_f16, so we can start
correctly lowering the generic exp intrinsics.

Unfortunately have to break from the usual naming convention of
matching the instruction name and stripping the v_ prefix. exp is
already taken by the export intrinsic. On the clang builtin side, we
have a choice of maintaining the convention to the instruction name,
or following the intrinsic name.
13 files changed:
clang/include/clang/Basic/BuiltinsAMDGPU.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGenOpenCL/builtins-amdgcn.cl
llvm/docs/AMDGPUUsage.rst
llvm/docs/ReleaseNotes.rst
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.td
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/lib/Target/AMDGPU/R600Instructions.td
llvm/lib/Target/AMDGPU/VOP1Instructions.td
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.exp2.ll [new file with mode: 0644]