[PATCH] D94931: [RISCV] Add attribute support for all supported extensions

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 19 01:24:02 PST 2021


kito-cheng added a comment.

I think maybe we could extract the arch parser from driver[1] to `llvm/lib/Support`, so that we could just maintain one parser for driver and assembler, and there is also other potential user for that, like the C front-end for the target attribute, e.g. `__attribute__ ((target ("arch=rv64gcv")))`, and the linker can re-use that to read/merge/write the attribute too.

[1] https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Arch/RISCV.cpp#L171


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94931



More information about the llvm-commits mailing list