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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 16:03:18 PDT 2022


MaskRay accepted this revision.
MaskRay added inline comments.
Herald added a subscriber: StephenFan.


================
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; }
----------------
The order "32-bit RISC-V" is more common.


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