Commit Graph

6 Commits

Author SHA1 Message Date
Egor Zhdan
2b7e470d5d Revert "[cxx-interop] benchmark, disable ReadAccessor benchmark while investigating build regression after rebranch"
This reverts commit 157632fd9f.
2023-12-26 17:49:07 +00:00
Alex Lorenz
157632fd9f [cxx-interop] benchmark, disable ReadAccessor benchmark while investigating build regression after rebranch 2023-10-24 15:21:04 -07:00
Valeriy Van
3fa1952abc Fix warning in benchmark
warning: immutable value 'i' was never used; consider replacing with '_' or removing it
  for i in 0...N {
      ^
2023-01-18 21:21:04 +02:00
Alex Lorenz
e659a52f46 [interop] mark C++ benchmarks with cxxInterop tag for easy local testing 2022-10-03 17:13:10 -07:00
Egor Zhdan
626eadcf64 [cxx-interop] Import size_t as Int instead of UInt on Linux
When using libc++, Swift imports `size_t` as Int despite `size_t` being an unsigned type. This is intentional & is specified in `lib/ClangImporter/MappedTypes.def`. Previously, MappedTypes were only honored for C/C++ types declared on the file level.

In libstdc++, `size_t` is declared within `namespace std` and not on the file level, so the mapping to Int was not applied.

This change ensures that MappedTypes are also applied to types declared in `namespace std`.
2022-03-24 15:29:19 +00:00
Nuri Amari
cda2c26d8c Create ReadAccessor benchmark
Create a benchmark to test the
performance of synthesized read
accessors generated to interop
with C++ [] operators.
2022-03-07 10:19:25 -05:00