From 804910136c6aafbac0946477ca5515f6de8e3b9b Mon Sep 17 00:00:00 2001 From: James Moschou Date: Mon, 11 May 2026 15:42:01 +0200 Subject: [PATCH 1/7] Update bundle version to 0.2.0 --- Compute.xcodeproj/project.pbxproj | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Compute.xcodeproj/project.pbxproj b/Compute.xcodeproj/project.pbxproj index 46ea079..a9c890b 100644 --- a/Compute.xcodeproj/project.pbxproj +++ b/Compute.xcodeproj/project.pbxproj @@ -304,7 +304,7 @@ ); LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 26.0; - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 0.2.0; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; @@ -327,9 +327,9 @@ SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; SWIFT_VERSION = 6.0; SYSTEM_HEADER_SEARCH_PATHS = ( - Submodules/swift-runtime-headers/include, - Submodules/swift-runtime-headers/stdlib/include, - Submodules/swift-runtime-headers/stdlib/public/SwiftShims, + "Submodules/swift-runtime-headers/include", + "Submodules/swift-runtime-headers/stdlib/include", + "Submodules/swift-runtime-headers/stdlib/public/SwiftShims", ); TARGETED_DEVICE_FAMILY = "1,2,7"; USER_HEADER_SEARCH_PATHS = ( @@ -416,7 +416,7 @@ ); LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 26.0; - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 0.2.0; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; MTL_ENABLE_DEBUG_INFO = NO; @@ -437,9 +437,9 @@ SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; SWIFT_VERSION = 6.0; SYSTEM_HEADER_SEARCH_PATHS = ( - Submodules/swift-runtime-headers/include, - Submodules/swift-runtime-headers/stdlib/include, - Submodules/swift-runtime-headers/stdlib/public/SwiftShims, + "Submodules/swift-runtime-headers/include", + "Submodules/swift-runtime-headers/stdlib/include", + "Submodules/swift-runtime-headers/stdlib/public/SwiftShims", ); TARGETED_DEVICE_FAMILY = "1,2,7"; USER_HEADER_SEARCH_PATHS = ( From 84ee7b2e0f69768dc8b38599de47f04fc420c62c Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 29 May 2026 16:19:41 +0200 Subject: [PATCH 2/7] Fix resolution of indirect node not setting resolved offset correctly --- .../ComputeCxx/Attribute/AttributeData/Node/IndirectNode.cpp | 4 ++-- .../ComputeCxx/Attribute/AttributeData/Node/IndirectNode.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.cpp b/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.cpp index 24ebb26..515f6c7 100644 --- a/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.cpp +++ b/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.cpp @@ -14,9 +14,9 @@ const MutableIndirectNode &IndirectNode::to_mutable() const { return static_cast(*this); } -void IndirectNode::modify(WeakAttributeID source, size_t size) { +void IndirectNode::modify(WeakAttributeID source, size_t offset) { _source = source; - _size = size; + _offset = offset; } } // namespace AG diff --git a/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.h b/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.h index bde7adc..44fdfde 100644 --- a/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.h +++ b/Sources/ComputeCxx/Attribute/AttributeData/Node/IndirectNode.h @@ -63,7 +63,7 @@ class IndirectNode { const RelativeAttributeID next_attribute() const { return _next_attribute; } void set_next_attribute(RelativeAttributeID next_attribute) { _next_attribute = next_attribute; } - void modify(WeakAttributeID source, size_t size); + void modify(WeakAttributeID source, size_t offset); }; class MutableIndirectNode : public IndirectNode { From 9486e9d8eaa827a4d55ced3c4bdae8f04cba9ef9 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 29 May 2026 16:20:58 +0200 Subject: [PATCH 3/7] Include all frames if AGDescriptionMaxFrames is not defined --- Sources/ComputeCxx/Graph/Graph.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ComputeCxx/Graph/Graph.mm b/Sources/ComputeCxx/Graph/Graph.mm index 84bd15a..7453e8a 100644 --- a/Sources/ComputeCxx/Graph/Graph.mm +++ b/Sources/ComputeCxx/Graph/Graph.mm @@ -921,7 +921,7 @@ int trap_cycles() { } frame_count += 1; - if (frame_count >= max_frames) { + if (max_frames >= 0 && frame_count >= max_frames) { return description; } } @@ -942,7 +942,7 @@ int trap_cycles() { [nodes addObject:[NSNumber numberWithUnsignedInt:frame.attribute.offset()]]; frame_count += 1; - if (frame_count >= max_frames) { + if (max_frames >= 0 && frame_count >= max_frames) { return nodes; } } From 8d3be2bb6561fae2443531cbe6aa044029abe1cb Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 29 May 2026 16:21:22 +0200 Subject: [PATCH 4/7] Update some Swift refinements --- Sources/Compute/Graph/TreeElement.swift | 1 + Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Compute/Graph/TreeElement.swift b/Sources/Compute/Graph/TreeElement.swift index ecd1efb..4868a23 100644 --- a/Sources/Compute/Graph/TreeElement.swift +++ b/Sources/Compute/Graph/TreeElement.swift @@ -12,6 +12,7 @@ extension TreeElement { extension Nodes: @retroactive IteratorProtocol { public typealias Element = AnyAttribute + @inlinable public mutating func next() -> AnyAttribute? { let result = __AGTreeElementGetNextNode(&self) return result == .nil ? nil : result diff --git a/Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h b/Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h index 9aa9fe6..ae86144 100644 --- a/Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h +++ b/Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h @@ -166,7 +166,7 @@ void AGSubgraphEndTreeElement(AGAttribute value); AG_EXPORT AG_REFINED_FOR_SWIFT void AGSubgraphSetTreeOwner(AGSubgraphRef subgraph, AGAttribute owner) - AG_SWIFT_NAME(setter:AGSubgraphRef.treeOwner(self:_:)); + AG_SWIFT_NAME(AGSubgraphRef.setTreeOwner(self:_:)); AG_EXPORT AG_REFINED_FOR_SWIFT From 597fd3b6ab4a0774773daebac800cbff5890ea41 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 29 May 2026 16:22:13 +0200 Subject: [PATCH 5/7] Lower minimum platform version for macOS to v15 --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 84fba68..bcac032 100644 --- a/Package.swift +++ b/Package.swift @@ -11,7 +11,7 @@ var dependencies: [Package.Dependency] = [ let package = Package( name: "Compute", - platforms: [.macOS(.v26)], + platforms: [.macOS(.v15)], products: [ .library(name: "Compute", targets: ["Compute"]), .library(name: "_ComputeTestSupport", targets: ["_ComputeTestSupport"]), From 1f988f79882e4663d2a875137f04b3352ddd9585 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 29 May 2026 16:30:59 +0200 Subject: [PATCH 6/7] Lower minimum deployment target for xcframework --- Compute.xcodeproj/project.pbxproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Compute.xcodeproj/project.pbxproj b/Compute.xcodeproj/project.pbxproj index a9c890b..711a7bd 100644 --- a/Compute.xcodeproj/project.pbxproj +++ b/Compute.xcodeproj/project.pbxproj @@ -293,7 +293,7 @@ ); INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 26.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "@executable_path/Frameworks", "@loader_path/Frameworks", @@ -303,7 +303,7 @@ "@loader_path/Frameworks", ); LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 26.0; + MACOSX_DEPLOYMENT_TARGET = 15.6; MARKETING_VERSION = 0.2.0; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; @@ -339,7 +339,7 @@ USE_HEADERMAP = NO; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; - XROS_DEPLOYMENT_TARGET = 26.0; + XROS_DEPLOYMENT_TARGET = 1.3; }; name = Debug; }; @@ -405,7 +405,7 @@ ); INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 26.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "@executable_path/Frameworks", "@loader_path/Frameworks", @@ -415,7 +415,7 @@ "@loader_path/Frameworks", ); LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 26.0; + MACOSX_DEPLOYMENT_TARGET = 15.6; MARKETING_VERSION = 0.2.0; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; @@ -449,7 +449,7 @@ USE_HEADERMAP = NO; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; - XROS_DEPLOYMENT_TARGET = 26.0; + XROS_DEPLOYMENT_TARGET = 1.3; }; name = Release; }; From e826edbc06a5fae293d3bdc14d1b7c7675652a04 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 29 May 2026 16:31:27 +0200 Subject: [PATCH 7/7] Update bundle version to 0.2.1 --- Compute.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Compute.xcodeproj/project.pbxproj b/Compute.xcodeproj/project.pbxproj index 711a7bd..bb0875a 100644 --- a/Compute.xcodeproj/project.pbxproj +++ b/Compute.xcodeproj/project.pbxproj @@ -304,7 +304,7 @@ ); LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 15.6; - MARKETING_VERSION = 0.2.0; + MARKETING_VERSION = 0.2.1; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; @@ -416,7 +416,7 @@ ); LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 15.6; - MARKETING_VERSION = 0.2.0; + MARKETING_VERSION = 0.2.1; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; MTL_ENABLE_DEBUG_INFO = NO;