Skip to content

Allow llvm16 #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4,032 commits into
base: main
Choose a base branch
from
Draft

Allow llvm16 #736

wants to merge 4,032 commits into from

Conversation

mbouaziz
Copy link
Contributor

@mbouaziz mbouaziz commented Feb 6, 2025

Part of my work towards #734

I probably won't go further for the time being.

Before merging, I want to:

  • push docker images with LLVM 16 and skiplang built with it
  • check all CI jobs are still green

skiplabsdaniel and others added 30 commits January 14, 2025 11:36
Changes the function signature to take an object of optional parameters so
that they can be passed independently.

closes #631
Changes the function signature to take an object of optional parameters
so
that they can be passed independently.

closes #631
WebAssembly.instantiate like it as much as Uint8Array
Saves a conversion
simplifies code
With initial docs on code formatting and git pre-commit hook.
With initial docs on code formatting and git pre-commit hook.
bennostein and others added 20 commits February 5, 2025 16:04
Some basic package READMEs. which will then render in the browser on
npmjs.com for our packages.

close #712
This takes all of our Skip runtime packages to 0.0.10, increments all of
our core `@skip-wasm/*` and `@skiplang/*` packages (some of which are
already at 1.0.x, and none of which users will install, so I left out of
the everything-to-0.0.10 edict), and stops versioning the test
package.json.
IIUC these attributes are known by LLVM anyway so there are no consequences
in not specifying them.

The reason for this change is that `argmemonly` is now replaced by `memory(argmem: readwrite)` and `readnone` by `memory(none)`
Result of
```
make -C skiplang/compiler clean
make -C skiplang/compiler STAGE=1 promote
```
@beauby
Copy link
Contributor

beauby commented Feb 6, 2025

Nice. If we start supporting several versions of LLVM, we should have CI jobs for the compiler tests using each supported (major) version.

@mbouaziz
Copy link
Contributor Author

mbouaziz commented Feb 6, 2025

We probably don't want to have the burden of maintaining compatibility with several versions, either they are 99% compatible and we only have to worry when someone enters the 1% edge case, or we have to stick to one.

The CI's not happy so I'll probably give up until it becomes a higher priority issue

@jberdine
Copy link
Contributor

jberdine commented Feb 6, 2025

The skipruntime test is flaky, rerunning it passed.

@bennostein
Copy link
Contributor

The skipruntime test is flaky, rerunning it passed.

I suspect a race like the one Lucas hit -- working on some fixes to make them more robust to timing variability.

@mbouaziz
Copy link
Contributor Author

Shall we merge this? (without the last commit) considering LLVM 15 and 16 seem compatible enough for our use cases.

Or do you think we should allow only one version?

@@ -12,7 +12,7 @@ commands:
jobs:
fast-checks:
docker:
- image: skiplabs/skip:latest
- image: skiplabs/skip:llvm16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to tag docker images by llvm version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't plan on officially supporting and/or using more than one version, probably not.
Here it was just for testing

@@ -177,15 +177,17 @@ fun runShell(args: Array<String>, verbose: Bool = false): void {
}

fun ensureCompatibleLLVMVersion(): void {
kLLVMVersion = "15.";
kAllowedLLVMVersions = Array["15.", "16."];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to allow multiple versions? If so, we should clarify support expectations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's clearly the goal of this PR and I updated the doc accordingly.
Though, I agree I forgot to mention that we are (still) testing on LLVM 15 only.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to make sure that if external users try to use a version different from what we are testing, it fails, right?

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.

8 participants