clang  17.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.def"
Include dependency graph for RISCV.cpp:

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)
 

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 121 of file RISCV.cpp.

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 205 of file RISCV.cpp.

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