search for: functype_ff

Displaying 4 results from an estimated 4 matches for "functype_ff".

2016 May 17
3
External function resolution: MCJIT vs ORC JIT
...M)); std::unique_ptr<llvm::Module> M (new llvm::Module("module", Context)); M->setDataLayout (*DL); // Declare stub for external function sqr auto type_float = llvm::Type::getFloatTy (Context); llvm::Type* one_float[] = { type_float }; llvm::FunctionType *functype_ff = llvm::FunctionType::get (type_float, one_float, false); llvm::Function::Create (functype_ff, llvm::Function::ExternalLinkage, "sqr", M.get()); // Create myfunc and generate its IR, which just calls sqr on its argument llvm::Function *myfunc = llv...
2016 May 19
2
External function resolution: MCJIT vs ORC JIT
...vm::Module> M (new llvm::Module("module", Context)); > M->setDataLayout (*DL); > > // Declare stub for external function sqr > auto type_float = llvm::Type::getFloatTy (Context); > llvm::Type* one_float[] = { type_float }; > llvm::FunctionType *functype_ff = llvm::FunctionType::get (type_float, one_float, false); > llvm::Function::Create (functype_ff, llvm::Function::ExternalLinkage, > "sqr", M.get()); > > // Create myfunc and generate its IR, which just calls sqr on its argument > llv...
2016 May 20
0
External function resolution: MCJIT vs ORC JIT
...lvm::Module("module", Context)); >> M->setDataLayout (*DL); >> >> // Declare stub for external function sqr >> auto type_float = llvm::Type::getFloatTy (Context); >> llvm::Type* one_float[] = { type_float }; >> llvm::FunctionType *functype_ff = llvm::FunctionType::get >> (type_float, one_float, false); >> llvm::Function::Create (functype_ff, llvm::Function::ExternalLinkage, >> "sqr", M.get()); >> >> // Create myfunc and generate its IR, which just calls sqr on i...
2016 May 22
1
External function resolution: MCJIT vs ORC JIT
...vm::Module("module", Context)); >> M->setDataLayout (*DL); >> >> // Declare stub for external function sqr >> auto type_float = llvm::Type::getFloatTy (Context); >> llvm::Type* one_float[] = { type_float }; >> llvm::FunctionType *functype_ff = llvm::FunctionType::get (type_float, one_float, false); >> llvm::Function::Create (functype_ff, llvm::Function::ExternalLinkage, >> "sqr", M.get()); >> >> // Create myfunc and generate its IR, which just calls sqr on its argum...