Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I don't have preference to this, just doing this out of Jessica's comment in D138930.
llvm/include/llvm/Support/RISCVISAInfo.h | ||
---|---|---|
25 ↗ | (On Diff #478982) | Would this be better as return getVersionValue(MajorVersion, MinorVersion); in order to maximise logic reuse? |
Should this live in RISCVISAInfo.h rather than be a Clang-specific thing given it's just for squeezing version info into the preprocessor? I can't think of a use for it outside that at the moment.
This patch has the version value calculation in RISCVISAInfo.h, so sorry I don't quite get what you mean. Do you mean specifically __riscv_v_intrinsic macro?
If you mean to have macro information under the RISCVExtensionInfo, I don't see the need here as there are macro like __riscv_v_min_vlen that can be implied by multiple macro-s.
I think the suggestion was that it didn’t need to be in RISCVISAInfo.h because it is a never used outside of RISCV.cpp. So it could just be a static function in the cpp file.
llvm/include/llvm/Support/RISCVISAInfo.h | ||
---|---|---|
25 ↗ | (On Diff #478982) | Reuse no longer needed here. |