Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aiuto committed Nov 9, 2022
1 parent b04f8d3 commit 0f056b5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cpu/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ filegroup(
# To add a new constraint_value see https://github.com/bazelbuild/platforms.
constraint_setting(name = "cpu")

# New cpu values should refer to specific, highly available CPU implementations,
# not broad architectures. It should be possible to select the right compiler
# options by just by knowing the cpu. This can be a difficult evaluation for
# ARM variations, where there are many possibilities for customization within
# an architecture.
#
# 1. No private names are be allowed. If you build your own custom ARM chips,
# then define them locally within your organization.
# 2. All CPU values must be clear that they are for a 32 or a 64 bit
# implementation. For example, cortex-r52 is a 32 bit processor, and
# cortex-r82 is a 64 bit processor, but both are armv8-r architecture.
# We use the specific processor names because armv8-r is insufficient to
# select proper compiler options.
#
# Many of the name here are legacy values and probably violate these conditions.
# We'll try to clean those up over time.


# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
alias(
name = "aarch64",
Expand Down

0 comments on commit 0f056b5

Please sign in to comment.