[LLVMdev] Question on LLVM based query execution

陳韋任 chenwj at iis.sinica.edu.tw
Fri Feb 3 01:21:38 PST 2012


Hi Chang,

> I am developing a Hadoop native runtime, it has C++ APIs and libraries,
> what I want to do is to compile Hive's logical query plan directly to LLVM
> IR or translate Hive's physical query plan to LLVM IR, then run on the
> Hadoop native runtime. As far as I know, Google's tenzing does similar
> things, and a few research papers mention this technique, but they don't
> give details.
> Does translate physical query plan directly to LLVM IR reasonable, or
> better using some part of clang library?
> I need some advice to go on, like where can I find similar projects or
> examples, or which part of code to start to read?

  I don't know how those query language looks like. If the query language
will turn into some kind of intermediate representation during the execution
(like how compiler does), then you might need to find what representation
is easier to be transformed into LLVM IR. Clang is for C-like language. I
am not sure if Clang's library can help you or not.

HTH,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list