LLVM 23.0.0git
SPIRVCtorDtorLowering.cpp File Reference

Go to the source code of this file.

Macros

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

Functions

 INITIALIZE_PASS (SPIRVCtorDtorLoweringLegacy, DEBUG_TYPE, "SPIRV lower ctors and dtors", false, false) ModulePass *llvm

Variables

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

Macro Definition Documentation

◆ DEBUG_TYPE

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

Definition at line 34 of file SPIRVCtorDtorLowering.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( SPIRVCtorDtorLoweringLegacy ,
DEBUG_TYPE ,
"SPIRV lower ctors and dtors" ,
false ,
false  )

Variable Documentation

◆ CreateKernels

cl::opt< bool > CreateKernels("spirv-emit-init-fini-kernel", cl::desc("Emit kernels to call ctor/dtor globals."), cl::init(true), cl::Hidden) ( "spirv-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("spirv-lower-global-ctor-dtor-id", cl::desc("Override unique ID of ctor/dtor globals."), cl::init(""), cl::Hidden) ( "spirv-lower-global-ctor-dtor-id" ,
cl::desc("Override unique ID of ctor/dtor globals.") ,
cl::init("") ,
cl::Hidden  )
static