This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Remove three obsolete CUDA cc1 flags.
ClosedPublic

Authored by jlebar on Mar 23 2016, 3:15 PM.

Details

Summary
  • -fcuda-target-overloads

    Previously unconditionally set to true by the driver. Necessary for correct functioning of the compiler -- our CUDA headers wrapper won't compile without this.
  • -fcuda-disable-target-call-checks

    Previously unconditionally set to true by the driver. Necessary to compile almost any external CUDA code -- almost all libraries assume that host+device code can call host or device functions.
  • -fcuda-allow-host-calls-from-host-device

    No effect when target overloading is enabled.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 51478.Mar 23 2016, 3:15 PM
jlebar retitled this revision from to [CUDA] Remove three obsolete CUDA cc1 flags..
jlebar updated this object.
jlebar added a reviewer: tra.
jlebar added subscribers: cfe-commits, rsmith.
tra accepted this revision.Mar 23 2016, 3:33 PM
tra edited edge metadata.
This revision is now accepted and ready to land.Mar 23 2016, 3:33 PM
This revision was automatically updated to reflect the committed changes.
cfe/trunk/test/SemaCUDA/function-overload.cu