User Details
- User Since
- Jan 15 2015, 10:28 PM (454 w, 1 d)
Apr 23 2022
Add inline docs for the newly added functions in the .mli file.
@krzysz00 A few months back, I had attempted a generic value-range analysis in MLIR (see https://github.com/vaivaswatha/llvm-project/pull/1). While I had (privately) requested for initial design feedback from @rriddle , I couldn't get around to post an official patch on it.
Apr 17 2022
Feb 11 2022
This change looks fine to me.
Jan 5 2022
Jan 4 2022
@rriddle I've added the debug statement I had locally. If this looks fine to you, I'll go ahead and push the change.
Incorporating review comments.
Dec 29 2021
Apr 3 2021
Mar 31 2021
Mar 29 2021
Similar to my comment in https://reviews.llvm.org/D99472, I don't understand this a 100%, but it seems sane to me.
As far as I can see, this looks fine, but I'm far from an expert on OCaml internals. It would be greatly useful if someone else who understands OCaml internals can take a look, but I don't know if it's easy finding such a reviewer here. So if you're confident and the code has been tested well on your end, I suppose it's okay to commit this.
This fixes a potentially hard-to-discover bug ! The last thing that a user of the OCaml API would think of is "oh this function uses Store_field to initialize fields of blocks allocated with caml_alloc_small and that could lead to a hard to trace GC bug".
Mar 28 2021
Mar 27 2021
Mar 26 2021
Option seems to not work on the buildbot machines. So I ended up replacing that with a match
Remove #include <stdio.h> that was inadvertently added.
Mar 25 2021
Mar 20 2021
Mar 19 2021
Mar 18 2021
Whitespace changes
Use mlsize_t for cstr_to_string as suggested in the review.
Mar 16 2021
@jberdine: after commit, I found this failure emailed to me llvm_ocaml.c:function cstr_to_string: error: undefined reference to 'caml_alloc_initialized_string'. Do you happen to know how I can fix it, because it works on my Ubuntu 20.04 system. What OS do you have? (because you reported that it worked too). A link to one of the build fails I got over email: https://lab.llvm.org/buildbot/#/builders/16/builds/7919
Thank you @jberdine for the detailed review and helping through this patch. Shall I commit it?
I've updated the patch addressing some of your comments. In particular, I didn't add a reference to the C-API to the functions where I had already provided the explanations inline (and the C-API comment doesn't add more value).
Add missing fullstop.
Link to Phabricator page that mentions the same topic.
Mar 15 2021
Fix clang-tidy warning on header guard name convention.
@jberdine: I have now updated the patch with documentation for the newly added APIs, inline. Further:
Thank you very much @jberdine . I've incorporated all of your suggestions with this latest diff. I haven't yet added the documentation and will do that by tomorrow. Please have a final look at the latest changes so that with my update tomorrow it should only be comments over each function and (hopefully) no code changes.
The types that we'll need to model include, at least the following:
Address all but one review comment.
@jberdine I have addressed all your comments, except for the one on stricter type aliases for Metadata.
Mar 14 2021
Thank you very much @jberdine for the review, especially for the ready to incorporate changes in your fork (which I just cherry-picked).
Mar 13 2021
Nov 23 2020
Nov 15 2020
It's been more than a week, so a gentile reminder ping !
Nov 5 2020
@jberdine just pinged me about his earlier attempt to do this, here's a reference: https://reviews.llvm.org/D60902.
Mention both CMAKE_INSTALL_PREFIX and LLVM_OCAML_INSTALL_PATH in the OCaml bindings README
Jan 25 2017
This is already fixed on trunk.
May 19 2016
Apr 26 2016
Updating based on review comments
Updating based on review comments.
Apr 18 2016
Updating based on review comments
Apr 16 2016
Updating based on review comments
Apr 13 2016
[Cloning] Add assert to ensure no sub-loops for loop being cloned. Also rename
function to reflect its inability to clone sub-loops. (It can clone sub-loops,
but does not correctly update LoopInfo).
Apr 11 2016
Hey sorry I'd forgotten about this patch. I'll work on it and resubmit in a day or two.
Feb 15 2016
@joker.eph Thank you for the comments. I'll be happy to work on them (and take the patch to a good state for committing). However at the moment I'm looking for a broader approval that the code would be useful to the community and it would get in after its taken to a good state. I don't want to spend a lot of time reworking it and finally finding it to be not-useful and it not going in.
Feb 9 2016
Jan 14 2016
Thanks James for the review. Also you thank you for suggesting the original patch.