This is an archive of the discontinued LLVM Phabricator instance.

[M68k][GloballSel] LegalizerInfo implementation
ClosedPublic

Authored by sushmaunnibhavi on Jul 7 2021, 1:18 AM.

Details

Summary

Added rules for G_ADD, G_SUB, G_MUL, G_UDIV to be legal.

Diff Detail

Event Timeline

sushmaunnibhavi created this revision.Jul 7 2021, 1:18 AM
sushmaunnibhavi requested review of this revision.Jul 7 2021, 1:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2021, 1:18 AM

More descriptive filename and please address the lint comments. Other than that, I will count on @myhsu regarding correctness of gMIR.

More descriptive filename and please address the lint comments. Other than that, I will count on @myhsu regarding correctness of gMIR.

Ok I will do it.
@myhsu can you please review the patch?

LGTM on the technical side, please address @gandhi21299 's comments.
Though this patch is definitely not production ready, it can be a good reference for future implementation on GlobalISel in M68k :-)

Updated patch according to @gandhi21299, @myhsu comments.

xgupta added a subscriber: xgupta.Jul 12 2021, 2:03 AM

(you have permission to disagree with clang-tidy, it lacks A.I.)

(you have permission to disagree with clang-tidy, it lacks A.I.)

Okay!

Fix clang-tidy warnings.

xgupta removed a subscriber: xgupta.Jul 12 2021, 9:45 PM
myhsu accepted this revision.Jul 14 2021, 2:54 PM

LGTM

This revision is now accepted and ready to land.Jul 14 2021, 2:54 PM

LGTM

Thanks for reviewing the patch @myhsu.
Can you please commit the patch?

This revision was landed with ongoing or failed builds.Jul 15 2021, 12:01 PM
This revision was automatically updated to reflect the committed changes.