Commit Graph

28 Commits

Author SHA1 Message Date
Erik Eckstein
7cceaff5f3 SIL: don't print operand types in textual SIL
Type annotations for instruction operands are omitted, e.g.

```
  %3 = struct $S(%1, %2)
```

Operand types are redundant anyway and were only used for sanity checking in the SIL parser.

But: operand types _are_ printed if the definition of the operand value was not printed yet.
This happens:

* if the block with the definition appears after the block where the operand's instruction is located

* if a block or instruction is printed in isolation, e.g. in a debugger

The old behavior can be restored with `-Xllvm -sil-print-types`.
This option is added to many existing test files which check for operand types in their check-lines.
2024-11-21 18:49:52 +01:00
Arnold Schwaighofer
79894ff461 Fix test/Interop with opaque pointers 2023-07-03 03:36:07 -07:00
Arnold Schwaighofer
c1a93e0bde Move tests over to use the %use_no_opaque_pointers option 2023-06-14 10:49:48 -07:00
zoecarver
839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00
Saleem Abdulrasool
9ba7bf78db Interop: use new target-clangxx for building C++ code
This enables control over the C++ flags used during testing for the C++
interop from a single location rather than having to alter all the
tests.
2021-01-12 08:29:24 -08:00
Saleem Abdulrasool
df9d1e815f Interop/Cxx: explicitly require C++ for modules
The C++ interop modules require C++ support.  Explicitly require C++ as
a feature when building these modules.  This has no impact on the
changes as all the tests enable C++ already.
2021-01-06 16:59:42 -08:00
Erik Eckstein
4aa99a2dd0 SILPrinter: print linkage for external globals.
Unlike SIL functions, there is no way to distinguish a global declaration from a global definition - other than the linkage.
2020-06-22 16:49:26 +02:00
Dmitri Gribenko
762720e4c7 Merge pull request #31400 from hlopko/pretty-print-static-vars-in-sil
[CxxInterop] Add C++ demangled name for globals/static member variables to SIL
2020-05-01 00:14:17 +02:00
Dmitri Gribenko
105c8f96b1 Merge pull request #31441 from hlopko/header-guards
Add header guards to headers in test/interop
2020-04-30 20:51:07 +02:00
Marcel Hlopko
45509cd885 Add // clang name: Foo::bar comment to globals/functions/static member variables 2020-04-30 16:55:14 +02:00
Marcel Hlopko
2fbcf184ed Add header guards to test/Interop 2020-04-30 16:13:33 +02:00
Marcel Hlopko
edbd902a90 Change C++ extension for test inputs from .cc to .cpp 2020-04-30 15:34:16 +02:00
Marcel Hlopko
883262771b Expose C++ static members as Swift static properties 2020-04-23 15:33:43 +02:00
Marcel Hlopko
95a59d9dd5 Make irgen tests mac friendly 2020-04-21 16:57:04 +02:00
Marcel Hlopko
8af9ca08c1 Make irgen test windows friendly 2020-04-21 16:48:24 +02:00
Marcel Hlopko
937b1e2ba2 Trust -fPIE will come from target_clang 2020-04-21 14:06:54 +02:00
Marcel Hlopko
cfe463d715 Cleanup 2020-04-20 16:27:27 +02:00
Marcel Hlopko
cd1560a487 Address comments 2020-04-20 16:25:04 +02:00
Marcel Hlopko
774b655b39 Reverse args to expectEqual 2020-04-20 10:57:39 +02:00
Marcel Hlopko
8136d8c006 Rename test suite var 2020-04-20 10:46:34 +02:00
Marcel Hlopko
6321392e09 Interleave code and checks 2020-04-20 10:00:38 +02:00
Marcel Hlopko
fdcb330284 Add inout tests, add labels 2020-04-20 09:56:51 +02:00
Marcel Hlopko
f4d897e09e Remove uninspired comment 2020-04-17 16:44:30 +02:00
Marcel Hlopko
ee775e68ff Add more tests 2020-04-17 16:42:37 +02:00
Marcel Hlopko
aba7326d32 Update test/Interop/Cxx/extern-var/extern-var-irgen.swift
Co-Authored-By: Dmitri Gribenko <gribozavr@gmail.com>
2020-04-17 15:43:23 +02:00
Marcel Hlopko
d68ce6e6a0 Comment out failing tests 2020-04-17 15:35:25 +02:00
Marcel Hlopko
8ef3494340 Rename global-var -> extern-var 2020-04-17 14:58:47 +02:00
Marcel Hlopko
c590d72c12 Steal files from other branch 2020-04-17 14:54:10 +02:00