Page MenuHomePhabricator

[MC][LoongArch] Make .reloc support arbitrary relocation types
ClosedPublic

Authored by wangleiat on Aug 18 2022, 2:39 AM.

Details

Summary

Similar to D76746 (ARM), D76754 (AArch64), D77018 (RISCV) and
llvmorg-11-init-6967-g152d14da64c (x86)

Depends on D132108

Diff Detail

Unit TestsFailed

TimeTest
60,040 msx64 debian > libFuzzer.libFuzzer::fuzzer-leak.test
Script: -- : 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/./bin/clang --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/var/lib/buildkite-agent/builds/llvm-project/compiler-rt/lib/fuzzer -m64 /var/lib/buildkite-agent/builds/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp -o /var/lib/buildkite-agent/builds/llvm-project/build/projects/compiler-rt/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest
60,030 msx64 debian > libFuzzer.libFuzzer::value-profile-load.test
Script: -- : 'RUN: at line 2'; /var/lib/buildkite-agent/builds/llvm-project/build/./bin/clang --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/var/lib/buildkite-agent/builds/llvm-project/compiler-rt/lib/fuzzer -m64 /var/lib/buildkite-agent/builds/llvm-project/compiler-rt/test/fuzzer/LoadTest.cpp -fsanitize-coverage=trace-gep -o /var/lib/buildkite-agent/builds/llvm-project/build/projects/compiler-rt/test/fuzzer/X86_64DefaultLinuxConfig/Output/value-profile-load.test.tmp-LoadTest

Event Timeline

wangleiat created this revision.Aug 18 2022, 2:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 2:39 AM
wangleiat requested review of this revision.Aug 18 2022, 2:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 2:39 AM
xen0n added a comment.Aug 18 2022, 3:16 AM

Only one minor nit. Thanks.

llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
27–28

could simplify a bit, to auto Type = ...

MaskRay accepted this revision.Aug 18 2022, 8:50 AM
This revision is now accepted and ready to land.Aug 18 2022, 8:50 AM
wangleiat updated this revision to Diff 453853.Aug 18 2022, 6:23 PM

Address @xen0n's comment.