[llvm] [NVPTX] Allow the ctor/dtor lowering pass to emit kernels (PR #71549)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 9 11:22:43 PST 2023
================
@@ -32,6 +33,11 @@ static cl::opt<std::string>
cl::desc("Override unique ID of ctor/dtor globals."),
cl::init(""), cl::Hidden);
+static cl::opt<bool>
+ CreateKernels("nvptx-lower-global-ctor-dtor-kernel",
----------------
Artem-B wrote:
Nit: That's a very long option name. Perhaps we could generalize and shorten it down to just `nvptx-global-init` ?
https://github.com/llvm/llvm-project/pull/71549
More information about the llvm-commits
mailing list