================
@@ -95,7 +95,7 @@ using namespace llvm;
static cl::opt<bool>
LowerCtorDtor("nvptx-lower-global-ctor-dtor",
cl::desc("Lower GPU ctor / dtors to globals on the device."),
- cl::init(false), cl::Hidden);
+ cl::init(true), cl::Hidden);
----------------
Artem-B wrote:
This will allow global constructors/destructors for all users by default, but
it relies on something to call those constructors and that something will only
be provided by OpenMP. We do want to diagnose it if there's no runtime support
avaialble.
I think we still need to keep false as the default.
https://github.com/llvm/llvm-project/pull/71739
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits