llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-backend-risc-v Author: Craig Topper (topperc) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/239001.diff 1 Files Affected: - (modified) llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h (+9-2) ``````````diff diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h index f35856d778a95..3347cb3fd2414 100644 --- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h +++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h @@ -784,8 +784,15 @@ inline bool isDoubleFP(ABI TargetABI) { // Returns true for the ABIs that only use the reduced 16 register integer file. inline bool isRVE(ABI TargetABI) { - return TargetABI == ABI_ILP32E || TargetABI == ABI_IL32PC64E || - TargetABI == ABI_LP64E || TargetABI == ABI_CHERIOT; + switch (TargetABI) { + case ABI_ILP32E: + case ABI_IL32PC64E: + case ABI_LP64E: + case ABI_CHERIOT: + return true; + default: + return false; + } } // Returns true for the ABIs in which pointers are capabilities. `````````` </details> https://github.com/llvm/llvm-project/pull/239001 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
