[PATCH] D18291: Add IntrOnlyWrite intrinsic property

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 20:04:36 PDT 2016


nhaehnle created this revision.
nhaehnle added reviewers: tstellarAMD, arsenm.
nhaehnle added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

This property is used to mark an intrinsic that writes to memory, but is
lowered to instructions without the mayLoad or hasSideEffects flag because the
target-specific code understands its memory behavior fully.

An example for this is the llvm.amdgcn.buffer.store.format.* intrinsic, which
corresponds to a store instruction that goes through a special buffer
descriptor rather than through a plain pointer.

With this property, the intrinsic should still be handled as having side
effects at the LLVM IR level, but machine scheduling can make smarter
decisions.

http://reviews.llvm.org/D18291

Files:
  include/llvm/IR/Intrinsics.td
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/SIInstructions.td
  utils/TableGen/CodeGenDAGPatterns.cpp
  utils/TableGen/CodeGenIntrinsics.h
  utils/TableGen/CodeGenTarget.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18291.51100.patch
Type: text/x-patch
Size: 5131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160319/e59de3b2/attachment.bin>


More information about the llvm-commits mailing list