search for: func_add

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

2012 Sep 19
0
[LLVMdev] newbie question on getelementptr
...ng a "bus error" when trying to run the retrieved function using an ExecutionEngine (not sure if this is the proper way to run a function). Here is my code: // includes omitted using namespace llvm; using namespace std; static Function *CreateAddFunction(Module *module) { Function *func_add = cast<Function> ( module->getOrInsertFunction("add", Type::getInt32Ty(module->getContext()), Type::getInt32Ty(module->getContext()), Type::getInt32Ty(module->getContext()), (Type *) 0)); BasicB...
2012 Sep 19
3
[LLVMdev] newbie question on getelementptr
Hi All, I'm new to LLVM and I'm having a coding problem. I'm creating a GlobalVariable that contains a StructType that contains a Function. The function returns i32 and takes two i32's. Here is my code: GlobalVariable* retrieved = module->getGlobalVariable("myGV"); ... Constant* result = ConstantExpr::getGetElementPtr(retrieved, indices); How do I get my Function
2015 Jul 17
2
[LLVMdev] LLVM instrumentation
...count and the maximum internal block count. Do you know if you can tune the -fprofile-instr-generate parameter? I find another way for doing instrumentation (http://logan.tw/posts/2015/04/28/check-code-coverage-with-clang-and-lcov/) With this, I get the following information : Function '_ZL8func_addii' Lines executed:100.00% of 5 Branches executed:100.00% of 2 Taken at least once:100.00% of 2 No calls Function 'main' Lines executed:100.00% of 6 Branches executed:100.00% of 2 Taken at least once:100.00% of 2 No calls File 'test.cpp' Lines executed:100.00% of 11 Branches ex...
2015 Jul 17
3
[LLVMdev] LLVM instrumentation
Yeah I have already see pintool but I need this to work with ARM and Intel. If I remember correctly, pintool does not work on ARM (or quite bad). My goal with the instrumentation is, once I have the information (time + call), to choose (during a second compilation) if some of my passes are applicable or not. Greetings, Johan On 17 Jul 2015, at 16:09, Kenneth Adam Miller <kennethadammiller