Displaying 3 results from an estimated 3 matches for "llvm_function".
2013 Apr 24
1
[LLVMdev] JIT pass runtime struct on to subroutines
...------------
// I want to generate an LLVM function for a given predicate
// at this point there is no struct *machine available
// create the function for the predicate. This should take one parameter: the machine-struct that will be provided at runtime when the function is called
llvm::Function *llvm_function = llvm::cast<llvm::Function>(
llvm_module->getOrInsertFunction(*name, llvm::Type::getVoidTy(&llvm_context), llvm::PointerType::getUnqual(llvm::StructType::create(&llvm_context)), (llvm::Type *)0));
// prepare for the construction of this function
llvm::BasicBlock *llvm_basic_blo...
2005 May 18
1
[LLVMdev] Scheme + LLVM JIT
On May 16, Chris Lattner wrote:
>
> Sure, that sounds good. I'd definitely prefer that it be tested before it
> goes into CVS. Perhaps adding something to llvm/examples would be a good
> way to go.
>
> One suggestion, you might change the API to be something like this:
>
> ParseAsmString(const char *, Module *)
>
> Where the function parses the string and
2004 Oct 06
1
[LLVMdev] generating function declarations in c frontend
...basic blocks is treated as a declaration, so I tried
to just create one and add it to the globals list:
llvm_type *structTy, *ptrToStructTy;
structTy = llvm_type_create_struct(0, 0);
structTy = llvm_type_get_cannonical_struct(structTy);
ptrToStructTy = llvm_type_get_pointer(structTy);
llvm_function *dbg_stoppoint_fn = llvm_function_new(ptrToStructTy,
"llvm.dbg.stoppoint");
llvm_argument *arg = llvm_argument_new(structTy, "foo");
llvm_ilist_push_back(llvm_value, dbg_stoppoint_fn->Arguments, arg);
/* line # 548 */
llvm_ilist_push_back(llvm_global, TheProgram.Global...