| commit | 32f461bd0c957fb5d3259f89146b358cb73d8469 | [log] [tgz] |
|---|---|---|
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | Tue Jul 08 13:39:12 2025 +0900 |
| committer | GitHub <noreply@github.com> | Tue Jul 08 13:39:12 2025 +0900 |
| tree | 8020b90755669fea0224ced9d2e2261715837f53 | |
| parent | 4c98da2cadfb23f6d4070db9136d8dc0a379bcc1 [diff] |
RuntimeLibcalls: Account for Triple default exception handling (#147224) Previously we were taking the raw TargetOptions exception mode. This only works correctly for the TargetLowering usage, when the -exception-model flag is explicitly used. The interface isn't great, and interprets none to both mean use target default and unsupported, such that it's not possible to opt-out of exceptions on targets that report a non-none default. We also still get the wrong mode in the linker usecase of RuntimeLibcalls since it doesn't have the TargetMachine. But at least wrongly being the default is an improvement over being unset. I'm not really sure how to write a test for this.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.