[llvm-dev] [proposal] change default ABI for special riscv arch
Ben Shi via llvm-dev
llvm-dev at lists.llvm.org
Mon Jun 7 20:12:30 PDT 2021
Hello,
In the clang's riscv driver,
https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
the default abi is fomulated according to arch if no explicit -mabi is specified.
Is it possible to set the default abi to ilp32f for -march=rv32imacf. For my exployer's chip, HW F is used while SW D is used. Each time I have to write "-march=rv32imacf -mabi=ilp32f“, can it be simplified to only "-march=imacf" ? Just adding a line is enough.
if (MArch.substr(4).contains_lower("f") && !MArch.substr(4).contains_lower("d"))
return "ilp32f";
Can I submit a patch to fix it?
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210608/bcae44e7/attachment.html>
More information about the llvm-dev
mailing list