Skip to content

Commit 2c1bd08

Browse files
cirrasfourls
authored andcommitted
Add support for AtomicCmpExchange128 intrinsic
1 parent 79dded2 commit 2c1bd08

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

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

1010
### Added
1111

12+
- Support for the `AtomicCmpExchange128` intrinsic routine.
1213
- **API:** `TypeParameterNode::getTypeParameters` method.
1314
- **API:** `InterfaceTypeNode::getGuidExpression` method.
1415
- **API:** `AttributeNode::getExpression` method.

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)