clang  11.0.0git
Classes | Namespaces | Macros | Functions | Variables
Cuda.cpp File Reference
#include "clang/Basic/Cuda.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/VersionTuple.h"
Include dependency graph for Cuda.cpp:

Go to the source code of this file.

Classes

struct  clang::CudaArchToStringMap
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 

Macros

#define SM2(sm, ca)   { CudaArch::SM_##sm, "sm_" #sm, ca }
 
#define SM(sm)   SM2(sm, "compute_" #sm)
 
#define GFX(gpu)   { CudaArch::GFX##gpu, "gfx" #gpu, "compute_amdgcn" }
 

Functions

const char * clang::CudaVersionToString (CudaVersion V)
 
CudaVersion clang::CudaStringToVersion (const llvm::Twine &S)
 
const char * clang::CudaArchToString (CudaArch A)
 
const char * clang::CudaArchToVirtualArchString (CudaArch A)
 
CudaArch clang::StringToCudaArch (llvm::StringRef S)
 
CudaVersion clang::MinVersionForCudaArch (CudaArch A)
 Get the earliest CudaVersion that supports the given CudaArch. More...
 
CudaVersion clang::MaxVersionForCudaArch (CudaArch A)
 Get the latest CudaVersion that supports the given CudaArch. More...
 
CudaVersion clang::ToCudaVersion (llvm::VersionTuple)
 
bool clang::CudaFeatureEnabled (llvm::VersionTuple, CudaFeature)
 
bool clang::CudaFeatureEnabled (CudaVersion, CudaFeature)
 

Variables

CudaArchToStringMap clang::arch_names []
 

Macro Definition Documentation

◆ GFX

#define GFX (   gpu)    { CudaArch::GFX##gpu, "gfx" #gpu, "compute_amdgcn" }

Definition at line 63 of file Cuda.cpp.

◆ SM

#define SM (   sm)    SM2(sm, "compute_" #sm)

Definition at line 62 of file Cuda.cpp.

Referenced by clang::CodeGen::CodeGenModule::AddDeferredUnusedCoverageMapping(), clang::ASTUnit::addFileLevelDecl(), addFixitForObjCARCConversion(), clang::arcmt::trans::MigrationContext::addPropertyAttribute(), clang::GCCAsmStmt::AnalyzeAsmString(), clang::tooling::Replacement::apply(), applyEditsToTemp(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), clang::ento::ProgramState::assumeInBound(), clang::AttachDependencyGraphGen(), clang::AttachHeaderIncludeGen(), clang::TokenConcatenation::AvoidConcat(), clang::CFGStmtMap::Build(), TokenCollector::Builder::build(), checkAndSanitizeDiags(), CheckMemaccessSize(), checkObjCUnusedIvar(), compare(), compareCrossTUSourceLocs(), comparePiece(), clang::tooling::ExtractionSemicolonPolicy::compute(), clang::syntax::computeReplacements(), clang::ento::PathDiagnosticCallPiece::construct(), clang::StmtSequence::contains(), clang::Lexer::Create_PragmaLexer(), createAttributeInsertion(), clang::ento::PathDiagnosticLocation::createBegin(), clang::ento::PathDiagnosticLocation::createConditionalColonLoc(), clang::ento::PathDiagnosticLocation::createMemberLoc(), clang::ento::PathDiagnosticLocation::createOperatorLoc(), createTextRegion(), clang::Sema::DiagnoseAlwaysNonNullPointer(), disambiguateSpellingInScope(), clang::DoRewriteTest(), clang::Decl::dump(), clang::TextNodeDumper::dumpLocation(), clang::TextNodeDumper::dumpSourceRange(), clang::LocationContext::dumpStack(), EmitAlphaCounter(), clang::CodeGen::CodeGenModule::EmitAnnotationLineNo(), clang::CodeGen::CodeGenModule::EmitAnnotationUnit(), clang::TextDiagnostic::emitCodeContext(), clang::CodeGen::CoverageMappingGen::emitCounterMapping(), clang::CodeGen::CoverageMappingGen::emitEmptyMapping(), clang::markup::EmitLocation(), clang::DiagnosticRenderer::emitStoredDiagnostic(), clang::arcmt::CapturedDiagList::end(), clang::DiagnosticRenderer::endDiagnostic(), clang::CodeGenAction::ExecuteAction(), clang::PrintDependencyDirectivesSourceMinimizerAction::ExecuteAction(), clang::DumpRawTokensAction::ExecuteAction(), clang::PrintPreprocessedAction::ExecuteAction(), clang::sema::SemaPPCallbacks::FileChanged(), clang::tooling::dependencies::ModuleDepCollectorPP::FileChanged(), clang::ASTReader::FindFileRegionDecls(), FindLocsWithCommonFileID(), clang::arcmt::trans::findSemiAfterLocation(), clang::tooling::formatAndApplyAllReplacements(), clang::SourceRange::fullyContains(), GCRewriteFinalize(), clang::index::generateUSRForMacro(), clang::TypedefNameDecl::getAnonDeclWithTypedefName(), getArgumentValueString(), clang::Lexer::getAsCharRange(), getAsmSrcLocInfo(), getAsPointeeSymbol(), clang::ento::PathDiagnosticCallPiece::getCallee(), clang::Lexer::getCurrentBufferOffset(), clang::ASTWriter::getDeclID(), GetFirstChar(), GetHashOfContent(), clang::Preprocessor::getHeaderToIncludeForDiagnostics(), clang::cross_tu::CrossTranslationUnitContext::getImportedFromSourceLocation(), clang::ento::PathSensitiveBugReport::getLocation(), clang::ASTUnit::getLocation(), getLocationForCaller(), clang::ento::ProgramState::getLValue(), clang::MacroDirective::getMacroInfo(), clang::ento::PathDiagnosticLocation::getManager(), GetMappedTokenLoc(), clang::SourceManager::getPresumedColumnNumber(), clang::FunctionDecl::getReturnTypeSourceRange(), getStrlenExprArg(), clang::StringLiteral::getStrTokenLoc(), getTargetEntryUniqueInfo(), clang::index::getUSRSpacePrefix(), clang::VerifyDiagnosticConsumer::HandleComment(), clang::LogDiagnosticPrinter::HandleDiagnostic(), HandlePopUpPieceEndTag(), hasSuperInitCall(), clang::html::HighlightMacros(), clang::html::HighlightRange(), clang::index::IndexingContext::importedModule(), clang::VisibleDeclConsumer::includeHiddenDecls(), clang::TokenLexer::Init(), clang::PreprocessingRecord::isEntityInFileID(), llvm::DenseMapInfo< EditEntry >::isEqual(), clang::ento::AnalysisManager::isInCodeFile(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), clang::ento::CallEvent::isInSystemHeader(), clang::SourceLocation::isPairOfFileLocations(), clang::TokenLexer::isParsingPreprocessorDirective(), IsStringPrefix(), clang::ast_matchers::internal::isTokenAtLoc(), clang::syntax::Token::length(), clang::TokenLexer::Lex(), LexRawTokensFromMainFile(), LocPropertyAttribute(), lookThroughImplicitCasts(), LookThroughTransitiveAssignmentsAndCommaOperators(), makeStandaloneDiagnostic(), clang::ento::ModelInjector::ModelInjector(), outputPrintable(), clang::Parser::ParseConstraintLogicalOrExpression(), clang::cross_tu::parseInvocationList(), clang::index::FileIndexRecord::print(), clang::PrettyStackTraceDecl::print(), clang::TextDiagnostic::printDiagnosticMessage(), clang::LocationContext::printJson(), PrintMacroDefinition(), clang::printSourceLocationAsJson(), ReadLineMarkerFlags(), clang::edit::Commit::replaceText(), clang::ASTReader::resolvePendingMacro(), clang::RewriteMacrosInInput(), clang::arcmt::trans::MigrationContext::rewritePropertyAttribute(), SelectDigraphErrorMessage(), clang::ento::PathDiagnosticCallPiece::setCallee(), clang::CodeGen::CGDebugInfo::setLocation(), clang::Rewriter::setSourceMgr(), shouldReportOccurrenceForSystemDeclOnlyMode(), clang::CoverageSourceInfo::SourceRangeSkipped(), clang::Preprocessor::SplitToken(), sumOffsets(), clang::html::SyntaxHighlight(), clang::arcmt::trans::BlockObjCVariableTraverser::traverseBody(), updateConsecutiveMacroArgTokens(), updateExecutedLinesWithDiagnosticPieces(), and wasRegionOfInterestModifiedAt().

◆ SM2

#define SM2 (   sm,
  ca 
)    { CudaArch::SM_##sm, "sm_" #sm, ca }

Definition at line 60 of file Cuda.cpp.