LLVM: lib/Target/RISCV/RISCVSubtarget.cpp File Reference (original) (raw)

#include "[RISCVSubtarget.h](RISCVSubtarget%5F8h%5Fsource.html)"
#include "[GISel/RISCVCallLowering.h](RISCVCallLowering%5F8h%5Fsource.html)"
#include "[GISel/RISCVLegalizerInfo.h](RISCVLegalizerInfo%5F8h%5Fsource.html)"
#include "[RISCV.h](RISCV%5F8h%5Fsource.html)"
#include "[RISCVFrameLowering.h](RISCVFrameLowering%5F8h%5Fsource.html)"
#include "[RISCVSelectionDAGInfo.h](RISCVSelectionDAGInfo%5F8h%5Fsource.html)"
#include "[RISCVTargetMachine.h](RISCVTargetMachine%5F8h%5Fsource.html)"
#include "[llvm/MC/TargetRegistry.h](TargetRegistry%5F8h%5Fsource.html)"
#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "RISCVGenSubtargetInfo.inc"
#include "RISCVGenMacroFusion.inc"
#include "RISCVGenSearchableTables.inc"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "riscv-subtarget"
#define GET_SUBTARGETINFO_TARGET_DESC
#define GET_SUBTARGETINFO_CTOR
#define GET_RISCV_MACRO_FUSION_PRED_IMPL
#define GET_RISCVTuneInfoTable_IMPL
Variables
static cl::opt< unsigned > RVVVectorLMULMax ("riscv-v-fixed-length-vector-lmul-max", cl::desc("The maximum LMUL value to use for fixed length vectors. " "Fractional LMUL values are not supported."), cl::init(8), cl::Hidden)
static cl::opt< bool > RISCVDisableUsingConstantPoolForLargeInts ("riscv-disable-using-constant-pool-for-large-ints", cl::desc("Disable using constant pool for large integers."), cl::init(false), cl::Hidden)
static cl::opt< unsigned > RISCVMaxBuildIntsCost ("riscv-max-build-ints-cost", cl::desc("The maximum cost used for building integers."), cl::init(0), cl::Hidden)
static cl::opt< bool > UseAA ("riscv-use-aa", cl::init(true), cl::desc("Enable the use of AA during codegen."))
static cl::opt< unsigned > RISCVMinimumJumpTableEntries ("riscv-min-jump-table-entries", cl::Hidden, cl::desc("Set minimum number of entries to use a jump table on RISCV"))
static cl::opt< bool > UseMIPSLoadStorePairsOpt ("use-riscv-mips-load-store-pairs", cl::desc("Enable the load/store pair optimization pass"), cl::init(false), cl::Hidden)
static cl::opt< bool > UseMIPSCCMovInsn ("use-riscv-mips-ccmov", cl::desc("Use 'mips.ccmov' instruction"), cl::init(true), cl::Hidden)
static cl::opt< bool > EnablePExtCodeGen ("enable-p-ext-codegen", cl::desc("Turn on P Extension codegen(This is a temporary switch where " "only partial codegen is currently supported)"), cl::init(false), cl::Hidden)

DEBUG_TYPE

#define DEBUG_TYPE "riscv-subtarget"

GET_RISCV_MACRO_FUSION_PRED_IMPL

#define GET_RISCV_MACRO_FUSION_PRED_IMPL

GET_RISCVTuneInfoTable_IMPL

#define GET_RISCVTuneInfoTable_IMPL

GET_SUBTARGETINFO_CTOR

#define GET_SUBTARGETINFO_CTOR

GET_SUBTARGETINFO_TARGET_DESC

#define GET_SUBTARGETINFO_TARGET_DESC

EnablePExtCodeGen

RISCVDisableUsingConstantPoolForLargeInts

cl::opt< bool > RISCVDisableUsingConstantPoolForLargeInts("riscv-disable-using-constant-pool-for-large-ints", cl::desc("Disable using constant pool for large integers."), cl::init(false), cl::Hidden) ( "riscv-disable-using-constant-pool-for-large-ints" , cl::desc("Disable using constant pool for large integers.") , cl::init(false) , cl::Hidden ) static

RISCVMaxBuildIntsCost

cl::opt< unsigned > RISCVMaxBuildIntsCost("riscv-max-build-ints-cost", cl::desc("The maximum cost used for building integers."), cl::init(0), cl::Hidden) ( "riscv-max-build-ints-cost" , cl::desc("The maximum cost used for building integers.") , cl::init(0) , cl::Hidden ) static

RISCVMinimumJumpTableEntries

cl::opt< unsigned > RISCVMinimumJumpTableEntries("riscv-min-jump-table-entries", cl::Hidden, cl::desc("Set minimum number of entries to use a jump table on RISCV")) ( "riscv-min-jump-table-entries" , cl::Hidden , cl::desc("Set minimum number of entries to use a jump table on RISCV") ) static

RVVVectorLMULMax

cl::opt< unsigned > RVVVectorLMULMax("riscv-v-fixed-length-vector-lmul-max", cl::desc("The maximum LMUL value to use for fixed length vectors. " "Fractional LMUL values are not supported."), cl::init(8), cl::Hidden) ( "riscv-v-fixed-length-vector-lmul-max" , cl::desc("The maximum LMUL value to use for fixed length vectors. " "Fractional LMUL values are not supported.") , cl::init(8) , cl::Hidden ) static

UseAA

cl::opt< bool > UseAA("riscv-use-aa", cl::init(true), cl::desc("Enable the use of AA during codegen.")) ( "riscv-use-aa" , cl::init(true) , cl::desc("Enable the use of AA during codegen.") ) static

UseMIPSCCMovInsn

cl::opt< bool > UseMIPSCCMovInsn("use-riscv-mips-ccmov", cl::desc("Use 'mips.ccmov' instruction"), cl::init(true), cl::Hidden) ( "use-riscv-mips-ccmov" , cl::desc("Use 'mips.ccmov' instruction") , cl::init(true) , cl::Hidden ) static

UseMIPSLoadStorePairsOpt