Displaying 6 results from an estimated 6 matches for "printfunc".
2005 Oct 16
2
[LLVMdev] Help on LLVM Instrumentation
Hi ,
I am using LLVM for my Post Graduate course project on Optimization. I am trying to do some insrtumentation to the bytecode.I 've been going through your Instrumentation code for the past few days in /llvm/lib/Transforms/Instrumentation folder and finally found two ways of instrumentation :
1) injecting LLVM bytecode instructions
2) calling an external C function.
I am trying both and
2012 Sep 05
1
[LLVMdev] Calling a function with a pointer to a global char array as argument
...ent
"hi" and call a function "print" (which takes a char pointer and return an
insteger.
I am doing the following in the code -
Function Creation:
PointerType* array =
PointerType::get(IntegerType::getInt8Ty(getGlobalContext())
/*CI->getPointerOperand()->getType()*/, 0);
printFunc = M.getOrInsertFunction("print",
IntegerType::getInt32Ty(getGlobalContext()), array, NULL);
Global Declaration:
Constant *fname = ConstantDataArray::getString(getGlobalContext(),"hi",
true);
Value *FBloc;
FBloc = n...
2013 Mar 05
0
[LLVMdev] LLVM load instruction query
...you have getOperand(2), here it is.
On Tue, Mar 5, 2013 at 12:31 PM, Anshul Garg <gargaa24 at gmail.com> wrote:
> Thanks for reply.
> Ya i posted same question on that also.
> Error at the time of running opt -load Error is: a at ubuntu:~/Desktop$
> ./myscript llvm[0]: Compiling printFunc.cpp for Release+Asserts build (PIC)
> llvm[0]: Linking Release+Asserts Loadable Module Ass1Pri.so 0 opt
> 0x0854449b Stack dump: 0. Program arguments: opt -load
> /home/anshul/llvm/llvm-3.2/Release+Asserts/lib/Ass1Pri.so -anshul_insert 1.
> Running pass 'test function exist' on...
2016 Mar 15
2
Go Bindings and govet
Hi Andrew, Peter,
I took a look at the results of running govet on the go bindings - there
are a lot of small/simple problems that should probably be looked at. Wrong
number of arguments a few times, shifts by > 32, etc.
https://golang.org/cmd/vet/
Thanks!
-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Mar 16
0
Go Bindings and govet
On Wed, 16 Mar 2016 at 05:55 Eric Christopher <echristo at gmail.com> wrote:
> Hi Andrew, Peter,
>
> I took a look at the results of running govet on the go bindings - there
> are a lot of small/simple problems that should probably be looked at. Wrong
> number of arguments a few times, shifts by > 32, etc.
>
Did you just run "go vet
2013 Mar 05
5
[LLVMdev] LLVM load instruction query
HI,
I am creating a pass that will pass loaded value by load instruction to an
external function.
I don't know how to do it.Please Help.