This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Make NVVMReflect a function pass.
ClosedPublic

Authored by jlebar on Mar 30 2016, 11:55 AM.

Details

Summary

Currently it's a module pass. Make it a function pass so that we can
move it to PassManagerBuilder's EP_EarlyAsPossible extension point,
which only accepts function passes.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 52098.Mar 30 2016, 11:55 AM
jlebar retitled this revision from to [NVPTX] Make NVVMReflect a function pass..
jlebar updated this object.
jlebar added a reviewer: rnk.
jlebar added subscribers: llvm-commits, tra.
rnk accepted this revision.Mar 30 2016, 12:02 PM
rnk edited edge metadata.

lgtm

lib/Target/NVPTX/NVVMReflect.cpp
167 ↗(On Diff #52098)

no kidding :)

This revision is now accepted and ready to land.Mar 30 2016, 12:02 PM
tra added a comment.Mar 30 2016, 1:18 PM

Two nits. Looks good otherwise.

lib/Target/NVPTX/NVVMReflect.cpp
132 ↗(On Diff #52098)

Did you mean "calls in this function" ?

174 ↗(On Diff #52098)

if (const CallInst *ConvCall = dyn_cast<CallInst>(Str))

tra accepted this revision.Mar 30 2016, 1:18 PM
tra added a reviewer: tra.
jlebar marked 2 inline comments as done.Mar 30 2016, 1:41 PM

Thank you for the reviews, Art and Reid. Submitting...

This revision was automatically updated to reflect the committed changes.