Displaying 11 results from an estimated 11 matches for "void_type".
Did you mean:
id_type
2012 May 28
3
[LLVMdev] Windows assertion failure
Given this small program:
> #include <llvm/DerivedTypes.h>
> #include <llvm/LLVMContext.h>
>
> using namespace llvm;
>
> int main( int argc, char const *argv[] ) {
> LLVMContext &ctx = getGlobalContext();
>
> Type *void_type( Type::getVoidTy( ctx ) );
> PointerType *void_ptr_type( void_type->getPointerTo() );
>
> return 0;
> }
When compiled using the clang binaries with MinGW32 and run, I get:
> Assertion failed: isValidElementType(EltTy) && "Invalid type for pointer element!"...
2008 Feb 16
3
[LLVMdev] linux/x86-64 codegen support
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)
Andrew
On 2/16/08, Tö...
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
...ll i8* @alloca( i64 %tmp2 ) nounwind ; <i8*>
[#uses=1]
I added some printfs around that code, running cc1 shows it never
reaches the 2nd printf:
4762│ printf("HERE!!\n");
4763│ tree arglist = TREE_OPERAND(exp, 1);
4764├> if (!validate_arglist(arglist, INTEGER_TYPE, VOID_TYPE))
4765│ return false;
4766│ printf("THERE!!\n")
Is there a way to nicely dump arglist?
gdb's print *arglist shows too much information....
$ /home/edwin/llvm-svn/obj42/./prev-gcc/cc1 charset.i
vprintf getchar fgetc_unlocked getc_unlocked getchar_unlocked putchar
fputc_unlocke...
2008 Feb 16
2
[LLVMdev] linux/x86-64 codegen support
Interestingly, in the .i file there are 2 __builtin_alloca, and
EmitBuiltinAlloca is only being called once.
Andrew
On 2/16/08, Andrew Lenharth <andrewl at lenharth.org> wrote:
> libcpp/charset.c:631 turns into:
>
> %tmp16 = tail call i64 @strlen( i8* %to ) nounwind readonly
> ; <i64> [#uses=1]
> %tmp18 = tail call i64 @strlen( i8* %from ) nounwind
2010 Jan 07
1
[LLVMdev] "Value has wrong type!" on Bool:4 bitfield
...t-llvm-bc -o bitfield4.o -quiet
cc1plus: /home/foad/svn/antix/toolchain/branches/w/foad/2757llvm26/toolchain/llvm/llvm-gcc/gcc/llvm-convert.cpp:999:
llvm::Value* TreeToLLVM::Emit(tree_node*, const MemRef*): Assertion
`(Result == 0 || (((enum tree_code)
(((exp)->common.type))->common.code) == VOID_TYPE) ||
isa<VectorType>(ConvertType(((exp)->common.type))) ||
Result->getType() == ConvertType(((exp)->common.type))) && "Value has
wrong type!"' failed.
At this point Result is "i8 1". ConvertType(TREE_TYPE(exp)) is i4. And
the code generated for the bas...
2006 Mar 16
0
[LLVMdev] Re: Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
...tion (decl=0xb7b9d618, top_level=1,
at_end=0)
at ../../2006-03-14-llvm-gcc-4/gcc/passes.c:204
Printing decl in frame 2 gives:
(gdb) call debug_tree(decl)
<function_decl 0xb7b9d618
_X_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv
type <function_type 0xb7ab7e88
type <void_type 0xb7ab5b40 void sizes-gimplified type_6 VOID
align 8 symtab 146744576 alias set -1
pointer_to_this <pointer_type 0xb7ab5bb8>>
type_6 QI
size <integer_cst 0xb7aa139c constant invariant 8>
unit size <integer_cst 0xb7aa13b8 constant inv...
2006 Mar 16
2
[LLVMdev] Re: Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
Evan Cheng wrote:
> Hi,
>
> Here is the follow on patch for this problem. Please apply this from
> the top of the tree and rebuild.
With the patch from Chris and then the patch from you combined, the previous
error disappeared, but I get another error, reduced to this:
./cc1 -fpreprocessed libgcc2.i -quiet -dumpbase libgcc2.c -mtune=pentiumpro
-auxbase-strip libgcc/./_clz.o -g -O2
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
...or 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...
2010 May 06
3
[LLVMdev] Failure to compile llvm-gcc-4.2-2.7 on FreeBSD on sparc machine
...nclude
-I/tmp/llvm-build/2.7/llvm/include -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder \
-c ../../llvm-gcc-4.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
GCC: <pointer_type 0x41a1b130
type <void_type 0x41a1b080 void VOID
align 8 symtab 1 alias set -1
LLVM: void
pointer_to_this <pointer_type 0x41a1b130>>
public unsigned DI
size <integer_cst 0x41a08b70 type <integer_type 0x41a1a0b0
bit_size_type> constant invariant 64>
unit size <intege...
2007 Sep 14
0
[LLVMdev] C interface
...t; which the linker will trivially DCE, so that approach may have merit.
>
> — Gordon
>
>
> [1]
> *$ cat emit_bc.ml*
> open Llvm
>
> let emit_bc filename =
> let m = create_module filename in
>
> let big_fn_ty = make_pointer_type
> (make_function_type (void_type ())
> [| make_vector_type (float_type ()) 4;
> make_pointer_type
> (make_struct_type [| double_type ();
> x86fp80_type ();
>...
2007 Sep 12
7
[LLVMdev] C interface
...C bindings in each library instead. They're just
glue which the linker will trivially DCE, so that approach may have
merit.
— Gordon
[1]
$ cat emit_bc.ml
open Llvm
let emit_bc filename =
let m = create_module filename in
let big_fn_ty = make_pointer_type
(make_function_type (void_type ())
[| make_vector_type (float_type ()) 4;
make_pointer_type
(make_struct_type [| double_type ();
x86fp80_type ();...