llvm::omp::deconstructOpenMPKernelName

Deconstruct an OpenMP kernel name into the parent function name and the line number.

Synopsis

Declared in <llvm/Frontend/OpenMP/OMP.h>

std::string
deconstructOpenMPKernelName(
    StringRef KernelName,
    unsigned int& LineNo);

Return Value

The parent function name extracted from KernelName.

Parameters

NameDescription
KernelNameOpenMP offloading kernel symbol name to parse.
LineNoSet to the source line number encoded in the kernel name.