This is an archive of the discontinued LLVM Phabricator instance.

[Xcore] Set Int_MemBarrier as a meta-instruction
ClosedPublic

Authored by skan on Mar 18 2022, 12:45 AM.

Diff Detail

Event Timeline

skan created this revision.Mar 18 2022, 12:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2022, 12:45 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
skan requested review of this revision.Mar 18 2022, 12:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2022, 12:45 AM

As the test is specifying targets, I think it needs to be in both X86 and XCore areas. Otherwise compilers not supporting those targets will attempt the test.

There is "REQUIRES: ...-registered-target" (for example in attr-btf_tag.ll) but I think "REQUIRES: x86-registered-target,xcore-registered-target" would only test compilers supporting both targets, which is not right.

I suppose an alternative to duplicating is a new REQUIRES name but perhaps that's excessive for one test, and duplicating is simplest?

skan added a comment.Mar 18 2022, 11:48 PM

As the test is specifying targets, I think it needs to be in both X86 and XCore areas. Otherwise compilers not supporting those targets will attempt the test.

There is "REQUIRES: ...-registered-target" (for example in attr-btf_tag.ll) but I think "REQUIRES: x86-registered-target,xcore-registered-target" would only test compilers supporting both targets, which is not right.

I suppose an alternative to duplicating is a new REQUIRES name but perhaps that's excessive for one test, and duplicating is simplest?

Thanks! Good catch! I will do that.

skan updated this revision to Diff 416674.Mar 19 2022, 2:05 AM

Duplicate the test

nigelp-xmos accepted this revision.Mar 19 2022, 2:21 AM

LGTM thanks

This revision is now accepted and ready to land.Mar 19 2022, 2:21 AM
This revision was landed with ongoing or failed builds.Mar 19 2022, 2:52 AM
This revision was automatically updated to reflect the committed changes.