Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Target/RISCV/RISCVISelLowering.h | ||
|---|---|---|
| 267–271 | ||
Fixed comments
- IEEE-754 rounding direction names are replaced by llvm::RoundingMode enumerators,
- Fixed comment for RDN.
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 377 | You can use XLenVT instead of picking i64/i32. | |
| 4118 | Rename IntTy to XLenVT to match what most of the RISCV back does. | |
| 4122 | Use RISCVSysReg::lookupSysRegByName("FRM")->Encoding it's not common enough to justify having the encoding in 2 places. | |
| 4625 | Is this code reachable? This would require setOperaction(ISD::FLT_ROUNDS_, MVT::i32, Custom) when Subtarget.is64Bit() is false. It's also the default behavior for the target independent type legalizer. | |
| llvm/lib/Target/RISCV/RISCVISelLowering.h | ||
| 266 | Can you use RISCVFPRndMode from lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h | |
| llvm/test/CodeGen/RISCV/fpenv.ll | ||
|---|---|---|
| 2 | Use update_llc_test_checks.py | |
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 4625 | Removed this check. | |
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 15 | This is already included in RISCV.h because it's very common file to need. | |
LGTM.
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 4627 | I missed it before, but you can use Res.getValue(0) and Res.getValue(1) to shorten these lines if you want. | |
| llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
|---|---|---|
| 4627 | Thank you for advice! I will incorporate these changes too. | |
Can you use RISCVFPRndMode from lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h