LLVM  14.0.0git
Classes | Namespaces | Macros | Functions | Variables
TargetParser.cpp File Reference
#include "llvm/Support/TargetParser.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ARMBuildAttributes.h"
#include "llvm/Support/RISCVTargetParser.def"
Include dependency graph for TargetParser.cpp:

Go to the source code of this file.

Classes

struct  llvm::RISCV::CPUInfo
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::RISCV
 

Macros

#define PROC(ENUM, NAME, FEATURES, DEFAULT_MARCH)   {NAME, CK_##ENUM, FEATURES, DEFAULT_MARCH},
 
#define PROC(ENUM, NAME, FEATURES, DEFAULT_MARCH)   .Case(NAME, CK_##ENUM)
 
#define PROC_ALIAS(NAME, RV32, RV64)   .Case(NAME, IsRV64 ? StringRef(RV64) : StringRef(RV32))
 
#define PROC(ENUM, NAME, FEATURES, DEFAULT_MARCH)   .Case(NAME, CK_##ENUM)
 
#define PROC_ALIAS(NAME, RV32, RV64)   Values.emplace_back(StringRef(NAME));
 

Functions

bool llvm::RISCV::checkCPUKind (CPUKind Kind, bool IsRV64)
 
bool llvm::RISCV::checkTuneCPUKind (CPUKind Kind, bool IsRV64)
 
CPUKind llvm::RISCV::parseCPUKind (StringRef CPU)
 
StringRef llvm::RISCV::resolveTuneCPUAlias (StringRef TuneCPU, bool IsRV64)
 
CPUKind llvm::RISCV::parseTuneCPUKind (StringRef CPU, bool IsRV64)
 
StringRef llvm::RISCV::getMArchFromMcpu (StringRef CPU)
 
void llvm::RISCV::fillValidCPUArchList (SmallVectorImpl< StringRef > &Values, bool IsRV64)
 Provide a list of valid CPU names. More...
 
void llvm::RISCV::fillValidTuneCPUArchList (SmallVectorImpl< StringRef > &Values, bool IsRV64)
 
bool llvm::RISCV::getCPUFeaturesExceptStdExt (CPUKind Kind, std::vector< StringRef > &Features)
 

Variables

constexpr CPUInfo llvm::RISCV::RISCVCPUInfo []
 

Macro Definition Documentation

◆ PROC [1/3]

#define PROC (   ENUM,
  NAME,
  FEATURES,
  DEFAULT_MARCH 
)    {NAME, CK_##ENUM, FEATURES, DEFAULT_MARCH},

◆ PROC [2/3]

#define PROC (   ENUM,
  NAME,
  FEATURES,
  DEFAULT_MARCH 
)    .Case(NAME, CK_##ENUM)

◆ PROC [3/3]

#define PROC (   ENUM,
  NAME,
  FEATURES,
  DEFAULT_MARCH 
)    .Case(NAME, CK_##ENUM)

◆ PROC_ALIAS [1/2]

#define PROC_ALIAS (   NAME,
  RV32,
  RV64 
)    .Case(NAME, IsRV64 ? StringRef(RV64) : StringRef(RV32))

◆ PROC_ALIAS [2/2]

#define PROC_ALIAS (   NAME,
  RV32,
  RV64 
)    Values.emplace_back(StringRef(NAME));