Skip to content

Conversation

wenju-he
Copy link
Contributor

@wenju-he wenju-he commented Oct 20, 2025

Implementation doesn't change.

This is NFC because implementation doesn't change.
@wenju-he wenju-he requested a review from Copilot October 20, 2025 04:54
@llvmbot llvmbot added the libclc libclc OpenCL library label Oct 20, 2025
@wenju-he wenju-he requested a review from frasercrmck October 20, 2025 04:54
Copy link
Contributor

@Copilot 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 simplifies the implementation of smoothstep functions by replacing complex macro definitions with a cleaner approach using the gentype.inc include system. The functionality remains identical (NFC - No Functional Change).

Key changes:

  • Replace verbose macro-based function generation with include-based template system
  • Consolidate implementation logic into .inc files for better maintainability

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
libclc/opencl/lib/generic/common/smoothstep.inc New template file defining smoothstep function implementations
libclc/opencl/lib/generic/common/smoothstep.cl Simplified to use gentype.inc system instead of manual macros
libclc/clc/lib/generic/common/clc_smoothstep.inc New template file with core smoothstep algorithm implementation
libclc/clc/lib/generic/common/clc_smoothstep.cl Simplified to use gentype.inc system instead of manual macros
@wenju-he wenju-he requested a review from arsenm October 20, 2025 04:54
@wenju-he wenju-he changed the title [NFC][libclc] Simplify __clc_smoothstep and smoothstep macros [NFC][libclc] Simplify degrees, radians and smoothstep macros Oct 20, 2025
@wenju-he wenju-he merged commit 54eaf22 into llvm:main Oct 20, 2025
10 checks passed
@wenju-he wenju-he deleted the libclc-smoothstep branch October 20, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libclc libclc OpenCL library

3 participants