Skip to content

Commit

Permalink
add more vector reg classes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmaitland committed Nov 14, 2023
1 parent f7a4d6f commit bafe162
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,19 @@ RISCVRegisterBankInfo::getRegBankFromRegClass(const TargetRegisterClass &RC,
case RISCV::FPR64CRegClassID:
case RISCV::FPR32CRegClassID:
return getRegBank(RISCV::FPRBRegBankID);
case RISCV::VMRegClassID:
case RISCV::VRRegClassID:
case RISCV::VRNoV0RegClassID:
case RISCV::VRM2RegClassID:
case RISCV::VRM2NoV0RegClassID:
case RISCV::VRM4RegClassID:
case RISCV::VRM4NoV0RegClassID:
case RISCV::VMV0RegClassID:
case RISCV::VRM2_with_sub_vrm1_0_in_VMV0RegClassID:
case RISCV::VRM4_with_sub_vrm1_0_in_VMV0RegClassID:
case RISCV::VRM8RegClassID:
case RISCV::VRM8NoV0RegClassID:
case RISCV::VMRegClassID:
case RISCV::VMV0RegClassID:
case RISCV::VRM8_with_sub_vrm1_0_in_VMV0RegClassID:
return getRegBank(RISCV::VRBRegBankID);
}
}
Expand Down

0 comments on commit bafe162

Please sign in to comment.