[all-commits] [llvm/llvm-project] fcc611: [CIR][CodeGen] Implement target-features checking(...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue Sep 15 12:16:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fcc6118dc91ba05a1ad30b0f406e42a8eb62f859
      https://github.com/llvm/llvm-project/commit/fcc6118dc91ba05a1ad30b0f406e42a8eb62f859
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M clang/include/clang/CodeGenUtils/CodeGenUtils.h
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/lib/CIR/CodeGen/CIRGenCall.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/FrontendAction/CIRGenAction.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGenUtils/CodeGenUtils.cpp
    A clang/test/CIR/CodeGen/avx512-error.c
    A clang/test/CIR/CodeGen/target-builtin-error-2.c
    A clang/test/CIR/CodeGen/target-builtin-error-3.c
    A clang/test/CIR/CodeGen/target-builtin-error.c
    A clang/test/CIR/CodeGen/target-builtin-noerror.c
    A clang/test/CIR/CodeGen/target-features-error-2.c
    A clang/test/CIR/CodeGen/target-features-error-3.c
    A clang/test/CIR/CodeGen/target-features-error-4.c
    A clang/test/CIR/CodeGen/target-features-error-5.c
    A clang/test/CIR/CodeGen/target-features-error.c
    A clang/test/CIR/CodeGen/target-features-no-error-2.c
    A clang/test/CIR/CodeGen/target-features-no-error.c
    M clang/test/CIR/CodeGenBuiltins/X86/avx512vlvbmi2-builtins.c
    M clang/test/CIR/CodeGenBuiltins/X86/sqrt-builtins.c
    M clang/test/CIR/CodeGenBuiltins/builtin-undef-rvalue.cpp

  Log Message:
  -----------
  [CIR][CodeGen] Implement target-features checking(CodeGenUtils!) (#223056)

This DOES move checking functions out of CodeGen and into CodeGenUtils
so both can use it.

This is a diagnostic for builtins/etc that is built in to classic
codegen. We have to implement it, because otherwise autoconfig thinks
that we support AVX without a flag, and thus causes us to fail builds
later on that now expect __AVX__/etc to be defined without enabling
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