Commit Graph

5 Commits

Author SHA1 Message Date
Slava Pestov
e123815e85 IRGen: Use the correct triple when checking for YAML legacy type info
IGM.Triple is irgen.getEffectiveClangTriple(), which says "thumbv7"
in place of "armv7" for 32-bit iOS ARM targets.

Instead, lets use IGM.Context.LangOpts.Target, which is what we use
to find swiftmodule files.
2019-02-15 21:10:27 -05:00
Arnold Schwaighofer
39fa2f0228 Use the swift calling convention for swift functions
Use the generic type lowering algorithm described in
"docs/CallingConvention.rst#physical-lowering" to map from IRGen's explosion
type to the type expected by the ABI.

Change IRGen to use the swift calling convention (swiftcc) for native swift
functions.

Use the 'swiftself' attribute on self parameters and for closures contexts.

Use the 'swifterror' parameter for swift error parameters.

Change functions in the runtime that are called as native swift functions to use
the swift calling convention.

rdar://19978563
2017-02-14 12:17:57 -08:00
practicalswift
f44686d825 [gardening] Fix trailing whitespace in *.cfg.in, *.html, *.mm and *.sil files 2016-10-29 14:06:43 +02:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Michael Gottesman
0e11d47cdb [build-script] When smoke testing on macOS, only build the X86 LLVM code generator
We have no need for the other LLVM code generators (after all the main principle
of this smoke test is to only text X86 on macOS).

To implement this I had to split a couple of IRGen tests that involved multiple
code generator into multiple tests so I could use different REQUIRES lines. This
would be a nice feature to add to lit.
2016-07-21 11:12:56 -07:00