build(deps): bump github.com/llir/llvm from 0.3.0 to 0.3.1#171
build(deps): bump github.com/llir/llvm from 0.3.0 to 0.3.1#171dependabot-preview[bot] wants to merge 1 commit into
Conversation
Bumps [github.com/llir/llvm](https://github.com/llir/llvm) from 0.3.0 to 0.3.1. - [Release notes](https://github.com/llir/llvm/releases) - [Changelog](https://github.com/llir/llvm/blob/master/HISTORY.md) - [Commits](llir/llvm@v0.3.0...v0.3.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
9dbfee2 to
b8adbf6
Compare
|
Hi Gustav! I tried to have a look at the reason for the CI failure, but it seems you need to sign in to CircleCI view the log. In either case, the v0.3.1 release of llir/llvm should not have any breaking API changes, so if you find any breakage related to the latest release, I'd be curious to learn. Ha en fin sommar! :) Cheers, Edit: I noticed that Edit2: The story continues to unfold. @dannypsnl and I are currently discussing what parts of the API should really belong in the core |
|
Hey! The error seems to come from how functions without a body are generated. tre is calling out to printf, and is generating the function definition like so: setExternal := func(internalName string, fn *ir.Func, variadic bool) value.Value {
fn.Sig.Variadic = variadic
val := value.Value{
Type: &types.Function{
LlvmReturnType: types.Void,
FuncType: fn.Type(),
IsExternal: true,
},
Value: fn,
}
external.DefinePkgVar(internalName, val)
return val
}
c.externalFuncs.Printf = setExternal("Printf", c.module.NewFunc("printf",
i32.LLVM(),
ir.NewParam("", llvmTypes.NewPointer(i8.LLVM())),
), true)The expected output is declare i32 @printf(i8*, ...)But with 0.3.1 the following is generated, which causes Clang to error out declare i32 @printf(i8* %0, ...) |
|
I've added some test-runners with Clang 10, let's see if this version is working there. @dependabot rebase |
|
Superseded by #175. |
|
Everything works nicely against LLVM 10, but not 9 or 8. This project doesn't really have a policy for which LLVM versions that should be supported, so for me it's fine to only support a single version, but I'd imagine that this isn't what you where expecting when introducing LLVM 10 features to llir/llvm. |
The intention of Improvements to |
Thanks for testing this @zegl. Glad to see it working with Clang 10.0. As mentioned above, the master branch (and latest release) of |
Bumps github.com/llir/llvm from 0.3.0 to 0.3.1.
Changelog
Sourced from github.com/llir/llvm's changelog.
Commits
6e91213history: add v0.3.1 release notese0fa62bllvm: rungo get -u ./...to update dependenciesae564fcllvm: rungo mod tidy4e94e66readme: add map between llir/llvm versions and and LLVM release versionsd26e37fCI: fix (#144)116ce41CI: switch to GitHub Action (#142)6a9fa5e(#128) new calling conventions (#140)c4cdd68testdata: update to latest commitf22b4baall: enable test cases of Coreutils and SQLite; updated using Clang 10.00c8dd50(#128) parameter attribute: nofree (#138)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readmeAdditionally, you can set the following in your Dependabot dashboard: