@@ -437,7 +437,7 @@ class CodeGen final : public CodeGenInterface
437
437
438
438
FuncletFrameInfoDsc genFuncletInfo;
439
439
440
- #elif defined(TARGET_LOONGARCH64)
440
+ #elif defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
441
441
442
442
// A set of information that is used by funclet prolog and epilog generation.
443
443
// It is collected once, before funclet prologs and epilogs are generated,
@@ -448,26 +448,6 @@ class CodeGen final : public CodeGenInterface
448
448
int fiFunction_CallerSP_to_FP_delta; // Delta between caller SP and the frame pointer in the parent function
449
449
// (negative)
450
450
int fiSP_to_CalleeSaved_delta; // CalleeSaved register save offset from SP (positive)
451
- int fiCalleeSavedPadding; // CalleeSaved offset padding (positive)
452
- int fiSP_to_PSP_slot_delta; // PSP slot offset from SP (positive)
453
- int fiCallerSP_to_PSP_slot_delta; // PSP slot offset from Caller SP (negative)
454
- int fiSpDelta; // Stack pointer delta (negative)
455
- };
456
-
457
- FuncletFrameInfoDsc genFuncletInfo;
458
-
459
- #elif defined(TARGET_RISCV64)
460
-
461
- // A set of information that is used by funclet prolog and epilog generation.
462
- // It is collected once, before funclet prologs and epilogs are generated,
463
- // and used by all funclet prologs and epilogs, which must all be the same.
464
- struct FuncletFrameInfoDsc
465
- {
466
- regMaskTP fiSaveRegs; // Set of callee-saved registers saved in the funclet prolog (includes RA)
467
- int fiFunction_CallerSP_to_FP_delta; // Delta between caller SP and the frame pointer in the parent function
468
- // (negative)
469
- int fiSP_to_CalleeSaved_delta; // CalleeSaved register save offset from SP (positive)
470
- int fiCalleeSavedPadding; // CalleeSaved offset padding (positive)
471
451
int fiSP_to_PSP_slot_delta; // PSP slot offset from SP (positive)
472
452
int fiCallerSP_to_PSP_slot_delta; // PSP slot offset from Caller SP (negative)
473
453
int fiSpDelta; // Stack pointer delta (negative)
@@ -1272,7 +1252,6 @@ class CodeGen final : public CodeGenInterface
1272
1252
void genJmpMethod (GenTree* jmp);
1273
1253
BasicBlock* genCallFinally (BasicBlock* block);
1274
1254
#if defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
1275
- // TODO: refactor for LA.
1276
1255
void genCodeForJumpCompare (GenTreeOpCC* tree);
1277
1256
#endif
1278
1257
#if defined(TARGET_ARM64)
0 commit comments