[llvm] Improve compiler-rt build structure and export compilation info (PR #190088)

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 14:01:33 PDT 2026


================
@@ -288,10 +317,13 @@ AARCH64_OUTLINE_ATOMICS_FMT = "lib/builtins/aarch64/outline_atomic_{0}{1}_{2}.S"
 
 # Source files for the AArch64 architecture-specific builtins.
 filegroup(
-    name = "builtins_aarch64_srcs",
+    name = "builtins_unfiltered_aarch64_srcs",
     srcs = [
         "lib/builtins/cpu_model/aarch64.c",
         "lib/builtins/cpu_model/aarch64.h",
+        ":builtins_bf16_srcs",
----------------
chandlerc wrote:

Happy to use more structured naming, or make the structured naming more clear.

I was attempting to follow a certain pattern here:

- `builtins_<arch>_<feature>_srcs`: source files for a specific feature of an architecture that aren't always included.
- `builtins_<arch>_arch_srcs`: source files that are specific to an architecture (but not any particular feature of that architecture).
- `builtins_unfiltered_<arch>_srcs`: the complete set source file inputs potentially used on an architecture, often `arch` here is more "u-arch" or something more specific than the `<arch>` in others. For example, instead of just `arm`, this would typically be a specific ARM _version_ or `aarch32`.
- `builtins_<arch>_srcs`: the post-filtering sources to actually compile for `<arch>`, always a subset of `builtins_unfiltered_<arch>_srcs`, and uses that meaning of `<arch>`.

That said, I totally get that this pattern is maybe not the most obvious or clear -- how would folks like to organize these in terms of prefix vs. suffix? Is there better terminology for one of the clusters?

https://github.com/llvm/llvm-project/pull/190088


More information about the llvm-commits mailing list