clang  10.0.0svn
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/ADT/Optional.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.


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)
static bool getArchFeatures (const Driver &D, StringRef MArch, std::vector< StringRef > &Features, const ArgList &Args)

Function Documentation

◆ getArchFeatures()

static bool getArchFeatures ( const Driver D,
StringRef  MArch,
std::vector< StringRef > &  Features,
const ArgList &  Args 

◆ getExtensionFeatures()

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

◆ getExtensionType()

static StringRef getExtensionType ( StringRef  Ext)

Definition at line 35 of file RISCV.cpp.

Referenced by getExtensionFeatures().

◆ getExtensionTypeDesc()

static StringRef getExtensionTypeDesc ( StringRef  Ext)

Definition at line 25 of file RISCV.cpp.

◆ getExtensionVersion()

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

Definition at line 55 of file RISCV.cpp.

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

Referenced by getArchFeatures().

◆ isSupportedExtension()

static bool isSupportedExtension ( StringRef  Ext)

Definition at line 45 of file RISCV.cpp.