[all-commits] [llvm/llvm-project] a41a4a: [compiler-rt][RISCV] Implement __init_riscv_featur...

Piyou Chen via All-commits all-commits at lists.llvm.org
Sun Jul 21 04:05:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a41a4ac78294c728fb70a51623c602ea7f3e308a
      https://github.com/llvm/llvm-project/commit/a41a4ac78294c728fb70a51623c602ea7f3e308a
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2024-07-21 (Sun, 21 Jul 2024)

  Changed paths:
    M compiler-rt/lib/builtins/CMakeLists.txt
    A compiler-rt/lib/builtins/riscv/feature_bits.c

  Log Message:
  -----------
  [compiler-rt][RISCV] Implement __init_riscv_feature_bits (#85790)

Base on https://github.com/riscv-non-isa/riscv-c-api-doc/pull/74, this
patch defines the `__riscv_feature_bits` and
`__riscv_vendor_feature_bits` structures to store the enabled feature
bits at runtime.

It also introduces the `__init_riscv_feature_bits` function to update
these structures based on the platform query mechanism.

Additionally, the groupid/bitmask definitions from
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/74 are declared
and used to update the `__riscv_feature_bits` and
`__riscv_vendor_feature_bits` structures.

---------

Co-authored-by: Kito Cheng <kito.cheng at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list