[PATCH] D27682: AMDGPU: Add replacement export intrinsics

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 12 11:39:14 PST 2016


arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.

Replace llvm.SI.export with llvm.amdgcn.exp and llvm.amdgcn.exp.compr.. The compr bit is separate because it changes the number and type of the operands.

This is a WIP patch because I'm not sure whether the en mask should be an explicit operand, or whether it should be computed from which inputs are undef. Right now dead code is emitted for disabled inputs.


https://reviews.llvm.org/D27682

Files:
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/AMDGPUInstrInfo.td
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIInstrInfo.td
  test/CodeGen/AMDGPU/llvm.amdgcn.exp.compr.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.exp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27682.81117.patch
Type: text/x-patch
Size: 22214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161212/0f6a7667/attachment.bin>


More information about the llvm-commits mailing list