This is an archive of the discontinued LLVM Phabricator instance.

[Utils] update_llc_test_checks.py: support AMDGPU backend: AMDGCN, r600 triples
ClosedPublic

Authored by lebedev.ri on Jun 11 2018, 1:00 AM.

Details

Summary

Lack of that support has taken me by surprise.
I need to add (or at least look at) some tests for https://reviews.llvm.org/D47980#1127615,
and i don't really fancy doing that by hand.

The asm pattern is quite similar to that of x86:
https://godbolt.org/g/hfgeds
just with # replaced with ;

Diff Detail

Repository
rL LLVM

Event Timeline

lebedev.ri created this revision.Jun 11 2018, 1:00 AM
lebedev.ri edited the summary of this revision. (Show Details)Jun 11 2018, 1:02 AM
arsenm accepted this revision.Jun 11 2018, 1:41 AM
arsenm added a subscriber: arsenm.

LGTM, although I don't see the relevance to the IR patch

This revision is now accepted and ready to land.Jun 11 2018, 1:41 AM

LGTM

Thank you for the review.

although I don't see the relevance to the IR patch

That IR thing may or may not break the idioms AMDGPU backend is looking for,
since it changes the IR produced by the @llvm.amdgcn.ubfe. intrinsics.

This revision was automatically updated to reflect the committed changes.