Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Sema/Sema.h
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 9,991 Lines • ▼ Show 20 Lines | |||||
/// | /// | ||||
/// Will only create deferred diagnostics for a given SourceLocation once, | /// Will only create deferred diagnostics for a given SourceLocation once, | ||||
/// so you can safely call this multiple times without generating duplicate | /// so you can safely call this multiple times without generating duplicate | ||||
/// deferred errors. | /// deferred errors. | ||||
/// | /// | ||||
/// - Otherwise, returns true without emitting any diagnostics. | /// - Otherwise, returns true without emitting any diagnostics. | ||||
bool CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee); | bool CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee); | ||||
void CUDACheckLambdaCapture(CXXMethodDecl *D, const sema::Capture &Capture); | |||||
/// Set __device__ or __host__ __device__ attributes on the given lambda | /// Set __device__ or __host__ __device__ attributes on the given lambda | ||||
/// operator() method. | /// operator() method. | ||||
/// | /// | ||||
/// CUDA lambdas declared inside __device__ or __global__ functions inherit | /// CUDA lambdas by default is host device function unless it has explicit | ||||
/// the __device__ attribute. Similarly, lambdas inside __host__ __device__ | /// host or device attribute. | ||||
/// functions become __host__ __device__ themselves. | |||||
void CUDASetLambdaAttrs(CXXMethodDecl *Method); | void CUDASetLambdaAttrs(CXXMethodDecl *Method); | ||||
/// Finds a function in \p Matches with highest calling priority | /// Finds a function in \p Matches with highest calling priority | ||||
/// from \p Caller context and erases all functions with lower | /// from \p Caller context and erases all functions with lower | ||||
/// calling priority. | /// calling priority. | ||||
void EraseUnwantedCUDAMatches( | void EraseUnwantedCUDAMatches( | ||||
const FunctionDecl *Caller, | const FunctionDecl *Caller, | ||||
SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches); | SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches); | ||||
▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines |