[compiler-rt] [RISCV][compiler-rt] create __riscv__cpu_model for vendorID, ArchID, … (PR #101449)
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 01:40:42 PDT 2024
================
@@ -16,11 +16,16 @@ struct {
#define RISCV_VENDOR_FEATURE_BITS_LENGTH 1
struct {
- unsigned vendorID;
unsigned length;
unsigned long long features[RISCV_VENDOR_FEATURE_BITS_LENGTH];
} __riscv_vendor_feature_bits __attribute__((visibility("hidden"), nocommon));
+struct {
+ unsigned mVendorID;
+ unsigned mArchID;
+ unsigned mImplID;
+} __riscv__cpu_model __attribute__((visibility("hidden"), nocommon));
----------------
kito-cheng wrote:
__riscv__cpu_model -> __riscv_cpu_model for naming consistency
https://github.com/llvm/llvm-project/pull/101449
More information about the llvm-commits
mailing list