Displaying 5 results from an estimated 5 matches for "structbuilder".
2011 Feb 03
2
[LLVMdev] Convenience methods in ConstantExpr et al
...rough IRBuilder - hundreds of times in my frontend. My language generates a
> lot of static data - reflection information, trace tables for the garbage
> collector, dispatch tables, runtime annotations, static object instances, and so
> on. (In fact there's a special helper class "StructBuilder" that automates a lot
> of the work of building constant structs, such as adding the standard object
> header and so on.)
I think it would be better to create a ConstBuilder class rather than add stuff
to ConstantExpr.
Ciao, Duncan.
2011 Feb 03
0
[LLVMdev] Convenience methods in ConstantExpr et al
...ithout going
through IRBuilder - hundreds of times in my frontend. My language generates
a lot of static data - reflection information, trace tables for the garbage
collector, dispatch tables, runtime annotations, static object instances,
and so on. (In fact there's a special helper class "StructBuilder" that
automates a lot of the work of building constant structs, such as adding the
standard object header and so on.)
I guess what I'm asking is, would there be any *resistance* to adding
additional static members to ConstantExpr to make it more convenient to do
constant GEPs?
>
>...
2011 Feb 04
0
[LLVMdev] ConstantBuilder proposal
If you remove all the 'static's from the member functions, it'd work
more like IRBuilder.
It would also allow you to take the LLVMContext& as a constructor
parameter, so that methods like this:
On Fri, Feb 4, 2011 at 6:57 PM, Talin <viridia at gmail.com> wrote:
> /// GetStruct - return a constant struct given a context and a vector
> /// of elements.
> static
2011 Feb 02
2
[LLVMdev] Convenience methods in ConstantExpr et al
Talin wrote:
> On Mon, Jan 31, 2011 at 10:57 PM, Talin <viridia at gmail.com
> <mailto:viridia at gmail.com>> wrote:
>
> I notice that there's a lot of inconsistency in the various LLVM
> classes with respect to convenience methods. Here's some examples:
>
> For creating GEPS, IRBuilder has:
>
> CreateGEP (2 overloads)
>
2011 Feb 04
3
[LLVMdev] ConstantBuilder proposal
Here's a sketch of what I am proposing for ConstantBuilder.
I'd like feedback on naming conventions, doc comments, etc.
//===-- llvm/Support/ConstantBuilder.h - Builder for Constants --*- C++
-*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//