Skip to content

Adapt to latest llvm changes#3859

Merged
svenvh merged 2 commits into
KhronosGroup:mainfrom
Qi-Ye-079:fix_ci
Jul 13, 2026
Merged

Adapt to latest llvm changes#3859
svenvh merged 2 commits into
KhronosGroup:mainfrom
Qi-Ye-079:fix_ci

Conversation

@Qi-Ye-079

@Qi-Ye-079 Qi-Ye-079 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Some merged changes from llvm-project breaks compilation and tests of translator.

#187927:

  • DISubprogram::getRetainedNodes() returns MDNodeArray now, instead of DINodeArray.
  • Originally, a global variable in function scope (a DIGlobalVariable whose scope is a DILocalScope) was on the globals: list of the DICompileUnit. This has changed now: it must be on retainedNodes of the owning DISubprogram, otherwise LLVM IR verifier will reject it.

#207347:

  • Now llc requires SPV_INTEL_function_pointers to be enabled when using function pointer in SPIRV BE.

@Qi-Ye-079 Qi-Ye-079 marked this pull request as ready for review July 10, 2026 20:04
Comment thread test/DebugInfo/X86/dimodule-external-fortran.ll Outdated

@YuriPlyakhin YuriPlyakhin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. one nit.

@YuriPlyakhin

Copy link
Copy Markdown
Contributor

@svenvh , @MrSidims , @maarquitos14, should this PR be merged now, or wait for CI to pick up an up-to-date LLVM?

Context: the only failing checks are the two out-of-tree Linux jobs. They fail because CI hasn't yet picked up fresh LLVM yet. The in-tree jobs, built against llvm-project main, pass.

wenju-he added a commit to intel/llvm that referenced this pull request Jul 11, 2026
Fix llvm-spirv LLVMToSPIRVDbgTran.cpp build error by cherry-picking
KhronosGroup/SPIRV-LLVM-Translator#3859
d58b056 changed getRetainedNodes() return type to MDNodeArray.
Co-authored-by: Yury Plyakhin <yury.plyakhin@intel.com>
@svenvh

svenvh commented Jul 13, 2026

Copy link
Copy Markdown
Member

should this PR be merged now, or wait for CI to pick up an up-to-date LLVM?

It might be a while before new apt packages are available, and we can't really wait for that. It means the out-of-tree CI jobs will be broken until then, but that's what it is.

Let's wait for CI to finish after I applied your suggestion, and then we merge.

@svenvh svenvh merged commit db65012 into KhronosGroup:main Jul 13, 2026
6 of 8 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.

3 participants