Skip to content

Commit 95a2ef3

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:f22b1da8791edd557ce34c87190e329df2e1c892 into amd-gfx:8ffbe2f0eec3
Local branch amd-gfx 8ffbe2f Merged main:5c94dd73b2df1f6b469e858ff29055ac117e8494 into amd-gfx:ae15f5c22c46 Remote branch main f22b1da [CodeGen] Replace MCPhysReg with MCRegister in MachineBasicBlock::isLiveIn/removeLiveIn. NFC
2 parents 8ffbe2f + f22b1da commit 95a2ef3

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

llvm/include/llvm/CodeGen/MachineBasicBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,11 @@ class MachineBasicBlock
478478
Register addLiveIn(MCRegister PhysReg, const TargetRegisterClass *RC);
479479

480480
/// Remove the specified register from the live in set.
481-
void removeLiveIn(MCPhysReg Reg,
481+
void removeLiveIn(MCRegister Reg,
482482
LaneBitmask LaneMask = LaneBitmask::getAll());
483483

484484
/// Return true if the specified register is in the live in set.
485-
bool isLiveIn(MCPhysReg Reg,
485+
bool isLiveIn(MCRegister Reg,
486486
LaneBitmask LaneMask = LaneBitmask::getAll()) const;
487487

488488
// Iteration support for live in sets. These sets are kept in sorted

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 509552
19+
#define LLVM_MAIN_REVISION 509554
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/lib/CodeGen/MachineBasicBlock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ void MachineBasicBlock::printAsOperand(raw_ostream &OS,
595595
printName(OS, 0);
596596
}
597597

598-
void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) {
598+
void MachineBasicBlock::removeLiveIn(MCRegister Reg, LaneBitmask LaneMask) {
599599
LiveInVector::iterator I = find_if(
600600
LiveIns, [Reg](const RegisterMaskPair &LI) { return LI.PhysReg == Reg; });
601601
if (I == LiveIns.end())
@@ -613,7 +613,7 @@ MachineBasicBlock::removeLiveIn(MachineBasicBlock::livein_iterator I) {
613613
return LiveIns.erase(LI);
614614
}
615615

616-
bool MachineBasicBlock::isLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) const {
616+
bool MachineBasicBlock::isLiveIn(MCRegister Reg, LaneBitmask LaneMask) const {
617617
livein_iterator I = find_if(
618618
LiveIns, [Reg](const RegisterMaskPair &LI) { return LI.PhysReg == Reg; });
619619
return I != livein_end() && (I->LaneMask & LaneMask).any();

llvm/lib/Target/RISCV/RISCVISelLowering.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -415,32 +415,6 @@ enum NodeType : unsigned {
415415
/// operand 1 is the target address.
416416
SW_GUARDED_BRIND,
417417

418-
// FP to 32 bit int conversions for RV64. These are used to keep track of the
419-
// result being sign extended to 64 bit. These saturate out of range inputs.
420-
STRICT_FCVT_W_RV64 = ISD::FIRST_TARGET_STRICTFP_OPCODE,
421-
STRICT_FCVT_WU_RV64,
422-
STRICT_FADD_VL,
423-
STRICT_FSUB_VL,
424-
STRICT_FMUL_VL,
425-
STRICT_FDIV_VL,
426-
STRICT_FSQRT_VL,
427-
STRICT_VFMADD_VL,
428-
STRICT_VFNMADD_VL,
429-
STRICT_VFMSUB_VL,
430-
STRICT_VFNMSUB_VL,
431-
STRICT_FP_ROUND_VL,
432-
STRICT_FP_EXTEND_VL,
433-
STRICT_VFNCVT_ROD_VL,
434-
STRICT_SINT_TO_FP_VL,
435-
STRICT_UINT_TO_FP_VL,
436-
STRICT_VFCVT_RM_X_F_VL,
437-
STRICT_VFCVT_RTZ_X_F_VL,
438-
STRICT_VFCVT_RTZ_XU_F_VL,
439-
STRICT_FSETCC_VL,
440-
STRICT_FSETCCS_VL,
441-
STRICT_VFROUND_NOEXCEPT_VL,
442-
LAST_RISCV_STRICTFP_OPCODE = STRICT_VFROUND_NOEXCEPT_VL,
443-
444418
SF_VC_XV_SE,
445419
SF_VC_IV_SE,
446420
SF_VC_VV_SE,
@@ -468,6 +442,32 @@ enum NodeType : unsigned {
468442
SF_VC_V_VVW_SE,
469443
SF_VC_V_FVW_SE,
470444

445+
// FP to 32 bit int conversions for RV64. These are used to keep track of the
446+
// result being sign extended to 64 bit. These saturate out of range inputs.
447+
STRICT_FCVT_W_RV64 = ISD::FIRST_TARGET_STRICTFP_OPCODE,
448+
STRICT_FCVT_WU_RV64,
449+
STRICT_FADD_VL,
450+
STRICT_FSUB_VL,
451+
STRICT_FMUL_VL,
452+
STRICT_FDIV_VL,
453+
STRICT_FSQRT_VL,
454+
STRICT_VFMADD_VL,
455+
STRICT_VFNMADD_VL,
456+
STRICT_VFMSUB_VL,
457+
STRICT_VFNMSUB_VL,
458+
STRICT_FP_ROUND_VL,
459+
STRICT_FP_EXTEND_VL,
460+
STRICT_VFNCVT_ROD_VL,
461+
STRICT_SINT_TO_FP_VL,
462+
STRICT_UINT_TO_FP_VL,
463+
STRICT_VFCVT_RM_X_F_VL,
464+
STRICT_VFCVT_RTZ_X_F_VL,
465+
STRICT_VFCVT_RTZ_XU_F_VL,
466+
STRICT_FSETCC_VL,
467+
STRICT_FSETCCS_VL,
468+
STRICT_VFROUND_NOEXCEPT_VL,
469+
LAST_RISCV_STRICTFP_OPCODE = STRICT_VFROUND_NOEXCEPT_VL,
470+
471471
// WARNING: Do not add anything in the end unless you want the node to
472472
// have memop! In fact, starting from FIRST_TARGET_MEMORY_OPCODE all
473473
// opcodes will be thought as target memory ops!

0 commit comments

Comments
 (0)