Skip to content

Conversation

@wenju-he
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a Clang patch to enable BFloat16 support for SPIR and SPIR-V targets. The patch modifies the SPIR target configuration to include BFloat16 type support by setting the necessary flags and format specifications.

Key Changes:

  • Adds a new patch file that enables BFloat16 type support in Clang's SPIR/SPIR-V target implementation
  • Configures BFloat16 width, alignment, and floating-point format for SPIR targets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

+ HasBFloat16 = true;
+ BFloat16Width = BFloat16Align = 16;
+ BFloat16Format = &llvm::APFloat::BFloat();
+
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

[nitpick] Remove the extraneous blank line before the closing comment section. This keeps the patch formatting clean and consistent with standard patch format conventions.

Copilot uses AI. Check for mistakes.
@wenju-he wenju-he merged commit 03a7cce into intel:ocl-open-180 Nov 24, 2025
1 check passed
@wenju-he wenju-he deleted the add-clang-bf16-patches-180 branch November 24, 2025 01:51
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.

2 participants