Skip to content

Support for Locales, On and array init comprehension#6

Merged
SAtacker merged 4 commits intoSTEllAR-GROUP:mainfrom
SAtacker:dev
Sep 14, 2025
Merged

Support for Locales, On and array init comprehension#6
SAtacker merged 4 commits intoSTEllAR-GROUP:mainfrom
SAtacker:dev

Conversation

@SAtacker
Copy link
Collaborator

No description provided.

SAtacker and others added 4 commits July 11, 2025 17:46
This patch adds support for Chapel’s “array init with for-loop” syntax, e.g.:

  var arr: [0..2] int = for i in 0..2 do i+1;

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
Added additional tests to check the same

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
* Add support for writeln function

- Also fix string literals being injected into last function call

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Add numLocale support

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Complete adding here.id

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Complete numLocales and Locales array of type locale

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Fix index comparison for array kind

- Use programatic index instead of predefined index of variant type
as it was bound to change

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Cleanup: remove informal debug helpers

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Remove unused headers,functions for debugging purposes

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Remove unnecessary changes

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Fix forLoopExpression over locales

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Interpret any DOT method as a function call

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Complete On functionality

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Add a bit broken support to on

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Seems to work now

- On expression tracks the variables down up

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Modify test expected output

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Add zipped iterator for forall and fix multiple statement inside On

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Add support for chapel zip and in-loop tuple variables

Add forall support for zip unpacked

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Fix the codegen for On

- The correct condition for appending On variables is
symbolTableRef->id >= varsym->scopeId

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Fix everything for On and its scoping

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Fix generation of left << and right >> ops

Also fix some stray function assignments

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Fix adding variables to On lambda

- Correct condition: varsym->scopeId < currentOnExpr->scopeId

- Current issue: We cannot pass non-serializable objects like chplx::Array

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Prevent inlinecxx from being added to On arguments

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Add a debug console output

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Set FMT_INSTAL even for header only

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

* Minimal contributing guide

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>

---------

Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
@SAtacker SAtacker changed the title Support for Locales and On Support for Locales, On and array init comprehension Sep 13, 2025
@SAtacker SAtacker merged commit 8675d7c into STEllAR-GROUP:main Sep 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant