Update to v0.3.0 of llir/llvm. #27
Merged
+117
−28,977
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There were two main changes of llir/llvm that required updates in Geode,
namely:
Type check NewStore operands llir/llvm#72.
a elemType argument in preparation for opaque pointer types of the
official LLVM project (see proposal: API change, add
elemType
parameter togetelementptr
constructors llir/llvm#112).To resolve 1), an Equal method was added to StructType and SliceType of
gtypes.
To resolve 2) the element type was passed as the first argument to
NewLoad, NewStore and NewGetElementPtr.
Note, we've definitely noticed that working with user-defined types is
difficult and does not work well with the extensive type-switching used
in llir/llvm. The user-defined types (structs with names and slices) of
Geode have been very helpful to get a better understanding of this
limitation of llir/llvm. This has been outlined in llir/llvm#59 (comment)
and we hope to get a better design for sumtypes to allow user-defined
types, values, constants, instructions, etc.
One step at the time :)
I'm still very happy that you started the Geode project Nick as I've
learnt a lot from it and continue to learn more.
Wish you all the best and a most lovely start of the new year.
Cheers,
Robin