[LLVMdev] code generation order revisited.
Hendrik Boom
hendrik at topoi.pooq.com
Fri Jun 13 05:44:04 PDT 2008
On Fri, 13 Jun 2008 02:19:25 +0000, Hendrik Boom wrote:
And another question:
> : // Create the initial outer struct
> : PATypeHolder StructTy = OpaqueType::get();
> : std::vector<const Type*>
> Elts;
Is it possible to start generating parse tree for code that accesses the
fields of the structure-to-be at this point, knowing that everything will
be there by the time parse-tree generation is complete?
> : Elts.push_back(PointerType::get(StructTy));
> : Elts.push_back(Type::Int32Ty);
> : StructType *NewSTy = StructType::get(Elts);
>
...
More information about the llvm-dev
mailing list