clang 20.0.0git
Namespaces | Functions
TargetID.h File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/TargetParser/Triple.h"
#include <optional>
#include <set>

Go to the source code of this file.

Namespaces

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

Functions

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.
 
llvm::StringRef clang::getProcessorFromTargetID (const llvm::Triple &T, llvm::StringRef OffloadArch)
 Get processor name from target ID.
 
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.