Skip to content

Commit 400136f

Browse files
committed
merged
1 parent bad1993 commit 400136f

File tree

9 files changed

+299
-113
lines changed

9 files changed

+299
-113
lines changed

.github/workflows/selection.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Selection changes reminder
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
paths:
7+
- 'backend/selectgen.ml'
8+
- 'backend/arm64/selection.ml'
9+
- 'backend/amd64/selection.ml'
10+
11+
jobs:
12+
remind:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
16+
steps:
17+
- name: Create PR Comment
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
REPO=${{ github.repository }}
22+
PR_NUMBER=${{ github.event.pull_request.number }}
23+
COMMENT="## Selection Change Check
24+
25+
This PR modifies the original selection pass (targeting Mach).
26+
Please check whether the changes should also be applied to the
27+
CFG variant of the pass."
28+
29+
# Check if comment already exists
30+
if ! gh pr view $PR_NUMBER --json comments -q '.comments[].body' --repo $REPO | grep -q "Selection Change Check"; then
31+
gh pr comment $PR_NUMBER --body "$COMMENT" --repo $REPO
32+
echo "Comment added successfully."
33+
else
34+
echo "Comment already exists. Skipping."
35+
fi

lambda/lambda.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,9 +2224,9 @@ let primitive_result_layout (p : primitive) =
22242224
| Paddfloat (f, _) | Psubfloat (f, _) | Pmulfloat (f, _) | Pdivfloat (f, _)
22252225
| Pbox_float (f, _) -> layout_boxed_float f
22262226
| Pufloatfield _ -> Punboxed_float Unboxed_float64
2227-
| Punbox_float f -> layout_unboxed_float (Primitive.unbox_float f)
2227+
| Punbox_float f -> layout_unboxed_float (Primitive.unboxed_float f)
22282228
| Pbox_vector (v, _) -> layout_boxed_vector v
2229-
| Punbox_vector v -> layout_unboxed_vector (Primitive.unbox_vector v)
2229+
| Punbox_vector v -> layout_unboxed_vector (Primitive.unboxed_vector v)
22302230
| Pmixedfield (_, kind, _, _) -> layout_of_mixed_field kind
22312231
| Pccall { prim_native_repr_res = _, repr_res } -> layout_of_extern_repr repr_res
22322232
| Praise _ -> layout_bottom
@@ -2257,7 +2257,7 @@ let primitive_result_layout (p : primitive) =
22572257
layout_boxed_int bi
22582258
| Ptag_int _ -> layout_int
22592259
| Puntag_int i -> layout_unboxed_int i
2260-
| Punbox_int bi -> Punboxed_int (Primitive.unbox_integer bi)
2260+
| Punbox_int bi -> Punboxed_int (Primitive.unboxed_integer bi)
22612261
| Pstring_load_32 { boxed = true; _ } | Pbytes_load_32 { boxed = true; _ }
22622262
| Pbigstring_load_32 { boxed = true; _ } ->
22632263
layout_boxed_int Boxed_int32

middle_end/flambda2/from_lambda/lambda_to_flambda_primitives.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let standard_int_or_float_of_unboxed_integer (ubint : L.unboxed_integer) :
114114
| Unboxed_int64 -> Naked_int64
115115

116116
let standard_int_or_float_of_boxed_integer bint =
117-
standard_int_or_float_of_unboxed_integer (Primitive.unbox_integer bint)
117+
standard_int_or_float_of_unboxed_integer (Primitive.unboxed_integer bint)
118118

119119
let convert_block_access_field_kind i_or_p : P.Block_access_field_kind.t =
120120
match i_or_p with L.Immediate -> Immediate | L.Pointer -> Any_value
@@ -1514,7 +1514,7 @@ let convert_lprim ~big_endian (prim : L.primitive) (args : Simple.t list list)
15141514
[ tag_int
15151515
(Binary
15161516
( convert_unboxed_integer_comparison_prim
1517-
(Primitive.unbox_integer kind)
1517+
(Primitive.unboxed_integer kind)
15181518
comp,
15191519
arg1,
15201520
arg2 )) ]

0 commit comments

Comments
 (0)