| commit | 327c64cd6a69e35fe1351d4f5e89cd235e34ccc8 | [log] [tgz] |
|---|---|---|
| author | Alex Voicu <alexandru.voicu@amd.com> | Fri Aug 08 20:31:28 2025 +0100 |
| committer | GitHub <noreply@github.com> | Fri Aug 08 12:31:28 2025 -0700 |
| tree | 471cc5d378e3630895a1123ca49780b7f4fa406a | |
| parent | ca006898b3c289808b05562a59ded11fedfc5406 [diff] |
[HIP][SPIRV] Implicit `new`/`delete` should be `cdecl` on host (#152023) Client apps can (and in the case of the MSVC STL do) set cdecl explicitly on `new` / `delete` implementations. On the other hand, Clang generates implicit decls with the target's default CC. This is problematic for SPIR-V, since the default there is spir_function, which is not compatible. Since we cannot change pre-existing headers / implementations, this patch sets the CC to C for the implicit host-side decls, when compiling for device, to prevent the conflict. This is fine because the host-side overloards do not get emitted on device.
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.