Skip to content

Commit 0fa0d43

Browse files
committed
Add support for AtomicCmpExchange128 intrinsic
1 parent b9ea4cb commit 0fa0d43

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Support for `AtomicCmpExchange128` intrinsic.
13+
1014
### Fixed
1115

1216
- The `IsManagedType` intrinsic would only accept type references - it now accepts values.

delphi-frontend/src/main/java/au/com/integradev/delphi/type/intrinsic/IntrinsicsInjector.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ private void buildRoutines() {
120120
.outParam(type(BOOLEAN))
121121
.required(3)
122122
.returns(typeFactory.untypedPointer());
123+
routine("AtomicCmpExchange128")
124+
.varParam(TypeFactory.untypedType())
125+
.param(type(INT64))
126+
.param(type(INT64))
127+
.varParam(TypeFactory.untypedType())
128+
.required(4)
129+
.returns(type(BOOLEAN));
123130
routine("AtomicDecrement")
124131
.varParam(TypeFactory.untypedType())
125132
.param(TypeFactory.untypedType())

0 commit comments

Comments
 (0)