clang
9.0.0
|
This file implements semantic analysis for CUDA constructs. More...
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/ExprCXX.h"
#include "clang/Basic/Cuda.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Sema/Lookup.h"
#include "clang/Sema/Sema.h"
#include "clang/Sema/SemaDiagnostic.h"
#include "clang/Sema/SemaInternal.h"
#include "clang/Sema/Template.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
Go to the source code of this file.
Functions | |
template<typename A > | |
static bool | hasAttr (const FunctionDecl *D, bool IgnoreImplicitAttr) |
static bool | resolveCalleeCUDATargetConflict (Sema::CUDAFunctionTarget Target1, Sema::CUDAFunctionTarget Target2, Sema::CUDAFunctionTarget *ResolvedTarget) |
When an implicitly-declared special member has to invoke more than one base/field special member, conflicts may occur in the targets of these members. More... | |
static bool | IsKnownEmitted (Sema &S, FunctionDecl *FD) |
template<typename AttrTy > | |
static void | copyAttrIfPresent (Sema &S, FunctionDecl *FD, const FunctionDecl &TemplateFD) |
This file implements semantic analysis for CUDA constructs.
Definition in file SemaCUDA.cpp.
|
static |
Definition at line 790 of file SemaCUDA.cpp.
|
static |
Definition at line 98 of file SemaCUDA.cpp.
References clang::Decl::getAttrs(), and clang::Decl::hasAttrs().
Referenced by clang::Type::getContainedAutoType(), and clang::Type::isObjCInertUnsafeUnretainedType().
|
static |
Definition at line 590 of file SemaCUDA.cpp.
Referenced by clang::Sema::CheckCUDACall(), clang::Sema::CUDADiagIfDeviceCode(), clang::Sema::CUDADiagIfHostCode(), and clang::Sema::markKnownEmitted().
|
static |
When an implicitly-declared special member has to invoke more than one base/field special member, conflicts may occur in the targets of these members.
For example, if one base's member host and another's is device, it's a conflict. This function figures out if the given targets
Target1 | and |
Target2 | conflict, and if they do not it fills in |
ResolvedTarget | with a target that resolves for both calls. |
Definition at line 245 of file SemaCUDA.cpp.
References clang::Sema::CFT_Global, and clang::Sema::CFT_HostDevice.
Referenced by clang::Sema::inferCUDATargetForImplicitSpecialMember().