clang  9.0.0svn
Functions
RISCV.cpp File Reference
#include "RISCV.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Options.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/TargetParser.h"
#include "llvm/Support/raw_ostream.h"
#include "ToolChains/CommonArgs.h"
Include dependency graph for RISCV.cpp:

Go to the source code of this file.

Functions

static StringRef getExtensionTypeDesc (StringRef Ext)
 
static StringRef getExtensionType (StringRef Ext)
 
static bool isSupportedExtension (StringRef Ext)
 
static bool getExtensionVersion (const Driver &D, StringRef MArch, StringRef Ext, StringRef In, std::string &Major, std::string &Minor)
 
static void getExtensionFeatures (const Driver &D, const ArgList &Args, std::vector< StringRef > &Features, StringRef &MArch, StringRef &Exts)
 

Function Documentation

◆ getExtensionFeatures()

static void getExtensionFeatures ( const Driver D,
const ArgList &  Args,
std::vector< StringRef > &  Features,
StringRef &  MArch,
StringRef &  Exts 
)
static

◆ getExtensionType()

static StringRef getExtensionType ( StringRef  Ext)
static

Definition at line 34 of file RISCV.cpp.

Referenced by getExtensionFeatures().

◆ getExtensionTypeDesc()

static StringRef getExtensionTypeDesc ( StringRef  Ext)
static

Definition at line 24 of file RISCV.cpp.

◆ getExtensionVersion()

static bool getExtensionVersion ( const Driver D,
StringRef  MArch,
StringRef  Ext,
StringRef  In,
std::string &  Major,
std::string &  Minor 
)
static

Definition at line 54 of file RISCV.cpp.

References clang::driver::Driver::Diag(), and clang::isDigit().

◆ isSupportedExtension()

static bool isSupportedExtension ( StringRef  Ext)
static

Definition at line 44 of file RISCV.cpp.