[llvm-dev] [proposal] change default ABI for special riscv arch
Craig Topper via llvm-dev
llvm-dev at lists.llvm.org
Mon Jun 7 21:06:15 PDT 2021
That one line change doesn't look like it handles multiletter extension
names correctly. For example, Zbf contains "f".
On Mon, Jun 7, 2021 at 8:13 PM Ben Shi via llvm-dev <llvm-dev at lists.llvm.org>
> In the clang's riscv driver,
> the default abi is fomulated according to arch if no explicit -mabi is
> 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
> return "ilp32f";
> Can I submit a patch to fix it?
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev