Displaying 6 results from an estimated 6 matches for "func_args".
2008 Aug 19
7
[LLVMdev] Please help with LLVM C++ integration
...<< "!!!!" << std::endl;
return 8848;
}
int _tmain(int argc, _TCHAR* argv[]){
Module *M = new Module("test");
ExistingModuleProvider* MP = new ExistingModuleProvider(M);
ExecutionEngine* EE = ExecutionEngine::create(MP, false);
std::vector<const Type *> func_args;
func_args.push_back(Type::Int32Ty);
FunctionType * func_type = FunctionType::get(Type::Int32Ty, func_args, false);
Function * my_function = Function::Create( func_type,
Function::ExternalLinkage, "some_test_func", M );
EE->addGlobalMapping( my_function, (void*)&some_test_func...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...t;
> int _tmain(int argc, _TCHAR* argv[]){
>
> Module *M = new Module("test");
> ExistingModuleProvider* MP = new ExistingModuleProvider(M);
> ExecutionEngine* EE = ExecutionEngine::create(MP, false);
>
> std::vector<const Type *> func_args;
> func_args.push_back(Type::Int32Ty);
> FunctionType * func_type = FunctionType::get(Type::Int32Ty,
> func_args, false);
> Function * my_function = Function::Create( func_type,
> Function::ExternalLinkage, "some_test_func", M );
> EE->...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...t;
> int _tmain(int argc, _TCHAR* argv[]){
>
> Module *M = new Module("test");
> ExistingModuleProvider* MP = new ExistingModuleProvider(M);
> ExecutionEngine* EE = ExecutionEngine::create(MP, false);
>
> std::vector<const Type *> func_args;
> func_args.push_back(Type::Int32Ty);
> FunctionType * func_type = FunctionType::get(Type::Int32Ty, func_args, false);
> Function * my_function = Function::Create( func_type,
> Function::ExternalLinkage, "some_test_func", M );
> EE->addGl...
2009 May 17
4
Can YOU find a trailing parenthesis?
...; 2663
include => setup-meetme-conf-room ; 6000xxxYYYY
[setup-meetme-conf-room]
exten => _6000XXXNXXX,n,Set(Time-in-secs="${STRFTIME(${EPOCH},,%s}" )
........
CLI:
-- Starting simple switch on 'DAHDI/1-1'
[2009-05-17 14:54:49] WARNING[13433]: pbx.c:2846 func_args: Can't find
trailing parenthesis?
-- Executing [60001234567 at internal:1] Set("DAHDI/1-1",
"Time-in-secs= "1242586489" ") in new stack
.........
I've tried it with and without quotes around STRFTIME.
Now it works, so I can't really complain,
But...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
On Aug 19, 2008, at 13:36, kirill havok wrote:
> I got very interested in LLVM project, and I decided to start
> writing my own scripting language based on it. By studying the
> documentation, I could not find how to call external function,
> written in C. That is, I have a set of functions written in C/C++, I
> generate code, using LLVM C++ interface, how can I call(or
2008 Aug 19
5
[LLVMdev] Please help with LLVM C++ integration
Hello,
I got very interested in LLVM project, and I decided to start writing
my own scripting language based on it. By studying the documentation,
I could not find how to call external function, written in C. That is,
I have a set of functions written in C/C++, I generate code, using
LLVM C++ interface, how can I call(or register in machine in run-time)
my external functions? Maybe I just missed