Displaying 2 results from an estimated 2 matches for "callexternal".
Did you mean:
allexternals
2008 Feb 25
0
[LLVMdev] Calling functions
...m std:
|
| std::vector<const Type*> params;
| params.push_back( Type::FloatTy );
| FunctionType *FT = FunctionType::get( Type::FloatTy, params, false);
| Function *F = new Function( FT, Function::ExternalLinkage, "sin", M );
| CallInst *CallExternal = new CallInst( F, SomeValue, "external_call", BB );
|
|
| I can make some calls to functions like glclear() as I'm using opengl:
| ...
| Function *F = new Function( FT, Function::ExternalLinkage, "glclear", M );
| ...
|
| But i...
2008 Feb 22
2
[LLVMdev] Calling functions
...something like this to call "sin" from std:
std::vector<const Type*> params;
params.push_back( Type::FloatTy );
FunctionType *FT = FunctionType::get( Type::FloatTy, params, false);
Function *F = new Function( FT, Function::ExternalLinkage, "sin", M );
CallInst *CallExternal = new CallInst( F, SomeValue, "external_call", BB );
I can make some calls to functions like glclear() as I'm using opengl:
...
Function *F = new Function( FT, Function::ExternalLinkage, "glclear", M );
...
But if I want to call any function inside a C++ namespace I do...