Skip to content
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

Upgrade to LLVM 15.0 #204

Open
geoff-m opened this issue Dec 5, 2022 · 4 comments
Open

Upgrade to LLVM 15.0 #204

geoff-m opened this issue Dec 5, 2022 · 4 comments

Comments

@geoff-m
Copy link

geoff-m commented Dec 5, 2022

At time of writing, the latest LLVM version is 15.0.6. The current libLLVM implementation uses opaque pointers but LLVMSharp doesn't support them. A workaround of sorts is to turn off opaque pointers:

[DllImport("libLLVM", EntryPoint = "LLVMContextSetOpaquePointers", CallingConvention = CallingConvention.Cdecl)]
public static extern LLVMContextRef LLVMContextSetOpaquePointers(LLVMContextRef C, LLVMBool OpaquePointers);

LLVMContextSetOpaquePointers(myContext, false);
@geoff-m
Copy link
Author

geoff-m commented Dec 5, 2022

After I made this issue, I found @tannergooding already started work: https://github.com/dotnet/LLVMSharp/releases/tag/v15.0.0-beta1

@yowl
Copy link
Contributor

yowl commented Dec 22, 2022

Are there any nuget packages for v15 ?
Ignore that, I was using feeds from https://pkgs.dev.azure.com/dnceng/public/ only

@yowl
Copy link
Contributor

yowl commented Dec 22, 2022

Can opaque pointers be used in LLVM sharp v15, I can't see how to get the type from the context/addr. space?

@geoff-m
Copy link
Author

geoff-m commented Dec 23, 2022

I am not an authority on it, but I believe the way to get an opaque pointer type is to create any pointer type as usual (while opaque pointers are enabled).

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

No branches or pull requests

2 participants