A)
In LLVM, why are memcpy (and other memory related functions) treated
specially? i.e why do they have this intrinsic notion.
The IR generated is like the following, while the normal functions differ.
Can anyone explain me what the p0* mean in the above IR of memcpy?
B)
How to insert a call to "memcpy(A, B, 252);" before a particular basic
block. Assume A and B are integer64 array of 252 size each.
Can anyone help me figure out the parameter that needs to be placed in
'??' below
Can anyone explain me what the p0* mean in the above IR of memcpy?
The 'p' means that the argument is a pointer type and '0' is the
address space of the pointer type. If you are interested, the name is
created by "Intrinsic::getName" in "lib/IR/Function.cpp".
/ David
B)
How to insert a call to "memcpy(A, B, 252);" before a particular basic
block. Assume A and B are integer64 array of 252 size each.
Can anyone help me figure out the parameter that needs to be placed in
'??' below