[LLVMdev] linux/x86-64 codegen support

Török Edwin edwintorok at gmail.com
Sat Feb 16 14:47:41 PST 2008


Andrew Lenharth wrote:
> See the bug for a reduction and the gimple trees.  validate_arglist
> definately is rejecting the arglist in EmitBuiltinAlloca.
>
> (try:
> bool TreeToLLVM::EmitBuiltinAlloca(tree exp, Value *&Result) {
>   tree arglist = TREE_OPERAND(exp, 1);
>   if (!validate_arglist(arglist, INTEGER_TYPE, VOID_TYPE)) {
>     debug_tree(arglist);
>     return false;
>   }
>   Value *Amt = Emit(TREE_VALUE(arglist), 0);
>   Amt = CastToSIntType(Amt, Type::Int32Ty);
>   Result = Builder.CreateAlloca(Type::Int8Ty, Amt, "tmp");
>   return true;
> }
> for a pretty (?) print of the tree at that point)
>
>   

Thanks, I am seeing a similar tree too. (with an extra pointertype
instead of void).

Best regards,
--Edwin



More information about the llvm-dev mailing list