clang 23.0.0git
clang::driver::tools::riscv Namespace Reference

Functions

void getRISCVTargetFeatures (const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
StringRef getRISCVABI (const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
std::string getRISCVArch (const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
std::string getRISCVTargetCPU (const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
std::optional< StringRef > getRISCVTuneCPU (const Driver &D, const llvm::opt::ArgList &Args, SmallVectorImpl< std::string > *TuneFeatures=nullptr)
 Return the tune CPU and optionally, the tune features.

Function Documentation

◆ getRISCVABI()

◆ getRISCVArch()

std::string clang::driver::tools::riscv::getRISCVArch ( const llvm::opt::ArgList & Args,
const llvm::Triple & Triple )

◆ getRISCVTargetCPU()

std::string clang::driver::tools::riscv::getRISCVTargetCPU ( const llvm::opt::ArgList & Args,
const llvm::Triple & Triple )

Definition at line 383 of file RISCV.cpp.

◆ getRISCVTargetFeatures()

void clang::driver::tools::riscv::getRISCVTargetFeatures ( const Driver & D,
const llvm::Triple & Triple,
const llvm::opt::ArgList & Args,
std::vector< llvm::StringRef > & Features )

◆ getRISCVTuneCPU()

std::optional< StringRef > clang::driver::tools::riscv::getRISCVTuneCPU ( const Driver & D,
const llvm::opt::ArgList & Args,
SmallVectorImpl< std::string > * TuneFeatures = nullptr )

Return the tune CPU and optionally, the tune features.

A std::nullopt return value signals error state.

Definition at line 401 of file RISCV.cpp.

References clang::driver::Driver::Diag().