LLVM 22.0.0git
NVPTXCtorDtorLowering.cpp File Reference

This pass creates a unified init and fini kernel with the required metadata. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "nvptx-lower-ctor-dtor"

Functions

 INITIALIZE_PASS (NVPTXCtorDtorLoweringLegacy, DEBUG_TYPE, "Lower ctors and dtors for NVPTX", false, false) ModulePass *llvm

Variables

static cl::opt< std::stringGlobalStr ("nvptx-lower-global-ctor-dtor-id", cl::desc("Override unique ID of ctor/dtor globals."), cl::init(""), cl::Hidden)
static cl::opt< boolCreateKernels ("nvptx-emit-init-fini-kernel", cl::desc("Emit kernels to call ctor/dtor globals."), cl::init(true), cl::Hidden)

Detailed Description

This pass creates a unified init and fini kernel with the required metadata.

Definition in file NVPTXCtorDtorLowering.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "nvptx-lower-ctor-dtor"

Definition at line 31 of file NVPTXCtorDtorLowering.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( NVPTXCtorDtorLoweringLegacy ,
DEBUG_TYPE ,
"Lower ctors and dtors for NVPTX" ,
false ,
false  )

Variable Documentation

◆ CreateKernels

cl::opt< bool > CreateKernels("nvptx-emit-init-fini-kernel", cl::desc("Emit kernels to call ctor/dtor globals."), cl::init(true), cl::Hidden) ( "nvptx-emit-init-fini-kernel" ,
cl::desc("Emit kernels to call ctor/dtor globals.") ,
cl::init(true) ,
cl::Hidden  )
static

◆ GlobalStr

cl::opt< std::string > GlobalStr("nvptx-lower-global-ctor-dtor-id", cl::desc("Override unique ID of ctor/dtor globals."), cl::init(""), cl::Hidden) ( "nvptx-lower-global-ctor-dtor-id" ,
cl::desc("Override unique ID of ctor/dtor globals.") ,
cl::init("") ,
cl::Hidden  )
static