blob: 3451f858e869bd0305839f627ff819ee8d4c4bc1 [file] [log] [blame]
//===--- ValueUtils.h -----------------------------------------------------===//
// This source file is part of the 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 for license information
// See for the list of Swift project authors
#include "swift/SIL/SILValue.h"
namespace swift {
/// Attempt to merge the ValueOwnershipKind of the passed in range's
/// SILValues. Returns Optional<None> if we found an incompatibility.
/// NOTE: This assumes that the passed in SILValues are not values used as type
/// dependent operands.
ValueOwnershipKind mergeSILValueOwnership(ArrayRef<SILValue> values);
} // namespace swift