This is an archive of the discontinued LLVM Phabricator instance.

TLI: Expose all MMO flags in getTgtMemIntrinsic
ClosedPublic

Authored by arsenm on Dec 6 2017, 10:59 AM.

Details

Reviewers
hfinkel
Summary

Rather than adding more bits to express every
MMO flag you could want, just directly use the
MMO flags. Also fixes using a bunch of bool arguments to
getMemIntrinsicNode.

On AMDGPU, buffer and image intrinsics should always
have MODereferencable set, but currently there is no
way to do that directly during the initial intrinsic
lowering.

Diff Detail

Event Timeline

arsenm created this revision.Dec 6 2017, 10:59 AM
jlebar added a subscriber: jlebar.Dec 11 2017, 11:25 AM

ping

phab is showing me:

This revision needs review, but there are no reviewers specified.

hfinkel accepted this revision.Dec 14 2017, 11:25 AM
hfinkel added a subscriber: hfinkel.

Minor comment below, but otherwise LGTM.

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
5779

Please don't change dl to SL here. dl is our standard names for these things (because they're essentially debug locations and everyone knows that dl/DL means).

This revision is now accepted and ready to land.Dec 14 2017, 11:25 AM
arsenm added inline comments.Dec 14 2017, 1:10 PM
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
5779

I thought these were gradually changing to SL because it's now called SDLoc, and DL conflicts with DataLayout

hfinkel added inline comments.Dec 14 2017, 1:19 PM
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
5779

Ah, okay. Indeed. I'd forgotten about that.

arsenm closed this revision.Dec 14 2017, 1:40 PM

r320746