Skip to content

Rename USE_MULTITARGET_CODE to USE_X86_64_MULTITARGET_CODE - #128073

Merged
rienath merged 1 commit into
ClickHouse:masterfrom
groeneai:rename-use-x86-64-multitarget-code
Oct 29, 2026
Merged

rienath merged 1 commit into
ClickHouse:masterfrom
groeneai:rename-use-x86-64-multitarget-code

Conversation

@groeneai

@groeneai groeneai commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

Related: #122860

Follow-up to #122860, as requested in its review. USE_MULTITARGET_CODE is now 1 only on x86_64 (AArch64 has USE_ARM_MULTITARGET_CODE), so it is renamed to USE_X86_64_MULTITARGET_CODE, like DECLARE_X86_64_MULTITARGET_CODE. Whole-word rename, no other change.

The preprocessed output is byte-identical before and after for every first-party translation unit on x86_64 (multitarget code on and off) and for the 5444 of 5712 that a configure-only aarch64 cross build can preprocess. A leftover use of the old name fails to compile with -Wundef.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/128073]

Version info

  • Merged into: 26.11.1.879-master (included in 26.11 and later)

Since ClickHouse#122860 the macro is 1 only on x86_64, and AArch64 has its own
`USE_ARM_MULTITARGET_CODE`. Whole-word rename, no other change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (1 nit, no action).

# Sev Finding Verdict Evidence / action
1 💡 The aarch64 preprocessed-output check skips 3 changed files (missing generated headers in a configure-only build) Noted Each changed file equals the base with only the token renamed, so the result does not depend on the check; aarch64 CI builds cover the full build

Severity: ❌ blocker / ⚠️ major / 💡 nit.

Session id: cron:clickhouse-review-slot-8:20261028-155400

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @rienath, could you review this and add the can be tested label so CI runs? It is the USE_MULTITARGET_CODE rename you asked for in #122860: whole-word, 35 files, no other change.

@clickhouse-gh

clickhouse-gh Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d057efe]

Summary: ✅


AI Review

Summary

PR #128073, reviewed at d057efe3178fa28c9744f99f720bb3f085281dda, renames USE_MULTITARGET_CODE to USE_X86_64_MULTITARGET_CODE across 35 files. Full-file comparisons confirm a consistent token-only rename, preserving architecture guards and dispatch behavior. No actionable findings.

Final Verdict

✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog comp-build-system Build system (CMake, compilation, platform builds). labels Oct 28, 2026
@rienath rienath self-assigned this Oct 28, 2026
@rienath rienath added the can be tested Allows running workflows for external contributors label Oct 28, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing d057efe31 with master 8ea13846e (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 956f38dc4; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

@rienath
rienath added this pull request to the merge queue Oct 28, 2026
Merged via the queue into ClickHouse:master with commit 474f3e3 Oct 29, 2026
354 of 355 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-build-system Build system (CMake, compilation, platform builds). pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants