clang 24.0.0git
CIRGenCUDANV.cpp File Reference
#include "CIRGenCUDARuntime.h"
#include "CIRGenCXXABI.h"
#include "CIRGenFunction.h"
#include "CIRGenModule.h"
#include "mlir/IR/Operation.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attrs.inc"
#include "clang/AST/Decl.h"
#include "clang/AST/GlobalDecl.h"
#include "clang/Basic/AddressSpaces.h"
#include "clang/Basic/Cuda.h"
#include "clang/Basic/DiagnosticFrontend.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/SourceManager.h"
#include "clang/CIR/Dialect/IR/CIRDialect.h"
#include "clang/CIR/Dialect/IR/CIRTypes.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/VirtualFileSystem.h"

Go to the source code of this file.

Functions

static bool hasEntitiesToRegister (mlir::ModuleOp module)
 Whether this translation unit has anything for the CUDA runtime to register.

Function Documentation

◆ hasEntitiesToRegister()

bool hasEntitiesToRegister ( mlir::ModuleOp module)
static

Whether this translation unit has anything for the CUDA runtime to register.

Like LoweringPrepare, count only kernel stub definitions and device variables carrying registration metadata, not kernel declarations or launch-site calls.

Definition at line 564 of file CIRGenCUDANV.cpp.