search for: genericfunc

Displaying 2 results from an estimated 2 matches for "genericfunc".

2007 Jun 17
1
[LLVMdev] Partial evaluation and LLVM (2) (Chris Lattner)
...class that use the value of >> some of the object instance fields? Or does the function to >> specialize has to be closed in some way? > > Yes. > > The solution I've found is to use llvm global variables. Consider: > > > extern int specializevar; > > void genericfunc() { > if (specializevar == 42) > blah(); > } > > The steps become: > > 1. Clone genericfunc (specializing based on arguments if you like). > 2. Give specializevar an initializer for the value you want to > specialize > on. Mark it constant. > 3. Run instc...
2007 Jun 15
1
[LLVMdev] Partial evaluation and LLVM (2)
> > Message: 3 > Date: Tue, 12 Jun 2007 10:42:50 -0700 (PDT) > From: Chris Lattner <sabre at nondot.org> > Subject: Re: [LLVMdev] Partial evaluation and LLVM > To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> > Message-ID: <Pine.LNX.4.62.0706121039530.30413 at nondot.org> > Content-Type: text/plain; charset="iso-8859-1" > > On Tue,