This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Added options for integrated backend only used for SPIR-V for now
ClosedPublic

Authored by Anastasia on May 16 2022, 4:03 AM.

Details

Summary

Following the new flow for external object code emission provide flags to switch between integrated and external backend similar to the integrated assembler options.

SPIR-V target is the only user of this functionality at this point.

This patch also updated SPIR-V documentation to clarify that integrated object code emission for SPIR-V is an experimental feature.

Diff Detail

Event Timeline

Anastasia created this revision.May 16 2022, 4:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 4:03 AM
Anastasia requested review of this revision.May 16 2022, 4:03 AM

I'm not an expert in clang, but overall the patch looks good to me.

clang/docs/UsersManual.rst
3673

Please fix typo in "exerimental".

clang/include/clang/Driver/ToolChain.h
392

Probably change "supports" to "support".

396

The same issue.

From my point of view this patch LGTM.

clang/include/clang/Driver/Options.td
4173–4178

Adjust indentation?

mpaszkowski accepted this revision.May 18 2022, 5:12 PM

The typos noticed by Ilia need to be fixed, but apart from this the patch LGTM! Thank you Anastasia!

This revision is now accepted and ready to land.May 18 2022, 5:12 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 4:13 AM