[PATCH] D131339: [RISC-V] Add explicit check for risc-v 32/64 bit triples

Alexey Baturo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 22:12:11 PDT 2022


smd added inline comments.


================
Comment at: llvm/include/llvm/ADT/Triple.h:862
 
+  /// Tests whether the target is RISC-V 32-bit.
+  bool isRISCV32() const { return getArch() == Triple::riscv32; }
----------------
MaskRay wrote:
> The order "32-bit RISC-V" is more common.
Fixed, thanks


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131339/new/

https://reviews.llvm.org/D131339



More information about the llvm-commits mailing list