Split from D139873.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Target/RISCV/RISCVSubtarget.cpp | ||
|---|---|---|
| 132 | Maybe add comment that 0 is default value when -riscv-v-vector-bits-max is not set. To be very paranoid, do we need check if user is specifying max to -2, which the option's datatype does allow? | |
| llvm/lib/Target/RISCV/RISCVTargetMachine.cpp | ||
| 159 | Maybe leverage Twine here? | |
| llvm/lib/Target/RISCV/RISCVSubtarget.cpp | ||
|---|---|---|
| 132 | We should detect -2 as being out of bounds in RISCVTargetMachine.cpp | |
| llvm/lib/Target/RISCV/RISCVTargetMachine.cpp | ||
| 159 | I don't think Twine is useful here. SmallString doesn't have any methods that take a Twine. So we'd have to convert the Twine to a std::string. | |
Maybe add comment that 0 is default value when -riscv-v-vector-bits-max is not set.
To be very paranoid, do we need check if user is specifying max to -2, which the option's datatype does allow?