search for: main_funct

Displaying 3 results from an estimated 3 matches for "main_funct".

Did you mean: main_func
2009 Oct 03
1
[LLVMdev] code generation goes into an infinite loop
...llvm::Constant *c = mod->getOrInsertFunction ("main", // function name llvm::IntegerType::get(32), // return type llvm::IntegerType::get(32), // one argument (argc) NULL // terminate list of varargs ); llvm::Function *main_function = llvm::cast<llvm::Function>(c); main_function->setCallingConv(llvm::CallingConv::C); // make the body of the function printf("%s:%d make body\n", __FILE__, __LINE__); llvm::Function::arg_iterator args = main_function->arg_begin(); llvm::Value* arg1 = args++; a...
2013 Oct 29
0
[LLVMdev] Loop vectorizer dosen't find loop bounds
----- Original Message ----- > Thanks for the alternatives! > > I am trying the 'extracting sub-function' approach. However, it seems > I > can't get the 'subfunction' to pass the verifier. This is my > subfunction: > > define void @main_extern([8 x i8]* %arg_ptr) { > entrypoint: > %0 = getelementptr [8 x i8]* %arg_ptr, i32 0 > %1 =
2013 Oct 29
2
[LLVMdev] Loop vectorizer dosen't find loop bounds
Thanks for the alternatives! I am trying the 'extracting sub-function' approach. However, it seems I can't get the 'subfunction' to pass the verifier. This is my subfunction: define void @main_extern([8 x i8]* %arg_ptr) { entrypoint: %0 = getelementptr [8 x i8]* %arg_ptr, i32 0 %1 = bitcast [8 x i8]* %0 to i64* %2 = load i64* %1 %3 = getelementptr [8 x i8]*