Home
last modified time | relevance | path

Searched refs:ExecMode (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp75 CGOpenMPRuntimeGPU::ExecutionMode &ExecMode; member in __anona9bff4970111::ExecutionRuntimeModesRAII
81 ExecutionRuntimeModesRAII(CGOpenMPRuntimeGPU::ExecutionMode &ExecMode) in ExecutionRuntimeModesRAII() argument
82 : ExecMode(ExecMode) { in ExecutionRuntimeModesRAII()
83 SavedExecMode = ExecMode; in ExecutionRuntimeModesRAII()
84 ExecMode = CGOpenMPRuntimeGPU::EM_NonSPMD; in ExecutionRuntimeModesRAII()
87 ExecutionRuntimeModesRAII(CGOpenMPRuntimeGPU::ExecutionMode &ExecMode, in ExecutionRuntimeModesRAII() argument
89 : ExecMode(ExecMode), RuntimeMode(&RuntimeMode) { in ExecutionRuntimeModesRAII()
90 SavedExecMode = ExecMode; in ExecutionRuntimeModesRAII()
92 ExecMode = CGOpenMPRuntimeGPU::EM_SPMD; in ExecutionRuntimeModesRAII()
96 ExecMode = SavedExecMode; in ~ExecutionRuntimeModesRAII()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp3388 GlobalVariable *ExecMode = Kernel->getParent()->getGlobalVariable( in changeToSPMDMode() local
3390 assert(ExecMode && "Kernel without exec mode?"); in changeToSPMDMode()
3391 assert(ExecMode->getInitializer() && "ExecMode doesn't have initializer!"); in changeToSPMDMode()
3394 assert(isa<ConstantInt>(ExecMode->getInitializer()) && in changeToSPMDMode()
3397 cast<ConstantInt>(ExecMode->getInitializer())->getSExtValue(); in changeToSPMDMode()
3625 ExecMode->setInitializer( in changeToSPMDMode()
3626 ConstantInt::get(ExecMode->getInitializer()->getType(), in changeToSPMDMode()