This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Read __CUDA_FTZ from module flags in NVVMReflect.
ClosedPublic

Authored by jlebar on Mar 31 2016, 1:20 PM.

Details

Summary

Previously the NVVMReflect pass would read its configuration from
command-line flags or a static configuration given to the pass at
instantiation time.

This doesn't quite work for clang's use-case. It needs to pass a value
for __CUDA_FTZ down on a per-module basis. We use a module flag for
this, so the NVVMReflect pass needs to be updated to read said flag.

Diff Detail

Event Timeline

jlebar updated this revision to Diff 52274.Mar 31 2016, 1:20 PM
jlebar retitled this revision from to [NVPTX] Read __CUDA_FTZ from module flags in NVVMReflect..
jlebar updated this object.
jlebar added reviewers: tra, rnk.
jlebar added a subscriber: cfe-commits.
tra accepted this revision.Mar 31 2016, 1:37 PM
tra edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Mar 31 2016, 1:37 PM
This revision was automatically updated to reflect the committed changes.