This is an archive of the discontinued LLVM Phabricator instance.

[ubsan] Enable loongarch64
ClosedPublic

Authored by tangyouling on Dec 4 2022, 10:16 PM.

Details

Summary

Enable ubsan on LoongArch64.

Diff Detail

Event Timeline

tangyouling created this revision.Dec 4 2022, 10:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2022, 10:16 PM
tangyouling requested review of this revision.Dec 4 2022, 10:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2022, 10:16 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
tangyouling added a reviewer: Restricted Project.Dec 4 2022, 10:17 PM
xen0n retitled this revision from [ubsan] Add loongarch64 support for ubsan to [ubsan] Enable for loongarch64.Dec 4 2022, 10:18 PM

This really doesn't need porting? Am I overlooking something?

This really doesn't need porting? Am I overlooking something?

The test results after enabling ubsan and applying the tsan support patch are as follows,

$ make check-ubsan -j4
Testing Time: 146.26s
  Unsupported      :  23
  Passed           : 228
  Expectedly Failed:   1

6 warning(s) in tests
Built target check-ubsan
MaskRay accepted this revision.Dec 4 2022, 10:36 PM

ubsan runtime almost has no arch-specific customization, so enabling it for build suffices. I don't have an environment to test it myself, though...

This revision is now accepted and ready to land.Dec 4 2022, 10:36 PM

[ubsan] Enable for loongarch64

Enable loongarch64

xen0n retitled this revision from [ubsan] Enable for loongarch64 to [ubsan] Enable loongarch64.Dec 4 2022, 10:47 PM

[ubsan] Enable for loongarch64

Enable loongarch64

Fair enough.

xen0n accepted this revision.Dec 4 2022, 10:48 PM

ubsan runtime almost has no arch-specific customization, so enabling it for build suffices. I don't have an environment to test it myself, though...

Oh that's good to know... fine by me then.

SixWeining accepted this revision.Dec 4 2022, 11:32 PM
This revision was automatically updated to reflect the committed changes.