This is an archive of the discontinued LLVM Phabricator instance.

[Interpreter] Filter out RISC-V +relax feature
AbandonedPublic

Authored by Hahnfeld on Apr 30 2023, 7:54 AM.

Details

Summary

JITLink for RISC-V does not implement linker relaxation and until now
only ignored the related alignment relocations. However, the logic has
a flaw and it is actually not valid to ignore them. Just disable the
feature to have less problems.

Diff Detail

Event Timeline

Hahnfeld created this revision.Apr 30 2023, 7:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2023, 7:54 AM
Hahnfeld requested review of this revision.Apr 30 2023, 7:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2023, 7:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This looks reasonable to me. Is there a way we could check when +relax start working to remember to re-add this feature?

clang/lib/Interpreter/IncrementalExecutor.cpp
46

Can you add a comment here why we skip this feature?

This change does not seem riscv-specific. Is that intentional?

Hahnfeld abandoned this revision.May 16 2023, 1:19 AM

Linker relaxation and proper alignment handling for RISC-V is implemented in https://reviews.llvm.org/D149526, so this isn't needed anymore.