This is an archive of the discontinued LLVM Phabricator instance.

[update_llc_test_checks.py] Fix MIPS ASM regex for functions with EH
ClosedPublic

Authored by arichardson on Apr 7 2021, 2:30 AM.

Details

Summary

On MIPS, functions with exception handling code emits an additional
temporary label at the start of the function (due to UseAssignmentForEHBegin):

_Z8do_catchv:                           # @_Z8do_catchv
.Ltmp3:
.set .Lfunc_begin0, .Ltmp3
.cfi_startproc
.cfi_personality 128, DW.ref.__gxx_personality_v0
.cfi_lsda 0, .Lexception0
.frame	$c11,48,$c17
.mask 	0x00000000,0
.fmask	0x00000000,0
.set	noreorder
.set	nomacro
.set	noat
# %bb.0:                                # %entry

The [^:]* regex was terminating the search after .Ltmp<N>: and therefore
not detecting functions with exception handling.

Diff Detail

Event Timeline

arichardson created this revision.Apr 7 2021, 2:30 AM
arichardson requested review of this revision.Apr 7 2021, 2:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2021, 2:30 AM

This needs a test under test/tools/UpdateTestChecks/update_llc_test_checks/

MaskRay requested changes to this revision.May 7 2021, 10:15 AM
This revision now requires changes to proceed.May 7 2021, 10:15 AM
MaskRay accepted this revision.Sep 24 2021, 11:19 AM

Looks great!

This revision is now accepted and ready to land.Sep 24 2021, 11:19 AM
This revision was landed with ongoing or failed builds.Sep 28 2021, 9:57 AM
This revision was automatically updated to reflect the committed changes.