[Lldb-commits] [PATCH] D13073: Add an expression parser for Go

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 16:10:09 PDT 2015


clayborg added a comment.

I see you moved the JIT code over into ClangUserExpression. I was wondering if all languages might not want to generate llvm IR and then let the JIT make code from the llvm IR? This is the reason were originally left the IR in the UserExpression. IR is very generic and can be applied to just about anything. Any interest in using llvm IR for the Go expression parser? I am assuming you have made a expression tree that you evaluate. This would be very similar to what we do. When we evaluate an expression currently we generate the llvm IR and then we say "that is easy to emulate (just a bunch of loads and stores), so we don't actually need to JIT it up, we can just emulate the IR. If it is too complex, we pass this along to the JIT and let it generate code for us.


Repository:
  rL LLVM

http://reviews.llvm.org/D13073





More information about the lldb-commits mailing list