[all-commits] [llvm/llvm-project] f21b9c: [CIR] Implement __builtin_cpu_supports, _init, and...

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Jul 29 21:16:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f21b9cc9c6386cc1f4b057d8af6a3fdf617cddf9
      https://github.com/llvm/llvm-project/commit/f21b9cc9c6386cc1f4b057d8af6a3fdf617cddf9
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    A clang/test/CIR/CodeGen/builtin-cpu-is-cputype.c
    A clang/test/CIR/CodeGen/builtin-cpu-is-subtype.c
    A clang/test/CIR/CodeGen/builtin-cpu-is-vendor.c
    A clang/test/CIR/CodeGen/builtin-cpu-supports.c

  Log Message:
  -----------
  [CIR] Implement __builtin_cpu_supports, _init, and _is (#212900)

These are pretty trivial checks to a builtin variable, so this
implements it for x86, as this shows up in self-build. The tests are
pulled from classic-codegen and shows that we do the reasonable thing
for each of them.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list