[llvm] [NVPTX] Allow the ctor/dtor lowering pass to emit kernels (PR #71549)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 12:26:16 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-kernel",
----------------
jhuber6 wrote:

Honestly the only reason I have this here is because in `libc` I do this manually and figured it would help to turn off some unnecessary work in those cases. However, I can remove the option since it's not *really* required for anything.

Maybe `nvptx-emit-init-fini-kernel`?

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


More information about the llvm-commits mailing list