[all-commits] [llvm/llvm-project] 76058c: [clang] Move `ExceptionHandling` from `LangOptions...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Jul 16 08:17:42 PDT 2025


  Branch: refs/heads/users/alexey-bataev/spr/slpinitial-fma-support
  Home:   https://github.com/llvm/llvm-project
  Commit: 76058c09071491fd097e85a0f5434b564dfad60b
      https://github.com/llvm/llvm-project/commit/76058c09071491fd097e85a0f5434b564dfad60b
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Basic/LangOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/CodeGen/CGException.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp

  Log Message:
  -----------
  [clang] Move `ExceptionHandling` from `LangOptions` to `CodeGenOptions` (#148982)

This PR removes the command line parsing workaround introduced in
https://github.com/llvm/llvm-project/pull/146342 by moving
`LangOptions::ExceptionHandling` to `CodeGenOptions` that get parsed
even for IR input. Additionally, this improves layering, where the
codegen library now checks `CodeGenOptions` instead of `LangOptions` for
exception handling. (This got enabled by
https://github.com/llvm/llvm-project/pull/146422.)


  Commit: 277023c7939cef1d5ab25d369f94518931f4d32d
      https://github.com/llvm/llvm-project/commit/277023c7939cef1d5ab25d369f94518931f4d32d
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Basic/LangOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/CodeGen/CGException.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

  Log Message:
  -----------
  Rebase, fix formatting

Created using spr 1.3.5


Compare: https://github.com/llvm/llvm-project/compare/894197a9d523...277023c7939c

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