[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",
+                  cl::desc("Do not emit the init/fini kernels."),
----------------
Artem-B wrote:

The description seems to contradict the option intent.

https://github.com/llvm/llvm-project/pull/71549


More information about the llvm-commits mailing list