#include "llvm/ADT/DenseSet.h"
#include "llvm/Support/RISCVISAUtils.h"
#include "llvm/TableGen/Record.h"
#include "llvm/TableGen/TableGenBackend.h"
usingnamespacellvm;
static StringRef getExtensionName(const Record *R) { … }
static void printExtensionTable(raw_ostream &OS,
ArrayRef<const Record *> Extensions,
bool Experimental) { … }
static void emitRISCVExtensions(const RecordKeeper &Records, raw_ostream &OS) { … }
static void printMArch(raw_ostream &OS, ArrayRef<const Record *> Features) { … }
static void printProfileTable(raw_ostream &OS,
ArrayRef<const Record *> Profiles,
bool Experimental) { … }
static void emitRISCVProfiles(const RecordKeeper &Records, raw_ostream &OS) { … }
static void emitRISCVProcs(const RecordKeeper &RK, raw_ostream &OS) { … }
static void emitRISCVExtensionBitmask(const RecordKeeper &RK, raw_ostream &OS) { … }
static void EmitRISCVTargetDef(const RecordKeeper &RK, raw_ostream &OS) { … }
static TableGen::Emitter::Opt X("gen-riscv-target-def", EmitRISCVTargetDef,
"Generate the list of CPUs and extensions for "
"RISC-V");