[PATCH] D142364: [LLVM][TableGen] Notebook describing how to write a Python backend
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 07:32:05 PST 2023
DavidSpickett added a reviewer: myhsu.
DavidSpickett added a subscriber: myhsu.
DavidSpickett added a comment.
I should note that this does not require the tablegen kernel, it's the default iPython kernel. You will need to tell it how to find `llvm-tblgen` though.
@myhsu This is what we talked about over email last year.
There is a licensing issue I need you to clarify if you are ok with. Your C++ work is Apache 2.0 and this would be a derivative work of that, licensed the same. Which is a bit awkward to do here, perhaps it would be enough to include a copy of the license at the start of the tutorial, I'd have to check with an expert.
Alternatively, if you are the sole author (and therefore copyright holder) of SQLGen (which is my understanding) you could give me permission to contribute this to llvm. Where it would be under Apache 2.0 with llvm exceptions and the legacy license (as described here https://llvm.org/docs/DeveloperPolicy.html#relicensing).
That probably sounds like a small concern, but I want to do the right thing here. If you have any reservations about that, I will make my own example backend and base the tutorial on that instead, no problem.
================
Comment at: llvm/utils/TableGen/jupyter/sql_query_backend.ipynb:99
----------------
Note that in Jupyter, this giant output collapses into a smaller panel with scroll bars. So folks can come back to it if they want detail, if not just carry on reading past it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142364/new/
https://reviews.llvm.org/D142364
More information about the llvm-commits
mailing list