diff options
author | Alex Voicu <alexandru.voicu@amd.com> | 2025-08-08 20:31:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-08 12:31:28 -0700 |
commit | 327c64cd6a69e35fe1351d4f5e89cd235e34ccc8 (patch) | |
tree | 471cc5d378e3630895a1123ca49780b7f4fa406a /mlir/lib/Bindings/Python/MainModule.cpp | |
parent | ca006898b3c289808b05562a59ded11fedfc5406 (diff) | |
download | llvm-327c64cd6a69e35fe1351d4f5e89cd235e34ccc8.zip llvm-327c64cd6a69e35fe1351d4f5e89cd235e34ccc8.tar.gz llvm-327c64cd6a69e35fe1351d4f5e89cd235e34ccc8.tar.bz2 |
[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.
Diffstat (limited to 'mlir/lib/Bindings/Python/MainModule.cpp')
0 files changed, 0 insertions, 0 deletions