[PATCH] D86693: Implementation of variable-length load/store intrinsics

Hussain Kadhem via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 02:47:58 PDT 2020


hussainjk created this revision.
Herald added subscribers: llvm-commits, jfb, hiraditya, mgorny.
Herald added a project: LLVM.
hussainjk requested review of this revision.
Herald added a subscriber: jdoerfert.

Implemented intrinsics llvm.variable.length.load and llvm.variable.length.store,
as well as infrastructure for lowering these using new corresponding SDAG nodes.

These intrinsics represent loading and storing vectors with a number of contiguous active lanes given at runtime.
In effect, they specialize masked loads and stores to the case when the mask can instead be specified by a length.

Please see our associated RFC for technical design discussion.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86693

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/include/llvm/CodeGen/Passes.h
  llvm/include/llvm/CodeGen/SelectionDAG.h
  llvm/include/llvm/CodeGen/SelectionDAGNodes.h
  llvm/include/llvm/IR/IRBuilder.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/InitializePasses.h
  llvm/include/llvm/LinkAllPasses.h
  llvm/include/llvm/Target/TargetSelectionDAG.td
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/CodeGen.cpp
  llvm/lib/CodeGen/ScalarizeVariableLengthMemIntrin.cpp
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/lib/IR/IRBuilder.cpp
  llvm/tools/llc/llc.cpp
  llvm/tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86693.288252.patch
Type: text/x-patch
Size: 56875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200827/e3d2f0bb/attachment.bin>


More information about the llvm-commits mailing list