-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Drop support for LLVM < 8 #12906
Drop support for LLVM < 8 #12906
Conversation
A big chunk of LLVM version checks in the standard library that call |
Oh, I completely missed those. 🤦♂️ |
{% else %} | ||
fun create_type_attribute = LLVMCreateTypeAttribute(ctx : LibLLVM::ContextRef, kind_id : LibC::UInt, ty : LibLLVM::TypeRef) : LibLLVM::AttributeRef |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go into LibLLVM
, not here. Same for the LLVMDIBuilder*
functions above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But in libllvm it's only defined in version >= 13. So we'd have to switch at the callsite. IMO it's easier this way, switching the bindings. Even though it's a bit sloppy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the DIBuilder functions still use LibLLVMExt::DIBuilder
type, hence I opted to leave the bindings here where all the other DIBuilder functions are defined as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we make this for LLVM < 9 there will be some nice cleanups on fiber/context !
Resolves #8725
Closes #11403