clang 20.0.0git
Namespaces | Functions
TargetID.cpp File Reference
#include "clang/Basic/TargetID.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/TargetParser.h"
#include "llvm/TargetParser/Triple.h"
#include <map>
#include <optional>

Go to the source code of this file.

Namespaces

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

Functions

static llvm::SmallVector< llvm::StringRef, 4 > clang::getAllPossibleAMDGPUTargetIDFeatures (const llvm::Triple &T, llvm::StringRef Proc)
 
llvm::SmallVector< llvm::StringRef, 4 > clang::getAllPossibleTargetIDFeatures (const llvm::Triple &T, llvm::StringRef Processor)
 Get all feature strings that can be used in target ID for Processor.
 
static llvm::StringRef clang::getCanonicalProcessorName (const llvm::Triple &T, llvm::StringRef Processor)
 Returns canonical processor name or empty string if Processor is invalid.
 
llvm::StringRef clang::getProcessorFromTargetID (const llvm::Triple &T, llvm::StringRef OffloadArch)
 Get processor name from target ID.
 
static std::optional< llvm::StringRef > clang::parseTargetIDWithFormatCheckingOnly (llvm::StringRef TargetID, llvm::StringMap< bool > *FeatureMap)
 
std::optional< llvm::StringRef > clang::parseTargetID (const llvm::Triple &T, llvm::StringRef OffloadArch, llvm::StringMap< bool > *FeatureMap)
 Parse a target ID to get processor and feature map.
 
std::string clang::getCanonicalTargetID (llvm::StringRef Processor, const llvm::StringMap< bool > &Features)
 Returns canonical target ID, assuming Processor is canonical and all entries in Features are valid.
 
std::optional< std::pair< llvm::StringRef, llvm::StringRef > > clang::getConflictTargetIDCombination (const std::set< llvm::StringRef > &TargetIDs)
 Get the conflicted pair of target IDs for a compilation or a bundled code object, assuming TargetIDs are canonicalized.
 
bool clang::isCompatibleTargetID (llvm::StringRef Provided, llvm::StringRef Requested)
 Check whether the provided target ID is compatible with the requested target ID.