clang 22.0.0git
OffloadArch.cpp File Reference
#include "clang/Basic/OffloadArch.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.

Macros

#define SM(sm)
#define GFX(gpu)

Functions

const char * clang::OffloadArchToString (OffloadArch A)
const char * clang::OffloadArchToVirtualArchString (OffloadArch A)
OffloadArch clang::StringToOffloadArch (llvm::StringRef S)

Variables

static const OffloadArchToStringMap clang::ArchNames []

Macro Definition Documentation

◆ GFX

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

Definition at line 17 of file OffloadArch.cpp.

◆ SM

#define SM ( sm)
Value:
{OffloadArch::SM_##sm, "sm_" #sm, "compute_" #sm}

Definition at line 16 of file OffloadArch.cpp.

Referenced by Accumulate(), clang::Sema::ActOnEndOfTranslationUnit(), clang::Sema::ActOnFinishFunctionBody(), clang::CodeGen::CodeGenModule::AddDeferredUnusedCoverageMapping(), clang::markup::AddFID(), clang::ASTUnit::addFileLevelDecl(), addFixitForObjCARCConversion(), clang::SanitizerMask::addHash, adjustRemoval(), clang::Lexer::AdvanceToTokenCharacter(), clang::GCCAsmStmt::AnalyzeAsmString(), AnalyzeImplicitConversions(), annotateConsumedSummaryMismatch(), annotateStartParameter(), clang::internal::anyConflict(), clang::tooling::Replacement::apply(), applyCocoaAPICheck(), applyRewrite(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), clang::ento::ProgramState::assumeInBoundDual(), clang::ASTContext::ASTContext(), clang::tooling::AtomicChange::AtomicChange(), clang::tooling::AtomicChange::AtomicChange(), atOrBeforeSeparation(), clang::TokenConcatenation::AvoidConcat(), clang::CFGStmtMap::Build(), buildFixItInsertionLine(), checkAndSanitizeDiags(), CheckMemaccessSize(), checkObjCUnusedIvar(), clang::edit::Commit::Commit(), CompactMacroExpandedPieces(), compare(), compareCrossTUSourceLocs(), comparePiece(), clang::tooling::ExtractionSemicolonPolicy::compute(), computeCommonMacroArgExpansionFileIDs(), clang::syntax::computeReplacements(), clang::ento::PathDiagnosticCallPiece::construct(), clang::StmtSequence::contains(), clang::tooling::convertChangesToFileReplacements(), convertTokenRangeToCharRange(), clang::Lexer::Create_PragmaLexer(), createAttributeInsertion(), createDataFixit(), clang::Sema::CreateLaunchBoundsAttr(), createOverloadsForFixedParams(), clang::tooling::createRenameAtomicChanges(), createTextRegion(), clang::Sema::DiagnoseAlwaysNonNullPointer(), diagnoseRepeatedUseOfWeak(), disambiguateSpellingInScope(), clang::DoRewriteTest(), clang::comments::Token::dump(), clang::Decl::dump(), clang::SourceLocation::dump(), clang::SourceRange::dump(), clang::syntax::Token::dumpForTests(), clang::LocationContext::dumpStack(), clang::edit::EditedSource::EditedSource(), clang::CodeGen::CodeGenModule::EmitAnnotationLineNo(), clang::CodeGen::CodeGenModule::EmitAnnotationUnit(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::markup::EmitLocation(), clang::markup::EmitRange(), emitTargetTeamsLoopCodegenStatus(), clang::CodeGenAction::ExecuteAction(), clang::DumpModuleInfoAction::ExecuteAction(), clang::DumpRawTokensAction::ExecuteAction(), clang::PrintDependencyDirectivesSourceMinimizerAction::ExecuteAction(), clang::PrintPreprocessedAction::ExecuteAction(), clang::sema::SemaPPCallbacks::FileChanged(), fileContainsString(), clang::syntax::FileRange::FileRange(), clang::syntax::FileRange::FileRange(), clang::ento::LikelyFalsePositiveSuppressionBRVisitor::finalizeVisitor(), clang::MacroDirective::findDirectiveAtLoc(), findDirectives(), findExecutedLines(), clang::ASTReader::FindFileRegionDecls(), findLinesForRange(), clang::Lexer::findLocationAfterToken(), FindLocsWithCommonFileID(), clang::Lexer::findNextToken(), clang::Lexer::findPreviousToken(), findPreviousTokenKind(), findPreviousTokenStart(), fixUPCAddressofArraySubscriptWithSpan(), FixVarInitializerWithSpan(), clang::tooling::formatAndApplyAllReplacements(), clang::FullSourceLoc::FullSourceLoc(), generateEmptyDiagnosticForReport(), clang::index::generateUSRForMacro(), clang::index::generateUSRForMacro(), clang::Lexer::getAsCharRange(), clang::Lexer::getAsCharRange(), getAsmSrcLocInfo(), getAsPointeeSymbol(), clang::tooling::getAssociatedRange(), getBeginningOfFileToken(), clang::Lexer::GetBeginningOfToken(), clang::CFGStmtMap::getBlock(), GetDefaultValueString(), clang::MacroInfo::getDefinitionLength(), getEndCharLoc(), getEntityEndLoc(), getEntryInfoFromPresumedLoc(), getExpandedMacro(), getExpansionForSplitToken(), clang::ast_matchers::internal::getExpansionLocOfMacroRecursive(), clang::getExprText(), clang::markup::GetFID(), clang::edit::Commit::Edit::getFileLocation(), clang::edit::Commit::Edit::getFileRange(), clang::tooling::getFileRange(), clang::tooling::getFileRangeForEdit(), GetFirstChar(), DerefSimplePtrArithFixableGadget::getFixits(), getFunNameText(), getGlobalStreamPointerByName(), clang::Preprocessor::getHeaderToIncludeForDiagnostics(), clang::Lexer::getImmediateMacroName(), clang::Lexer::getImmediateMacroNameForDiagnostics(), clang::Lexer::getIndentationForLine(), clang::edit::Commit::Edit::getInsertFromRange(), getLengthOnSingleLine(), getLengthOnSingleLine(), clang::ASTUnit::getLocation(), clang::ASTUnit::getLocation(), clang::ento::PathSensitiveBugReport::getLocation(), getLocationForCaller(), clang::StringLiteral::getLocationOfByte(), clang::Lexer::getLocForEndOfToken(), clang::ento::ProgramState::getLValue(), getMacroArgExpansionFileIDs(), clang::data_collection::getMacroStack(), GetMappedTokenLoc(), clang::tooling::getNamedDeclAt(), clang::getPastLoc(), clang::getPointee2TypeText(), getPointee2TypeText(), clang::getPointeeTypeText(), getRange(), getRangeForSplitTokens(), clang::getRangeText(), clang::Lexer::getRawToken(), clang::FunctionDecl::getReturnTypeSourceRange(), getSourceRangeToTokenEnd(), clang::Lexer::getSourceText(), clang::Lexer::getSpelling(), clang::Lexer::getTokenPrefixLength(), getTopMostMacro(), clang::getVarDeclIdentifierText(), clang::VerifyDiagnosticConsumer::HandleComment(), clang::LogDiagnosticPrinter::HandleDiagnostic(), hasUnsupportedSpecifiers(), highlightLines(), clang::html::HighlightMacros(), clang::html::HighlightRange(), clang::index::IndexingContext::importedModule(), clang::TokenLexer::Init(), clang::tooling::AtomicChange::insert(), isArgumentExpandedFromMacro(), clang::Lexer::isAtEndOfMacroExpansion(), clang::Lexer::isAtStartOfMacroExpansion(), clang::FilenamePatternConstraint::isAutoGenerated(), isExpandedFromConfigurationMacro(), IsFromSameFile(), isFromSystemHeader(), clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList(), isFunctionMacroExpansion(), IsInAnyMacroBody(), clang::ento::AnalysisManager::isInCodeFile(), clang::ento::AnalysisManager::isInCodeFile(), isInExpansionTokenRange(), clang::CodeGen::CodeGenModule::isInNoSanitizeList(), clang::CodeGen::CodeGenModule::isInNoSanitizeList(), clang::ento::CallEvent::isInSystemHeader(), isPreprocessedEntityIfInFileID(), clang::tooling::isSelfContainedHeader(), isStandardDelete(), clang::ento::BugSuppression::isSuppressed(), clang::ast_matchers::internal::isTokenAtLoc(), clang::TokenLexer::Lex(), clang::tooling::dependencies::ModuleDepCollectorPP::LexedFileChanged(), clang::Lexer::Lexer(), LexRawTokensFromMainFile(), LocPropertyAttribute(), clang::Sema::LookupSpecialMember(), TokenCollector::CollectPPExpansions::MacroExpands(), clang::Lexer::makeFileCharRange(), makeRangeFromFileLocs(), makeStandaloneDiagnostic(), makeStandaloneFixIt(), makeStandaloneRange(), mapDiagnosticRanges(), clang::Lexer::MeasureTokenLength(), mergeFixits(), MoveUpTranslationUnitIncludeHierarchy(), NormalizeLine(), onlyWhitespaceBetween(), optimizeEdges(), clang::IncrementalParser::Parse(), clang::ParseAST(), ParseDirective(), clang::cross_tu::parseInvocationList(), clang::modulemap::parseModuleMap(), clang::ento::ConditionBRVisitor::patternMatch(), populateExecutedLinesWithFunctionSignature(), populateExecutedLinesWithStmt(), clang::PPConditionalDirectiveRecord::PPConditionalDirectiveRecord(), prepareAndFilterRanges(), clang::PreprocessingRecord::PreprocessingRecord(), clang::Lexer::Preprocessor, clang::MacroInfo::Preprocessor, clang::Preprocessor::Preprocessor(), clang::index::FileIndexRecord::print(), clang::SourceLocation::print(), clang::SourceRange::print(), PrintDifference(), clang::LocationContext::printJson(), clang::ProgramPoint::printJson(), printLoc(), printLocation(), clang::CodeGen::CodeGenModule::printPostfixForExternalizedDecl(), clang::printSourceLocationAsJson(), clang::SourceLocation::printToString(), clang::SourceRange::printToString(), clang::PrintingCodeCompleteConsumer::ProcessCodeCompleteResults(), clang::syntax::Token::range(), clang::syntax::Token::range(), rangesInsideSameMacroArgExpansion(), ReadLineMarkerFlags(), removeContextCycles(), removePunyEdges(), clang::tooling::AtomicChange::replace(), clang::tooling::AtomicChange::replace(), retrieveMacroLocation(), clang::RewriteIncludesInInput(), clang::RewriteMacrosInInput(), clang::Rewriter::Rewriter(), clang::SanitizerSpecialCaseList::SanitizerSection::SanitizerSection(), Scan(), clang::ScratchBuffer::ScratchBuffer(), clang::ento::PathDiagnosticCallPiece::setCallee(), clang::DiagnosticsEngine::setDiagSuppressionMapping(), clang::CodeGen::CGDebugInfo::setLocation(), clang::Rewriter::setSourceMgr(), shouldRecordNewFile(), skipWhitespaceAndNewline(), clang::SourceMgrAdapter::SourceMgrAdapter(), spelledInMacroDefinition(), clang::Preprocessor::SplitToken(), startsWithNewline(), clang::syntax::FileRange::text(), clang::syntax::Token::text(), timeTraceMetadata(), clang::syntax::FileRange::toCharRange(), clang::syntax::tokenize(), clang::syntax::tokenize(), clang::TokenRewriter::TokenRewriter(), updateConsecutiveMacroArgTokens(), clang::VerifyDiagnosticConsumer::UpdateParsedFileStatus(), clang::tooling::validateEditRange(), clang::tooling::validateRange(), clang::ento::retaincountchecker::RefCountReportVisitor::VisitNode(), and clang::ento::ConditionBRVisitor::VisitTrueTest().