Skip to content

Rename CodeGen_Posix to CodeGen_CPU#9097

Open
abadams wants to merge 4 commits intomainfrom
abadams/codegen_cpu
Open

Rename CodeGen_Posix to CodeGen_CPU#9097
abadams wants to merge 4 commits intomainfrom
abadams/codegen_cpu

Conversation

@abadams
Copy link
Copy Markdown
Member

@abadams abadams commented Apr 15, 2026

This base class was misnamed. It's intended for all llvm-based backends that use a CPU-like memory architecture. I.e. there's a stack and a heap and halide_malloc and halide_free exist. This covers our existing CPU architectures, but also Hexagon and WebAssembly, which use CPU-like memory models. If we add more things that are shared across CPU-like architectures in future, they would go here. Runtime modules with "posix" in the name weren't renamed because that's more correct. Those are modules that implement our runtime by calling posix functions.

No functional changes intended.

abadams and others added 2 commits April 15, 2026 09:41
This base class was misnamed. It's intended for all llvm-based backends
that use a CPU-like memory architecture. I.e. there's a stack and a heap
and halide_malloc and halide_free exist. This covers our existing CPU
architectures, but also Hexagon and WebAssembly, which use CPU-like
memory models. If we add more things that are shared across CPU-like
architectures in future, they would go here. Runtime modules with
"posix" in the name weren't renamed because that's more correct. Those
are modules that implement our runtime by calling posix functions.

No functional changes intended.
Comment thread src/CodeGen_CPU.h

/** \file
* Defines a base-class for code-generators on posixy cpu platforms
*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might be good to expand this comment with some design thoughts of what this class encapsulates, such as memory allocation. (And perhaps some things it is not supposed to handle.)

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