Home
last modified time | relevance | path

Searched full:riscv (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/freebsd/sys/conf/
H A Dfiles.riscv1 cddl/dev/dtrace/riscv/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}"
2 cddl/dev/dtrace/riscv/dtrace_isa.c optional dtrace compile-with "${DTRACE_C}"
3 cddl/dev/dtrace/riscv/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}"
4 cddl/dev/dtrace/riscv/instr_size.c optional dtrace compile-with "${DTRACE_C}"
5 cddl/dev/fbt/riscv/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}"
43 riscv/riscv/aplic.c standard
44 riscv/riscv/autoconf.c standard
45 riscv/riscv/bus_machdep.c standard
46 riscv/riscv/bus_space_asm.S standard
47 riscv/riscv/busdma_bounce.c standard
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVOptWInstrs.cpp35 #include "RISCV.h"
45 #define DEBUG_TYPE "riscv-opt-w-instrs"
52 static cl::opt<bool> DisableSExtWRemoval("riscv-disable-sextw-removal",
55 static cl::opt<bool> DisableStripWSuffix("riscv-disable-strip-w-suffix",
96 unsigned MCOpcode = RISCV::getRVVMCOpcode(MI.getOpcode()); in vectorPseudoHasAllNBitUsers()
112 RISCV::getVectorLowDemandedScalarBits(MCOpcode, Log2SEW); in vectorPseudoHasAllNBitUsers()
154 case RISCV::ADDIW: in hasAllNBitUsers()
155 case RISCV::ADDW: in hasAllNBitUsers()
156 case RISCV::DIVUW: in hasAllNBitUsers()
157 case RISCV::DIVW: in hasAllNBitUsers()
[all …]
H A DRISCVExpandPseudoInsts.cpp15 #include "RISCV.h"
108 case RISCV::PseudoRV32ZdinxSD: in expandMI()
110 case RISCV::PseudoRV32ZdinxLD: in expandMI()
112 case RISCV::PseudoCCMOVGPRNoX0: in expandMI()
113 case RISCV::PseudoCCMOVGPR: in expandMI()
114 case RISCV::PseudoCCADD: in expandMI()
115 case RISCV::PseudoCCSUB: in expandMI()
116 case RISCV::PseudoCCAND: in expandMI()
117 case RISCV::PseudoCCOR: in expandMI()
118 case RISCV::PseudoCCXOR: in expandMI()
[all …]
H A DRISCVInstrInfo.cpp15 #include "RISCV.h"
48 "riscv-prefer-whole-register-move", cl::init(false), cl::Hidden,
52 "riscv-force-machine-combiner-strategy", cl::Hidden,
63 using namespace RISCV;
70 namespace llvm::RISCV { namespace
75 } // end namespace llvm::RISCV
78 : RISCVGenInstrInfo(RISCV::ADJCALLSTACKDOWN, RISCV::ADJCALLSTACKUP), in RISCVInstrInfo()
83 return MCInstBuilder(RISCV::C_NOP); in getNop()
84 return MCInstBuilder(RISCV in getNop()
[all...]
H A DRISCVRegisterInfo.cpp14 #include "RISCV.h"
33 static cl::opt<bool> DisableCostPerUse("riscv-disable-cost-per-use",
36 DisableRegAllocHints("riscv-disable-regalloc-hints", cl::Hidden,
41 static_assert(RISCV::X1 == RISCV::X0 + 1, "Register list not consecutive");
42 static_assert(RISCV::X31 == RISCV::X0 + 31, "Register list not consecutive");
43 static_assert(RISCV::F1_H == RISCV::F0_H + 1, "Register list not consecutive");
44 static_assert(RISCV::F31_H == RISCV::F0_H + 31,
46 static_assert(RISCV::F1_F == RISCV::F0_F + 1, "Register list not consecutive");
47 static_assert(RISCV::F31_F == RISCV::F0_F + 31,
49 static_assert(RISCV::F1_D == RISCV::F0_D + 1, "Register list not consecutive");
[all …]
H A DRISCVAsmPrinter.cpp19 #include "RISCV.h"
53 extern const SubtargetFeatureKV RISCVFeatureKV[RISCV::NumSubtargetFeatures];
133 MII->getOpcode() == RISCV::DBG_VALUE || in LowerSTACKMAP()
168 RISCVMatInt::generateMCInstSeq(CallTarget, *STI, RISCV::X1, Seq); in LowerPATCHPOINT()
173 bool Compressed = EmitToStreamer(OutStreamer, MCInstBuilder(RISCV::JALR) in LowerPATCHPOINT()
174 .addReg(RISCV::X1) in LowerPATCHPOINT()
175 .addReg(RISCV::X1) in LowerPATCHPOINT()
183 MCInstBuilder(RISCV::PseudoCALL).addOperand(CallTargetMCOp)); in LowerPATCHPOINT()
215 MCInstBuilder(RISCV::PseudoCALL).addOperand(CallTargetMCOp)); in LowerSTATEPOINT()
219 EmitToStreamer(OutStreamer, MCInstBuilder(RISCV::JAL) in LowerSTATEPOINT()
[all …]
H A DRISCVMakeCompressible.cpp68 #include "RISCV.h"
77 #define DEBUG_TYPE "riscv-make-compressible"
94 INITIALIZE_PASS(RISCVMakeCompressibleOpt, "riscv-make-compressible",
102 case RISCV::LBU: in log2LdstWidth()
103 case RISCV::SB: in log2LdstWidth()
105 case RISCV::LH: in log2LdstWidth()
106 case RISCV::LHU: in log2LdstWidth()
107 case RISCV::SH: in log2LdstWidth()
109 case RISCV::LW: in log2LdstWidth()
110 case RISCV::SW: in log2LdstWidth()
[all …]
H A DRISCVExpandAtomicPseudoInsts.cpp16 #include "RISCV.h"
114 case RISCV::PseudoAtomicLoadNand32: in expandMI()
117 case RISCV::PseudoAtomicLoadNand64: in expandMI()
120 case RISCV::PseudoMaskedAtomicSwap32: in expandMI()
123 case RISCV::PseudoMaskedAtomicLoadAdd32: in expandMI()
125 case RISCV::PseudoMaskedAtomicLoadSub32: in expandMI()
127 case RISCV::PseudoMaskedAtomicLoadNand32: in expandMI()
130 case RISCV::PseudoMaskedAtomicLoadMax32: in expandMI()
133 case RISCV::PseudoMaskedAtomicLoadMin32: in expandMI()
136 case RISCV in expandMI()
[all...]
H A DRISCVTargetTransformInfo.cpp26 "riscv-v-register-bit-width-lmul",
33 "riscv-v-slp-max-vf",
54 case RISCV::VRGATHER_VI: in getRISCVInstructionCost()
57 case RISCV::VRGATHER_VV: in getRISCVInstructionCost()
60 case RISCV::VSLIDEUP_VI: in getRISCVInstructionCost()
61 case RISCV::VSLIDEDOWN_VI: in getRISCVInstructionCost()
64 case RISCV::VSLIDEUP_VX: in getRISCVInstructionCost()
65 case RISCV::VSLIDEDOWN_VX: in getRISCVInstructionCost()
68 case RISCV::VREDMAX_VS: in getRISCVInstructionCost()
69 case RISCV::VREDMIN_VS: in getRISCVInstructionCost()
[all …]
H A DRISCVMergeBaseOffset.cpp14 #include "RISCV.h"
24 #define DEBUG_TYPE "riscv-merge-base-offset"
87 if (Hi.getOpcode() != RISCV::LUI && Hi.getOpcode() != RISCV::AUIPC && in INITIALIZE_PASS()
88 Hi.getOpcode() != RISCV::PseudoMovAddr) in INITIALIZE_PASS()
93 Hi.getOpcode() == RISCV::AUIPC ? RISCVII::MO_PCREL_HI : RISCVII::MO_HI; in INITIALIZE_PASS()
101 if (Hi.getOpcode() == RISCV::PseudoMovAddr) { in INITIALIZE_PASS()
111 if (Lo->getOpcode() != RISCV::ADDI) in INITIALIZE_PASS()
116 if (Hi.getOpcode() == RISCV::LUI || Hi.getOpcode() == RISCV::PseudoMovAddr) { in INITIALIZE_PASS()
122 assert(Hi.getOpcode() == RISCV::AUIPC); in INITIALIZE_PASS()
150 if (Hi.getOpcode() != RISCV::AUIPC) in foldOffset()
[all …]
H A DRISCVISelDAGToDAG.cpp28 #define DEBUG_TYPE "riscv-isel"
32 "riscv-use-rematerializable-movimm", cl::Hidden,
37 namespace llvm::RISCV { namespace
47 } // namespace llvm::RISCV
67 SDValue VL = CurDAG->getRegister(RISCV::X0, Subtarget->getXLenVT()); in PreprocessISelDAG()
114 CurDAG->getRegister(RISCV::X0, MVT::i64), in PreprocessISelDAG()
177 SDValue SrcReg = CurDAG->getRegister(RISCV::X0, VT); in selectImmSeq()
187 CurDAG->getRegister(RISCV::X0, VT)); in selectImmSeq()
211 CurDAG->getMachineNode(RISCV::PseudoMovImm, DL, VT, in selectImm()
228 CurDAG->getMachineNode(RISCV::SLLI, DL, VT, Lo, in selectImm()
[all …]
/freebsd/sys/contrib/device-tree/src/riscv/sophgo/
H A Dsg2044-cpus.dtsi16 compatible = "thead,c920", "riscv";
25 mmu-type = "riscv,sv48";
27 riscv,isa = "rv64imafdcv";
28 riscv,isa-base = "rv64i";
29 riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
40 riscv,cbom-block-size = <64>;
41 riscv,cbop-block-size = <64>;
42 riscv,cboz-block-size = <64>;
45 compatible = "riscv,cpu-intc";
52 compatible = "thead,c920", "riscv";
[all …]
H A Dsg2042-cpus.dtsi257 compatible = "thead,c920", "riscv";
259 riscv,isa = "rv64imafdc";
260 riscv,isa-base = "rv64i";
261 riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
274 mmu-type = "riscv,sv39";
277 compatible = "riscv,cpu-intc";
284 compatible = "thead,c920", "riscv";
286 riscv,isa = "rv64imafdc";
287 riscv,isa-base = "rv64i";
288 riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp68 case RISCV::fixup_riscv_pcrel_hi20: in getRelocType()
70 case RISCV::fixup_riscv_pcrel_lo12_i: in getRelocType()
72 case RISCV::fixup_riscv_pcrel_lo12_s: in getRelocType()
74 case RISCV::fixup_riscv_got_hi20: in getRelocType()
76 case RISCV::fixup_riscv_tls_got_hi20: in getRelocType()
78 case RISCV::fixup_riscv_tls_gd_hi20: in getRelocType()
80 case RISCV::fixup_riscv_tlsdesc_hi20: in getRelocType()
82 case RISCV::fixup_riscv_tlsdesc_load_lo12: in getRelocType()
84 case RISCV::fixup_riscv_tlsdesc_add_lo12: in getRelocType()
86 case RISCV in getRelocType()
[all...]
H A DRISCVMCCodeEmitter.cpp126 if (MI.getOpcode() == RISCV::PseudoTAIL) { in expandFunctionCall()
128 Ra = RISCV::X6; in expandFunctionCall()
131 if (STI.hasFeature(RISCV::FeatureStdExtZicfilp)) in expandFunctionCall()
132 Ra = RISCV::X7; in expandFunctionCall()
133 } else if (MI.getOpcode() == RISCV::PseudoCALLReg) { in expandFunctionCall()
136 } else if (MI.getOpcode() == RISCV::PseudoCALL) { in expandFunctionCall()
138 Ra = RISCV::X1; in expandFunctionCall()
139 } else if (MI.getOpcode() == RISCV::PseudoJump) { in expandFunctionCall()
150 TmpInst = MCInstBuilder(RISCV::AUIPC).addReg(Ra).addExpr(CallExpr); in expandFunctionCall()
154 if (MI.getOpcode() == RISCV::PseudoTAIL || in expandFunctionCall()
[all …]
H A DRISCVMatInt.cpp25 case RISCV::SLLI: in getInstSeqCost()
26 case RISCV::SRLI: in getInstSeqCost()
29 case RISCV::ADDI: in getInstSeqCost()
30 case RISCV::ADDIW: in getInstSeqCost()
31 case RISCV::LUI: in getInstSeqCost()
51 bool IsRV64 = STI.hasFeature(RISCV::Feature64Bit); in generateInstSeqImpl()
54 if (STI.hasFeature(RISCV::FeatureStdExtZbs) && isPowerOf2_64(Val) && in generateInstSeqImpl()
56 Res.emplace_back(RISCV::BSETI, Log2_64(Val)); in generateInstSeqImpl()
72 Res.emplace_back(RISCV::LUI, Hi20); in generateInstSeqImpl()
75 unsigned AddiOpc = (IsRV64 && Hi20) ? RISCV::ADDIW : RISCV::ADDI; in generateInstSeqImpl()
[all …]
H A DRISCVAsmBackend.cpp30 static cl::opt<bool> RelaxBranches("riscv-asm-relax-branches", cl::init(true),
36 "riscv-uleb128-reloc", cl::init(true), cl::Hidden,
44 #include "llvm/BinaryFormat/ELFRelocs/RISCV.def" in getFixupKind()
95 static_assert((std::size(Infos)) == RISCV::NumTargetFixupKinds, in getFixupKindInfo()
131 case RISCV::fixup_riscv_got_hi20: in shouldForceRelocation()
132 case RISCV::fixup_riscv_tls_got_hi20: in shouldForceRelocation()
133 case RISCV::fixup_riscv_tls_gd_hi20: in shouldForceRelocation()
134 case RISCV::fixup_riscv_tlsdesc_hi20: in shouldForceRelocation()
138 return STI->hasFeature(RISCV::FeatureRelax) || ForceRelocs; in shouldForceRelocation()
160 case RISCV::fixup_riscv_rvc_branch: in fixupNeedsRelaxationAdvanced()
[all …]
H A DRISCVMCTargetDesc.cpp48 using namespace RISCV;
65 InitRISCVMCRegisterInfo(X, RISCV::X1); in createRISCVMCRegisterInfo()
74 MCRegister SP = MRI.getDwarfRegNum(RISCV::X2, true); in createRISCVMCAsmInfo()
130 return Reg >= RISCV::X0 && Reg <= RISCV::X31; in isGPR()
134 assert(isGPR(Reg) && Reg != RISCV::X0 && "Invalid GPR reg"); in getRegIndex()
135 return Reg - RISCV::X1; in getRegIndex()
139 if (Reg == RISCV::X0) in setGPRState()
153 if (Reg == RISCV::X0) in getGPRState()
192 case RISCV::AUIPC: in updateState()
211 if (Inst.getOpcode() == RISCV::C_JAL || Inst.getOpcode() == RISCV::C_J) { in evaluateBranch()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/riscv/
H A Dextensions.yaml4 $id: http://devicetree.org/schemas/riscv/extensions.yaml#
31 const: riscv
34 riscv,isa:
39 https://riscv.org/specifications/
43 Notably, riscv,isa was defined prior to the creation of the
48 insensitive, letters in the riscv,isa string must be all
54 riscv,isa-base:
62 riscv,isa-extensions:
116 encoding") of the riscv-v-spec.
129 request #42 from riscv/jhauser-2023-RC4") of riscv-aia.
[all …]
H A Dcpus.yaml4 $id: http://devicetree.org/schemas/riscv/cpus.yaml#
67 - const: riscv
73 - const: riscv
74 - const: riscv # Simulator only
84 https://riscv.org/specifications/
87 - riscv,sv32
88 - riscv,sv39
89 - riscv,sv48
90 - riscv,sv57
91 - riscv,none
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/Disassembler/
H A DRISCVDisassembler.cpp28 #define DEBUG_TYPE "riscv-disassembler"
74 bool IsRVE = Decoder->getSubtargetInfo().hasFeature(RISCV::FeatureStdExtE); in DecodeGPRRegisterClass()
79 MCRegister Reg = RISCV::X0 + RegNo; in DecodeGPRRegisterClass()
87 MCRegister Reg = RISCV::X0 + RegNo; in DecodeGPRX1X5RegisterClass()
88 if (Reg != RISCV::X1 && Reg != RISCV::X5) in DecodeGPRX1X5RegisterClass()
101 MCRegister Reg = RISCV::F0_H + RegNo; in DecodeFPR16RegisterClass()
112 MCRegister Reg = RISCV::F0_F + RegNo; in DecodeFPR32RegisterClass()
123 MCRegister Reg = RISCV::F8_F + RegNo; in DecodeFPR32CRegisterClass()
134 MCRegister Reg = RISCV::F0_D + RegNo; in DecodeFPR64RegisterClass()
145 MCRegister Reg = RISCV::F8_D + RegNo; in DecodeFPR64CRegisterClass()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCA/
H A DRISCVCustomBehaviour.cpp16 #include "RISCV.h"
21 #define DEBUG_TYPE "llvm-mca-riscv-custombehaviour"
26 const llvm::StringRef RISCVLMULInstrument::DESC_NAME = "RISCV-LMUL";
51 const llvm::StringRef RISCVSEWInstrument::DESC_NAME = "RISCV-SEW";
105 if (Inst.getOpcode() == RISCV::VSETVLI || in createInstruments()
106 Inst.getOpcode() == RISCV::VSETIVLI) { in createInstruments()
172 case RISCV::VLM_V: in getEEWAndEMUL()
173 case RISCV::VSM_V: in getEEWAndEMUL()
174 case RISCV::VLE8_V: in getEEWAndEMUL()
175 case RISCV::VSE8_V: in getEEWAndEMUL()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/interrupt-controller/
H A Driscv,aplic.yaml4 $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml#
16 https://github.com/riscv/riscv-aia.
31 - const: riscv,aplic
46 RISC-V HARTS (or CPUs). Each node pointed to should be a riscv,cpu-intc
57 riscv,num-sources:
65 riscv,children:
78 riscv,delegation:
94 riscv,hart-indexes:
103 riscv,delegation: [ "riscv,children" ]
110 - riscv,num-sources
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVRegisterBankInfo.cpp26 namespace RISCV { namespace
107 } // namespace RISCV
121 case RISCV::GPRRegClassID: in getRegBankFromRegClass()
122 case RISCV::GPRF16RegClassID: in getRegBankFromRegClass()
123 case RISCV::GPRF32RegClassID: in getRegBankFromRegClass()
124 case RISCV::GPRNoX0RegClassID: in getRegBankFromRegClass()
125 case RISCV::GPRNoX0X2RegClassID: in getRegBankFromRegClass()
126 case RISCV::GPRJALRRegClassID: in getRegBankFromRegClass()
127 case RISCV::GPRJALRNonX7RegClassID: in getRegBankFromRegClass()
128 case RISCV::GPRTCRegClassID: in getRegBankFromRegClass()
[all …]
/freebsd/sys/contrib/device-tree/src/riscv/spacemit/
H A Dk1.dtsi53 compatible = "spacemit,x60", "riscv";
56riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_z…
57 riscv,isa-base = "rv64i";
58 riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom",
63 riscv,cbom-block-size = <64>;
64 riscv,cbop-block-size = <64>;
65 riscv,cboz-block-size = <64>;
73 mmu-type = "riscv,sv39";
76 compatible = "riscv,cpu-intc";
83 compatible = "spacemit,x60", "riscv";
[all …]

12345678910>>...16