Skip to content

Resolve conflicts with master #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2fad025
test: make `test_util` more Python 3 friendly
compnerd Jul 4, 2020
dcd33ca
test: setup `PYTHONIOENCODING` on Windows
compnerd Jul 6, 2020
7bf676d
[Frontend] Add compiler version information to -print-target-info out…
DougGregor Jul 8, 2020
f818a1e
[Driver/IRGen] Put backward-deployment libraries into a table.
DougGregor Jul 8, 2020
618af04
[Frontend] Add compatibility libraries to -print-target-info.
DougGregor Jul 8, 2020
be79d34
[AssociatedTypeInference] Strip 'self' parameter from function type o…
theblixguy Jul 8, 2020
e547182
Loosen a test to deal with vendor nane
DougGregor Jul 8, 2020
c1ce8b6
Update test_util.py
compnerd Jul 8, 2020
6c89aa0
[Build System] Support host target prefix in symbols package
shahmishal Jul 8, 2020
a778f51
[CodeCompletion] Remove redundant entries from possible callee analysis
rintaro Jul 8, 2020
f8d8091
[ownership] Move ome after GlobalOpt (#32742)
meg-gupta Jul 8, 2020
1802ec9
Merge pull request #32753 from theblixguy/fix/associated-type-inferen…
slavapestov Jul 8, 2020
a54aeb2
Merge pull request #32710 from compnerd/3-is-neigh
compnerd Jul 9, 2020
81b37cc
Merge pull request #32762 from rintaro/ide-completion-rdar65081358
rintaro Jul 9, 2020
e07df26
Merge pull request #32763 from apple/fix-symbols-dir-master
shahmishal Jul 9, 2020
caca83e
[Test] Un-XFAIL ParseableInterface/verify_all_overlays.py.
nate-chandler Jul 9, 2020
068581c
[gardening] Extract out a lambda out of a loop and reduce some indent…
gottesmm Jul 9, 2020
ec5da74
[AutoDiff] NFC: garden differentiation transform. (#32770)
dan-zheng Jul 9, 2020
b0cb516
[gardening] Add a helper to SILFunctionConventions to retrieve if a f…
gottesmm Jul 9, 2020
59b8c6e
Fix test again :(
DougGregor Jul 9, 2020
a37593a
Merge pull request #32772 from nate-chandler/rdar50648519
swift-ci Jul 9, 2020
063568e
Merge pull request #32775 from gottesmm/pr-8e5c606bb997a40b359ab5a5ae…
swift-ci Jul 9, 2020
cee75bd
Merge pull request #32758 from DougGregor/enhanced-print-target-info
DougGregor Jul 9, 2020
6061fe6
Merge pull request #32774 from gottesmm/pr-8b5227a32670d42e9974d93fbe…
gottesmm Jul 9, 2020
0e669bf
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Jul 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions include/swift/Frontend/BackDeploymentLibs.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//===------ BackDeploymentLibs.def - Backward Deployment Libraries --------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
// Enumerates the backward deployment libraries that need to be linked
// into Swift targets. Clients of this file must define the macro
//
// BACK_DEPLOYMENT_LIB(Version, Filter, LibraryName)
//
// where:
// Version is a maximum Swift version written like a tuple, e.g., (5, 1)
// Filter is one of executable or all.
// LibraryName is the name of the library, e.g., "swiftCompatibility51"
//===----------------------------------------------------------------------===//

#ifndef BACK_DEPLOYMENT_LIB
# error "Must define BACK_DEPLOYMENT_LIB(Version, Filter, Library)"
#endif

BACK_DEPLOYMENT_LIB((5, 0), all, "swiftCompatibility50")
BACK_DEPLOYMENT_LIB((5, 1), all, "swiftCompatibility51")
BACK_DEPLOYMENT_LIB((5, 0), executable, "swiftCompatibilityDynamicReplacements")

#undef BACK_DEPLOYMENT_LIB
8 changes: 8 additions & 0 deletions include/swift/SIL/SILFunctionConventions.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ class SILFunctionConventions {
/// Return the SIL type of the apply/entry argument at the given index.
SILType getSILArgumentType(unsigned index,
TypeExpansionContext context) const;

/// Returns true if this function does not return to the caller.
bool isNoReturn(TypeExpansionContext context) const;
};

struct SILFunctionConventions::SILResultTypeFunc {
Expand Down Expand Up @@ -464,6 +467,11 @@ SILFunctionConventions::getSILArgumentType(unsigned index,
funcTy->getParameters()[index - getNumIndirectSILResults()], context);
}

inline bool
SILFunctionConventions::isNoReturn(TypeExpansionContext context) const {
return funcTy->isNoReturnFunction(silConv.getModule(), context);
}

inline SILFunctionConventions
SILModuleConventions::getFunctionConventions(CanSILFunctionType funcTy) {
return SILFunctionConventions(funcTy, *this);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- JVPEmitter.h - JVP Generation in Differentiation -----*- C++ -*---===//
//===--- JVPCloner.h - JVP function generation ----------------*- C++ -*---===//
//
// This source file is part of the Swift.org open source project
//
Expand All @@ -15,8 +15,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef SWIFT_SILOPTIMIZER_UTILS_DIFFERENTIATION_JVPEMITTER_H
#define SWIFT_SILOPTIMIZER_UTILS_DIFFERENTIATION_JVPEMITTER_H
#ifndef SWIFT_SILOPTIMIZER_UTILS_DIFFERENTIATION_JVPCLONER_H
#define SWIFT_SILOPTIMIZER_UTILS_DIFFERENTIATION_JVPCLONER_H

#include "swift/SILOptimizer/Differentiation/AdjointValue.h"
#include "swift/SILOptimizer/Differentiation/DifferentiationInvoker.h"
Expand All @@ -40,8 +40,8 @@ namespace autodiff {

class ADContext;

class JVPEmitter final
: public TypeSubstCloner<JVPEmitter, SILOptFunctionBuilder> {
class JVPCloner final
: public TypeSubstCloner<JVPCloner, SILOptFunctionBuilder> {
private:
/// The global context.
ADContext &context;
Expand Down Expand Up @@ -368,9 +368,9 @@ class JVPEmitter final
void prepareForDifferentialGeneration();

public:
explicit JVPEmitter(ADContext &context, SILFunction *original,
SILDifferentiabilityWitness *witness, SILFunction *jvp,
DifferentiationInvoker invoker);
explicit JVPCloner(ADContext &context, SILFunction *original,
SILDifferentiabilityWitness *witness, SILFunction *jvp,
DifferentiationInvoker invoker);

static SILFunction *
createEmptyDifferential(ADContext &context,
Expand Down Expand Up @@ -411,4 +411,4 @@ class JVPEmitter final
} // end namespace autodiff
} // end namespace swift

#endif // SWIFT_SILOPTIMIZER_UTILS_DIFFERENTIATION_VJPEMITTER_H
#endif // SWIFT_SILOPTIMIZER_UTILS_DIFFERENTIATION_JVPCLONER_H
Loading