This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][DAGISel] Be more flexible about what calls are allowed
ClosedPublic

Authored by rovka on Jun 22 2023, 4:23 AM.

Details

Summary

Remove DAGISel checks on calling conventions. GlobalISel doesn't have
these checks either and we prefer it that way (see D152794).

Add a simple test like the one introduced in D117479 for GlobalISel.

Diff Detail

Event Timeline

rovka created this revision.Jun 22 2023, 4:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 4:23 AM
rovka requested review of this revision.Jun 22 2023, 4:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 4:23 AM
rovka added a reviewer: Restricted Project.Jun 22 2023, 4:23 AM
arsenm added inline comments.Jun 22 2023, 9:01 AM
llvm/test/CodeGen/AMDGPU/call-c-function.ll
13

Also test from amdgpu_gfx?

llvm/test/CodeGen/AMDGPU/unsupported-calls.ll
65

Move these into your new test, they shouldn't be in the unsupported test anymore with not run lines

rovka added inline comments.Jun 26 2023, 4:32 AM
llvm/test/CodeGen/AMDGPU/unsupported-calls.ll
65

They're still unsupported on R600, so I think it's reasonable to leave them here. I can remove the NOT line, I guess it's not useful anymore.

rovka updated this revision to Diff 534499.Jun 26 2023, 4:32 AM

Add test from amdgpu_gfx, remove GCN-NOT line from unsupported-calls.ll.

arsenm accepted this revision.Jun 26 2023, 7:41 AM
This revision is now accepted and ready to land.Jun 26 2023, 7:41 AM