Lines Matching refs:RISCV

96   static_assert((std::size(Infos)) == RISCV::NumTargetFixupKinds,  in getFixupKindInfo()
132 case RISCV::fixup_riscv_got_hi20: in shouldForceRelocation()
133 case RISCV::fixup_riscv_tls_got_hi20: in shouldForceRelocation()
134 case RISCV::fixup_riscv_tls_gd_hi20: in shouldForceRelocation()
135 case RISCV::fixup_riscv_tlsdesc_hi20: in shouldForceRelocation()
139 return STI->hasFeature(RISCV::FeatureRelax) || ForceRelocs; in shouldForceRelocation()
164 case RISCV::fixup_riscv_rvc_branch: in fixupNeedsRelaxationAdvanced()
168 case RISCV::fixup_riscv_rvc_jump: in fixupNeedsRelaxationAdvanced()
172 case RISCV::fixup_riscv_branch: in fixupNeedsRelaxationAdvanced()
185 case RISCV::C_BEQZ: in relaxInstruction()
186 case RISCV::C_BNEZ: in relaxInstruction()
187 case RISCV::C_J: in relaxInstruction()
188 case RISCV::C_JAL: { in relaxInstruction()
194 case RISCV::BEQ: in relaxInstruction()
195 case RISCV::BNE: in relaxInstruction()
196 case RISCV::BLT: in relaxInstruction()
197 case RISCV::BGE: in relaxInstruction()
198 case RISCV::BLTU: in relaxInstruction()
199 case RISCV::BGEU: in relaxInstruction()
250 Fixup = RISCV::getRelocPairForSize(PtrSize); in relaxDwarfLineAddr()
255 Fixup = RISCV::getRelocPairForSize(2); in relaxDwarfLineAddr()
358 case RISCV::C_BEQZ: in getRelaxedOpcode()
359 return RISCV::BEQ; in getRelaxedOpcode()
360 case RISCV::C_BNEZ: in getRelaxedOpcode()
361 return RISCV::BNE; in getRelaxedOpcode()
362 case RISCV::C_J: in getRelaxedOpcode()
363 case RISCV::C_JAL: // fall through. in getRelaxedOpcode()
364 return RISCV::JAL; in getRelaxedOpcode()
365 case RISCV::BEQ: in getRelaxedOpcode()
366 return RISCV::PseudoLongBEQ; in getRelaxedOpcode()
367 case RISCV::BNE: in getRelaxedOpcode()
368 return RISCV::PseudoLongBNE; in getRelaxedOpcode()
369 case RISCV::BLT: in getRelaxedOpcode()
370 return RISCV::PseudoLongBLT; in getRelaxedOpcode()
371 case RISCV::BGE: in getRelaxedOpcode()
372 return RISCV::PseudoLongBGE; in getRelaxedOpcode()
373 case RISCV::BLTU: in getRelaxedOpcode()
374 return RISCV::PseudoLongBLTU; in getRelaxedOpcode()
375 case RISCV::BGEU: in getRelaxedOpcode()
376 return RISCV::PseudoLongBGEU; in getRelaxedOpcode()
398 bool UseCompressedNop = STI->hasFeature(RISCV::FeatureStdExtC) || in writeNopData()
399 STI->hasFeature(RISCV::FeatureStdExtZca); in writeNopData()
418 case RISCV::fixup_riscv_got_hi20: in adjustFixupValue()
419 case RISCV::fixup_riscv_tls_got_hi20: in adjustFixupValue()
420 case RISCV::fixup_riscv_tls_gd_hi20: in adjustFixupValue()
421 case RISCV::fixup_riscv_tlsdesc_hi20: in adjustFixupValue()
429 case RISCV::fixup_riscv_lo12_i: in adjustFixupValue()
430 case RISCV::fixup_riscv_pcrel_lo12_i: in adjustFixupValue()
431 case RISCV::fixup_riscv_tprel_lo12_i: in adjustFixupValue()
432 case RISCV::fixup_riscv_tlsdesc_load_lo12: in adjustFixupValue()
434 case RISCV::fixup_riscv_12_i: in adjustFixupValue()
440 case RISCV::fixup_riscv_lo12_s: in adjustFixupValue()
441 case RISCV::fixup_riscv_pcrel_lo12_s: in adjustFixupValue()
442 case RISCV::fixup_riscv_tprel_lo12_s: in adjustFixupValue()
444 case RISCV::fixup_riscv_hi20: in adjustFixupValue()
445 case RISCV::fixup_riscv_pcrel_hi20: in adjustFixupValue()
446 case RISCV::fixup_riscv_tprel_hi20: in adjustFixupValue()
449 case RISCV::fixup_riscv_jal: { in adjustFixupValue()
466 case RISCV::fixup_riscv_branch: { in adjustFixupValue()
484 case RISCV::fixup_riscv_call: in adjustFixupValue()
485 case RISCV::fixup_riscv_call_plt: { in adjustFixupValue()
493 case RISCV::fixup_riscv_rvc_jump: { in adjustFixupValue()
509 case RISCV::fixup_riscv_rvc_branch: { in adjustFixupValue()
536 case RISCV::fixup_riscv_tlsdesc_hi20: in evaluateTargetFixup()
537 case RISCV::fixup_riscv_pcrel_hi20: in evaluateTargetFixup()
542 case RISCV::fixup_riscv_pcrel_lo12_i: in evaluateTargetFixup()
543 case RISCV::fixup_riscv_pcrel_lo12_s: { in evaluateTargetFixup()
672 if (!STI->hasFeature(RISCV::FeatureRelax)) in shouldInsertExtraNopBytesForCodeAlign()
675 bool UseCompressedNop = STI->hasFeature(RISCV::FeatureStdExtC) || in shouldInsertExtraNopBytesForCodeAlign()
676 STI->hasFeature(RISCV::FeatureStdExtZca); in shouldInsertExtraNopBytesForCodeAlign()
697 if (!STI->hasFeature(RISCV::FeatureRelax)) in shouldInsertFixupForCodeAlign()
710 MCFixup::create(0, Dummy, MCFixupKind(RISCV::fixup_riscv_align), SMLoc()); in shouldInsertFixupForCodeAlign()