[LLVMdev] More Encoding Ideas

Chris Lattner sabre at nondot.org
Mon Aug 23 23:36:44 PDT 2004


On Mon, 23 Aug 2004, Reid Spencer wrote:
> > If all pointer types are implied, not a problem to create them.  However,
> > in larger files it may cost a little due to slightly larger type
> > numbers.  I'm not sure about the tradeoff here, but I expect that implied
> > pointers would still save more just because of pointers to function types.
>
> Pointers are used heavily in almost all languages. I can almost
> guarantee that the "tradeoff" would be larger bytecode files. The use of
> pointers to function types is not all that frequent so I wouldn't expect

Note that every LLVM function involves creating a pointer to function, so
it might be a good idea to implicitly encode pointers for every function
type (there is no other way to use a function type in any case).  If you
guys are microoptimizing the bc format, this is an idea.  *shrug*

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list