Merge branch 'master' into willthrow-error-register

This commit is contained in:
Mike Ash
2018-08-28 10:57:25 -04:00
543 changed files with 12939 additions and 12280 deletions

View File

@@ -258,12 +258,6 @@ FUNCTION(NativeNonAtomicStrongRetain, swift_nonatomic_retain, C_CC,
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind, FirstParamReturned))
// void *swift_tryPin(void *ptr);
FUNCTION(NativeTryPin, swift_tryPin, C_CC,
RETURNS(RefCountedPtrTy),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind))
// void swift_nonatomic_release(void *ptr);
FUNCTION(NativeNonAtomicStrongRelease, swift_nonatomic_release, C_CC,
RETURNS(VoidTy),
@@ -276,30 +270,12 @@ FUNCTION(NativeTryRetain, swift_tryRetain, C_CC,
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind))
// void swift_unpin(void *ptr);
FUNCTION(NativeUnpin, swift_unpin, C_CC,
RETURNS(VoidTy),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind))
// bool swift_isDeallocating(void *ptr);
FUNCTION(IsDeallocating, swift_isDeallocating, C_CC,
RETURNS(Int1Ty),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// void *swift_nonatomic_tryPin(void *ptr);
FUNCTION(NonAtomicNativeTryPin, swift_nonatomic_tryPin, C_CC,
RETURNS(RefCountedPtrTy),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind))
// void swift_nonatomic_unpin(void *ptr);
FUNCTION(NonAtomicNativeUnpin, swift_nonatomic_unpin, C_CC,
RETURNS(VoidTy),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind))
// void *swift_unknownObjectRetain(void *ptr);
FUNCTION(UnknownObjectRetain, swift_unknownObjectRetain, C_CC,
RETURNS(UnknownRefCountedPtrTy),
@@ -459,14 +435,6 @@ FUNCTION(IsUniquelyReferencedNonObjC_nonNull,
ARGS(UnknownRefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferencedOrPinnedNonObjC_nonNull(const void *);
FUNCTION(IsUniquelyReferencedOrPinnedNonObjC_nonNull,
swift_isUniquelyReferencedOrPinnedNonObjC_nonNull,
C_CC,
RETURNS(Int1Ty),
ARGS(UnknownRefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferencedNonObjC_nonNull_bridgeObject(
// uintptr_t bits);
FUNCTION(IsUniquelyReferencedNonObjC_nonNull_bridgeObject,
@@ -476,15 +444,6 @@ FUNCTION(IsUniquelyReferencedNonObjC_nonNull_bridgeObject,
ARGS(BridgeObjectPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferencedOrPinnedNonObjC_nonNull_bridgeObject(
// uintptr_t bits);
FUNCTION(IsUniquelyReferencedOrPinnedNonObjC_nonNull_bridgeObject,
swift_isUniquelyReferencedOrPinnedNonObjC_nonNull_bridgeObject,
C_CC,
RETURNS(Int1Ty),
ARGS(BridgeObjectPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferenced_native(const struct HeapObject *);
FUNCTION(IsUniquelyReferenced_native, swift_isUniquelyReferenced_native,
C_CC,
@@ -492,14 +451,6 @@ FUNCTION(IsUniquelyReferenced_native, swift_isUniquelyReferenced_native,
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferencedOrPinned_native(const struct HeapObject *);
FUNCTION(IsUniquelyReferencedOrPinned_native,
swift_isUniquelyReferencedOrPinned_native,
C_CC,
RETURNS(Int1Ty),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferenced_nonNull_native(const struct HeapObject *);
FUNCTION(IsUniquelyReferenced_nonNull_native,
swift_isUniquelyReferenced_nonNull_native,
@@ -508,15 +459,6 @@ FUNCTION(IsUniquelyReferenced_nonNull_native,
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isUniquelyReferencedOrPinned_nonNull_native(
// const struct HeapObject *);
FUNCTION(IsUniquelyReferencedOrPinned_nonNull_native,
swift_isUniquelyReferencedOrPinned_nonNull_native,
C_CC,
RETURNS(Int1Ty),
ARGS(RefCountedPtrTy),
ATTRS(NoUnwind, ZExt))
// bool swift_isEscapingClosureAtFileLocation(const struct HeapObject *object,
// const unsigned char *filename,
// int32_t filenameLength,
@@ -653,9 +595,9 @@ FUNCTION(GetForeignWitnessTable, swift_getForeignWitnessTable, C_CC,
ProtocolDescriptorPtrTy),
ATTRS(NoUnwind, ReadNone))
// MetadataResponse swift_getInPlaceMetadata(MetadataRequest request,
// TypeContextDescriptor *type);
FUNCTION(GetInPlaceMetadata, swift_getInPlaceMetadata, SwiftCC,
// MetadataResponse swift_getSingletonMetadata(MetadataRequest request,
// TypeContextDescriptor *type);
FUNCTION(GetSingletonMetadata, swift_getSingletonMetadata, SwiftCC,
RETURNS(TypeMetadataResponseTy),
ARGS(SizeTy, TypeContextDescriptorPtrTy),
ATTRS(NoUnwind, ReadNone))
@@ -670,19 +612,19 @@ FUNCTION(GetGenericMetadata, swift_getGenericMetadata, SwiftCC,
// Metadata *swift_allocateGenericClassMetadata(ClassDescriptor *type,
// const void * const *arguments,
// const void * const *template);
// const void *template);
FUNCTION(AllocateGenericClassMetadata, swift_allocateGenericClassMetadata,
C_CC, RETURNS(TypeMetadataPtrTy),
ARGS(TypeContextDescriptorPtrTy, Int8PtrPtrTy, Int8PtrPtrTy),
ARGS(TypeContextDescriptorPtrTy, Int8PtrPtrTy, Int8PtrTy),
ATTRS(NoUnwind))
// Metadata *swift_allocateGenericValueMetadata(ValueTypeDescriptor *type,
// const void * const *arguments,
// const void * const *template,
// const void *template,
// size_t extraSize);
FUNCTION(AllocateGenericValueMetadata, swift_allocateGenericValueMetadata,
C_CC, RETURNS(TypeMetadataPtrTy),
ARGS(TypeContextDescriptorPtrTy, Int8PtrPtrTy, Int8PtrPtrTy, SizeTy),
ARGS(TypeContextDescriptorPtrTy, Int8PtrPtrTy, Int8PtrTy, SizeTy),
ATTRS(NoUnwind))
// MetadataResponse swift_checkMetadataState(MetadataRequest request,
@@ -809,12 +751,11 @@ FUNCTION(GetExistentialMetadata,
ATTRS(NoUnwind, ReadOnly))
// Metadata *swift_relocateClassMetadata(TypeContextDescriptor *descriptor,
// Metadata *pattern,
// size_t patternSize);
// const void *pattern);
FUNCTION(RelocateClassMetadata,
swift_relocateClassMetadata, C_CC,
RETURNS(TypeMetadataPtrTy),
ARGS(TypeContextDescriptorPtrTy, TypeMetadataPtrTy, SizeTy),
ARGS(TypeContextDescriptorPtrTy, Int8PtrTy),
ATTRS(NoUnwind))
// struct FieldInfo { size_t Size; size_t AlignMask; };