This is an archive of the discontinued LLVM Phabricator instance.

[nfc][omptarget] Use builtin var abstraction. Second pass at D69476
ClosedPublic

Authored by JonChesterfield on Oct 31 2019, 5:03 PM.

Details

Summary

[nfc][omptarget] Use builtin var abstraction. Second pass at D69476

Use the wrappers in support.h for cuda builtin variables at all call sites.
Localises use of cuda and removes WARPSIZE==32 assumption in debug.h.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2019, 5:03 PM
jdoerfert accepted this revision.Oct 31 2019, 5:48 PM

LGTM.

openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
20

Less duplication, great!

This revision is now accepted and ready to land.Oct 31 2019, 5:48 PM
This revision was automatically updated to reflect the committed changes.