clang 20.0.0git
Macros | Functions | Variables
RISCV.cpp File Reference
#include "RISCV.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/MacroBuilder.h"
#include "clang/Basic/TargetBuiltins.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/RISCVTargetParser.h"
#include <optional>
#include "clang/Basic/BuiltinsRISCVVector.def"
#include "clang/Basic/BuiltinsRISCV.inc"

Go to the source code of this file.

Macros

#define BUILTIN(ID, TYPE, ATTRS)    {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
 
#define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE)    {#ID, TYPE, ATTRS, FEATURE, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
 
#define BUILTIN(ID, TYPE, ATTRS)    {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
 
#define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE)    {#ID, TYPE, ATTRS, FEATURE, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
 

Functions

static unsigned getVersionValue (unsigned MajorVersion, unsigned MinorVersion)
 
static void populateNegativeRISCVFeatures (std::vector< std::string > &Features)
 
static void handleFullArchString (StringRef FullArchStr, std::vector< std::string > &Features)
 

Variables

static constexpr Builtin::Info BuiltinInfo []
 

Macro Definition Documentation

◆ BUILTIN [1/2]

#define BUILTIN (   ID,
  TYPE,
  ATTRS 
)     {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},

◆ BUILTIN [2/2]

#define BUILTIN (   ID,
  TYPE,
  ATTRS 
)     {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},

◆ TARGET_BUILTIN [1/2]

#define TARGET_BUILTIN (   ID,
  TYPE,
  ATTRS,
  FEATURE 
)     {#ID, TYPE, ATTRS, FEATURE, HeaderDesc::NO_HEADER, ALL_LANGUAGES},

◆ TARGET_BUILTIN [2/2]

#define TARGET_BUILTIN (   ID,
  TYPE,
  ATTRS,
  FEATURE 
)     {#ID, TYPE, ATTRS, FEATURE, HeaderDesc::NO_HEADER, ALL_LANGUAGES},

Function Documentation

◆ getVersionValue()

static unsigned getVersionValue ( unsigned  MajorVersion,
unsigned  MinorVersion 
)
static

Definition at line 142 of file RISCV.cpp.

Referenced by clang::targets::RISCVTargetInfo::getTargetDefines().

◆ handleFullArchString()

static void handleFullArchString ( StringRef  FullArchStr,
std::vector< std::string > &  Features 
)
static

◆ populateNegativeRISCVFeatures()

static void populateNegativeRISCVFeatures ( std::vector< std::string > &  Features)
static

Definition at line 389 of file RISCV.cpp.

Referenced by handleFullArchString().

Variable Documentation

◆ BuiltinInfo

constexpr Builtin::Info BuiltinInfo[]
staticconstexpr
Initial value:
= {
#define BUILTIN(ID, TYPE, ATTRS)
#define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE)
#define BUILTIN(ID, TYPE, ATTRS)
#define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE)
}

Definition at line 243 of file RISCV.cpp.