Hi all, I am trying to compile a high-level imperative OOP-like language to the LLVM IR. Do we have any "generic" way of translating a non-SSA form to the LLVM IR's SSA? There are lots of LLVM front-ends now. Do they do such translation individually? or there is some common non-SSA IR that we can translate to, and can be converted to the LLVM IR automatically? I did not find such things from the current LLVM code. -- Jianzhou
On Wed, Apr 20, 2011 at 2:54 PM, Jianzhou Zhao <jianzhou at seas.upenn.edu> wrote:> Hi all, > > I am trying to compile a high-level imperative OOP-like language to > the LLVM IR. Do we have any "generic" way of translating a non-SSA > form to the LLVM IR's SSA? There are lots of LLVM front-ends now. Do > they do such translation individually? or there is some common non-SSA > IR that we can translate to, and can be converted to the LLVM IR > automatically? I did not find such things from the current LLVM code.See http://llvm.org/docs/tutorial/LangImpl7.html#memory . -Eli
On Wed, Apr 20, 2011 at 6:03 PM, Eli Friedman <eli.friedman at gmail.com> wrote:> On Wed, Apr 20, 2011 at 2:54 PM, Jianzhou Zhao <jianzhou at seas.upenn.edu> wrote: >> Hi all, >> >> I am trying to compile a high-level imperative OOP-like language to >> the LLVM IR. Do we have any "generic" way of translating a non-SSA >> form to the LLVM IR's SSA? There are lots of LLVM front-ends now. Do >> they do such translation individually? or there is some common non-SSA >> IR that we can translate to, and can be converted to the LLVM IR >> automatically? I did not find such things from the current LLVM code. > > See http://llvm.org/docs/tutorial/LangImpl7.html#memory .Thanks!> > -Eli >-- Jianzhou