This is an archive of the discontinued LLVM Phabricator instance.

clang/OpenCL: Don't use a Function for the block type
ClosedPublic

Authored by arsenm on Jan 10 2023, 4:54 PM.

Details

Reviewers
yaxunl
Anastasia
Summary

The AMDGPU value for this is not really a function. Currently we're
emitting IR that isn't true to what will eventually be emitted.

Diff Detail

Event Timeline

arsenm created this revision.Jan 10 2023, 4:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 4:54 PM
Herald added subscribers: kosarev, tpr. · View Herald Transcript
arsenm requested review of this revision.Jan 10 2023, 4:54 PM

need a test

need a test

This is NFC, this is just fixing the API for the next commit I haven't posted yet

need a test

This is NFC, this is just fixing the API for the next commit I haven't posted yet

Did you change the calling convention of the created kernel for amdgpu?

arsenm updated this revision to Diff 488638.Jan 12 2023, 6:39 AM

Fix patch split. update_cc_test_checks misses the calling convention, so I'm going to precommit a test which verifies those are correct

yaxunl added inline comments.Jan 30 2023, 5:47 AM
clang/lib/CodeGen/TargetInfo.cpp
12477–12480

need a test

arsenm added inline comments.Jan 30 2023, 5:56 AM
clang/lib/CodeGen/TargetInfo.cpp
12477–12480

It's already tested, I recommitted the regression test in 7f2f6eec3ead9c5715c86159919d6df182d1cc4d. This is supposed to be NFC

yaxunl accepted this revision.Jan 30 2023, 6:04 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Jan 30 2023, 6:04 AM