Skip to content

llvm: add LLVM 22 support to coroutine bindings - #4

Merged
cpunion merged 2 commits into
llvm-corofrom
coro/llvm22-config
Jul 15, 2026
Merged

llvm: add LLVM 22 support to coroutine bindings#4
cpunion merged 2 commits into
llvm-corofrom
coro/llvm22-config

Conversation

@cpunion

@cpunion cpunion commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • add the formal llvm22 cgo configuration for Darwin, FreeBSD, and Linux
  • keep the LLVM 19 default fallback from matching an explicit llvm22 tag
  • exercise the existing LLVM 22 llvm.coro.end void-result compatibility path
  • focus coroutine CI on supported LLVM 19, 21, and 22

This integrates the clean LLVM 22 support submitted upstream in xgo-dev#43 with the llvm-coro branch used by LLGo.

Testing

  • go test -tags=llvm22 ./...
  • go vet -tags=llvm22 ./...
  • go test -tags=llvm22 -run 'Test(ConstTokenNoneWithCoroutineIntrinsics|SwitchedResumeCoroutinePassPipelines)' ./...\n\nTested locally with Homebrew LLVM 22.1.8.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for LLVM 22 and LLVM 21. It updates the README documentation, excludes the llvm22 build tag in llvm_config_llvm19.go, and introduces a new configuration file llvm_config_llvm22.go with the necessary cgo compiler and linker flags for LLVM 22 across Darwin, FreeBSD, and Linux. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@cpunion
cpunion merged commit 426515d into llvm-coro Jul 15, 2026
3 checks passed
@cpunion
cpunion deleted the coro/llvm22-config branch July 15, 2026 23:19
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.

1 participant