clang API Documentation
This file implements semantic analysis for CUDA constructs. More...
#include "clang/Sema/Sema.h"#include "clang/AST/ASTContext.h"#include "clang/AST/Decl.h"#include "clang/Sema/SemaDiagnostic.h"#include "llvm/ADT/Optional.h"#include "llvm/ADT/SmallVector.h"
Go to the source code of this file.
Functions | |
| static bool | resolveCalleeCUDATargetConflict (Sema::CUDAFunctionTarget Target1, Sema::CUDAFunctionTarget Target2, Sema::CUDAFunctionTarget *ResolvedTarget) |
This file implements semantic analysis for CUDA constructs.
Definition in file SemaCUDA.cpp.
| static bool resolveCalleeCUDATargetConflict | ( | Sema::CUDAFunctionTarget | Target1, |
| Sema::CUDAFunctionTarget | Target2, | ||
| Sema::CUDAFunctionTarget * | ResolvedTarget | ||
| ) | [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 103 of file SemaCUDA.cpp.
References clang::Sema::CFT_Global, and clang::Sema::CFT_HostDevice.
Referenced by clang::Sema::inferCUDATargetForImplicitSpecialMember().