Lines Matching refs:RISCV
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()
164 case RISCV::fixup_riscv_rvc_jump: in fixupNeedsRelaxationAdvanced()
168 case RISCV::fixup_riscv_branch: in fixupNeedsRelaxationAdvanced()
181 case RISCV::C_BEQZ: in relaxInstruction()
182 case RISCV::C_BNEZ: in relaxInstruction()
183 case RISCV::C_J: in relaxInstruction()
184 case RISCV::C_JAL: { in relaxInstruction()
189 case RISCV::BEQ: in relaxInstruction()
190 case RISCV::BNE: in relaxInstruction()
191 case RISCV::BLT: in relaxInstruction()
192 case RISCV::BGE: in relaxInstruction()
193 case RISCV::BLTU: in relaxInstruction()
194 case RISCV::BGEU: in relaxInstruction()
245 Fixup = RISCV::getRelocPairForSize(PtrSize); in relaxDwarfLineAddr()
250 Fixup = RISCV::getRelocPairForSize(2); in relaxDwarfLineAddr()
351 case RISCV::C_BEQZ: in getRelaxedOpcode()
352 return RISCV::BEQ; in getRelaxedOpcode()
353 case RISCV::C_BNEZ: in getRelaxedOpcode()
354 return RISCV::BNE; in getRelaxedOpcode()
355 case RISCV::C_J: in getRelaxedOpcode()
356 case RISCV::C_JAL: // fall through. in getRelaxedOpcode()
357 return RISCV::JAL; in getRelaxedOpcode()
358 case RISCV::BEQ: in getRelaxedOpcode()
359 return RISCV::PseudoLongBEQ; in getRelaxedOpcode()
360 case RISCV::BNE: in getRelaxedOpcode()
361 return RISCV::PseudoLongBNE; in getRelaxedOpcode()
362 case RISCV::BLT: in getRelaxedOpcode()
363 return RISCV::PseudoLongBLT; in getRelaxedOpcode()
364 case RISCV::BGE: in getRelaxedOpcode()
365 return RISCV::PseudoLongBGE; in getRelaxedOpcode()
366 case RISCV::BLTU: in getRelaxedOpcode()
367 return RISCV::PseudoLongBLTU; in getRelaxedOpcode()
368 case RISCV::BGEU: in getRelaxedOpcode()
369 return RISCV::PseudoLongBGEU; in getRelaxedOpcode()
391 bool UseCompressedNop = STI->hasFeature(RISCV::FeatureStdExtC) || in writeNopData()
392 STI->hasFeature(RISCV::FeatureStdExtZca); in writeNopData()
411 case RISCV::fixup_riscv_got_hi20: in adjustFixupValue()
412 case RISCV::fixup_riscv_tls_got_hi20: in adjustFixupValue()
413 case RISCV::fixup_riscv_tls_gd_hi20: in adjustFixupValue()
414 case RISCV::fixup_riscv_tlsdesc_hi20: in adjustFixupValue()
422 case RISCV::fixup_riscv_lo12_i: in adjustFixupValue()
423 case RISCV::fixup_riscv_pcrel_lo12_i: in adjustFixupValue()
424 case RISCV::fixup_riscv_tprel_lo12_i: in adjustFixupValue()
425 case RISCV::fixup_riscv_tlsdesc_load_lo12: in adjustFixupValue()
427 case RISCV::fixup_riscv_12_i: in adjustFixupValue()
433 case RISCV::fixup_riscv_lo12_s: in adjustFixupValue()
434 case RISCV::fixup_riscv_pcrel_lo12_s: in adjustFixupValue()
435 case RISCV::fixup_riscv_tprel_lo12_s: in adjustFixupValue()
437 case RISCV::fixup_riscv_hi20: in adjustFixupValue()
438 case RISCV::fixup_riscv_pcrel_hi20: in adjustFixupValue()
439 case RISCV::fixup_riscv_tprel_hi20: in adjustFixupValue()
442 case RISCV::fixup_riscv_jal: { in adjustFixupValue()
459 case RISCV::fixup_riscv_branch: { in adjustFixupValue()
477 case RISCV::fixup_riscv_call: in adjustFixupValue()
478 case RISCV::fixup_riscv_call_plt: { in adjustFixupValue()
486 case RISCV::fixup_riscv_rvc_jump: { in adjustFixupValue()
502 case RISCV::fixup_riscv_rvc_branch: { in adjustFixupValue()
531 case RISCV::fixup_riscv_tlsdesc_hi20: in evaluateTargetFixup()
532 case RISCV::fixup_riscv_pcrel_hi20: in evaluateTargetFixup()
537 case RISCV::fixup_riscv_pcrel_lo12_i: in evaluateTargetFixup()
538 case RISCV::fixup_riscv_pcrel_lo12_s: { in evaluateTargetFixup()
663 if (!STI->hasFeature(RISCV::FeatureRelax)) in shouldInsertExtraNopBytesForCodeAlign()
666 bool UseCompressedNop = STI->hasFeature(RISCV::FeatureStdExtC) || in shouldInsertExtraNopBytesForCodeAlign()
667 STI->hasFeature(RISCV::FeatureStdExtZca); in shouldInsertExtraNopBytesForCodeAlign()
687 if (!STI->hasFeature(RISCV::FeatureRelax)) in shouldInsertFixupForCodeAlign()
700 MCFixup::create(0, Dummy, MCFixupKind(RISCV::fixup_riscv_align), SMLoc()); in shouldInsertFixupForCodeAlign()