[Openmp-commits] [PATCH] D44992: [OpenMP] enable bc file compilation using the latest clang

Guansong Zhang via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 2 09:23:49 PDT 2018


guansong added a comment.

My search got the same conclusion as Greg did, I don't think -fcuda-rdc will change the IR code, except allowing multiple compilation units as specified in the options.td

572 def fcuda_rdc : Flag<["-"], "fcuda-rdc">, Flags<[CC1Option, HelpHidden]>,
 573   HelpText<"Generate relocatable device code, also known as separate compilation mode.">;

I believe this mode is needed for the code used in the deviceRTL, as we do want to create a bc library through multiple .cu files.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D44992





More information about the Openmp-commits mailing list