clang  14.0.0git
Namespaces | Functions
TargetID.cpp File Reference
#include "clang/Basic/TargetID.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/TargetParser.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
Include dependency graph for TargetID.cpp:

Go to the source code of this file.

Namespaces

 clang
 

Functions

static const llvm::SmallVector< llvm::StringRef, 4 > clang::getAllPossibleAMDGPUTargetIDFeatures (const llvm::Triple &T, llvm::StringRef Proc)
 
const 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. More...
 
static llvm::StringRef clang::getCanonicalProcessorName (const llvm::Triple &T, llvm::StringRef Processor)
 Returns canonical processor name or empty string if Processor is invalid. More...
 
llvm::StringRef clang::getProcessorFromTargetID (const llvm::Triple &T, llvm::StringRef OffloadArch)
 Get processor name from target ID. More...
 
static llvm::Optional< llvm::StringRef > clang::parseTargetIDWithFormatCheckingOnly (llvm::StringRef TargetID, llvm::StringMap< bool > *FeatureMap)
 
llvm::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. More...
 
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. More...
 
llvm::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. More...