Skip to content

cmd/compile: lower Go runtime type data and interfaces to LLVM - #5

Merged
zhouguangyuan0718 merged 17 commits into
goallc:go1.27.masterfrom
zhouguangyuan0718:codex/document-llvm-ir-goobj
Jul 28, 2026
Merged

cmd/compile: lower Go runtime type data and interfaces to LLVM#5
zhouguangyuan0718 merged 17 commits into
goallc:go1.27.masterfrom
zhouguangyuan0718:codex/document-llvm-ir-goobj

Conversation

@zhouguangyuan0718

@zhouguangyuan0718 zhouguangyuan0718 commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • lower compiler-collected Go data into typed LLVM globals, preserving GoObj symbol identity and expressing linker relations with native LLVM semantics where possible
  • emit runtime type descriptors for all supported kinds, uncommon method data, method wrappers, and static itabs
  • lower interface calls, conversions, assertions, equality, and type switches through the Go ABI
  • document the LLVM IR-to-GoObj data pipeline and expand LLVM regression coverage to 40/95 codegen files and 19 runtime files

The codegen contract is IR generation plus opt -passes=verify and semantic FileCheck checks. It intentionally does not require O2 or llc.

Companion PRs

Testing

  • ./bin/go test -tags="llvm23 dynamicllvm" cmd/internal/testdir -run "Test/LLVM" -count=1
  • ./bin/go test -tags="llvm23 dynamicllvm" cmd/internal/testdir -run "Test/LLVM/codegen" -count=5

@zhouguangyuan0718
zhouguangyuan0718 force-pushed the codex/document-llvm-ir-goobj branch from 89846ba to 15c4565 Compare July 28, 2026 03:37
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