[libc-commits] [PATCH] D148797: [libc] Start to refactor riscv platform abstraction to support both 32 and 64 bits versions

Mikhail Ramalho via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 20 05:43:13 PDT 2023


mikhail.ramalho created this revision.
mikhail.ramalho added reviewers: michaelrj, sivachandra.
Herald added subscribers: libc-commits, asb, luke, VincentWu, vkmr, frasercrmck, ecnelises, evandro, luismarques, apazos, sameer.abuasal, tschuett, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, arichardson.
Herald added projects: libc-project, All.
mikhail.ramalho requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD.

This patch is the first in a series of patches to refactor the riscv
abstraction in libc to support both riscv32 and riscv64.

We updated the cmake file to match the new riscv32 arch and force
LIBC_TARGET_ARCHITECTURE to be "riscv" whenever we find "riscv32" or
"riscv64". This is required as LIBC_TARGET_ARCHITECTURE is used in the
path for several platform specific implementations.

A `int get_except()` is also added until to allow the compilation in
riscv32, until we implement the platform specific implementation for
this arch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148797

Files:
  libc/cmake/modules/LLVMLibCArchitectures.cmake
  libc/config/linux/riscv/entrypoints.txt
  libc/config/linux/riscv/headers.txt
  libc/config/linux/riscv64/entrypoints.txt
  libc/config/linux/riscv64/headers.txt
  libc/src/__support/FPUtil/FEnvImpl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148797.515294.patch
Type: text/x-patch
Size: 16979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230420/cc9509ae/attachment-0001.bin>


More information about the libc-commits mailing list