[llvm] [RISCV][MC] Pass MCSubtargetInfo down to shouldForceRelocation and evaluateTargetFixup. (PR #73721)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 20:29:28 PST 2023
topperc wrote:
> > How can we tell if -mrelax is set other than this patch? Isn't it only stored in function attributes?
>
> Do we have that? I thought that we tracked it only at the module level, not the function level. That was something that technically is supported by gcc, but not something that we could do with clang. It would also allow us to fix some of the limitations in the assembler IIRC.
It is stored in the mattr string in target machine when clang is used for compiling. And its in the target-features function attribute. With LTO we only have the function attribute.
https://github.com/llvm/llvm-project/pull/73721
More information about the llvm-commits
mailing list