Skip to content

Conversation

@againull
Copy link
Contributor

@againull againull commented Nov 24, 2025

Exposing abi-breaking changes from #20062
Co-authored-by: Steffen Larsen steffen.larsen@intel.com

Exposing abi-breaking changes from intel#20062

Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
@againull againull marked this pull request as ready for review November 24, 2025 23:45

// --- Prepare test data
// - create the first binary image
// End-to-end test for clang-offload-wrapper executable:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a copy of clang/test/Driver/clang-offload-wrapper-exe-preview.cpp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's right.

// RUN: clang-offload-wrapper --help | FileCheck %s --check-prefix CHECK-HELP
// CHECK-HELP: OVERVIEW: A tool to create a wrapper bitcode for offload target binaries.
// CHECK-HELP: Takes offload target binaries and optional manifest files as input
// CHECK-HELP: Takes offload target binaries as input
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is some strange formatting. Do we need to update the help text somewhere?

Comment on lines 1772 to 1777
"A tool to create a wrapper bitcode for offload target binaries.\n"
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
"Takes offload target binaries and optional manifest files as input\n"
#else
"Takes offload target binaries as input\n"
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
"and produces bitcode file containing target binaries packaged as data\n"
"and initialization code which registers target binaries in the offload\n"
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
"runtime. Manifest files format and contents are not restricted and are\n"
"a subject of agreement between the device compiler and the native\n"
"runtime for that device. When present, manifest file name should\n"
"immediately follow the corresponding device image filename on the\n"
"command line. Options annotating a device binary have effect on all\n"
#else
"runtime. Options annotating a device binary have effect on all\n"
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
"subsequent input, until redefined.\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answering my earlier question - we need to reformat this paragraph. I'm not sure what width we're trying to achieve here, but something like this:

"A tool to create a wrapper bitcode for offload target binaries.\n"
"Takes offload target binaries as input and produces bitcode file\n"
"containing target binaries packaged as data and initialization code\n"
"which registers target binaries in the offload runtime. Options\n"
"annotating a device binary have effect on all subsequent input,\n"
"until redefined.\n"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, fixed.

Comment on lines 488 to 490
{
std::ofstream File{LockFile};
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and below seem unrelated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluded this change.

Copy link
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM.

Copy link
Contributor

@hchilama hchilama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Driver

@againull againull merged commit 282e8cc into intel:sycl Nov 25, 2025
44 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants