Displaying 3 results from an estimated 3 matches for "dingbao".
Did you mean:
dingbat
2014 Nov 05
3
[LLVMdev] How to lower the intrinsic function 'llvm.objectsize'?
...t implementation should first find the
definition of the object and then determine the
size of the object.
BTW, can I just refer to the implementation in InstCombineCalls.cpp.
On Wed, Nov 5, 2014 at 2:24 PM, Matt Arsenault <Matthew.Arsenault at amd.com>
wrote:
> On 11/05/2014 02:04 PM, Dingbao Xie wrote:
>
> The documentation of LLVM says that "The llvm.objectsize intrinsic is
> lowered to a constant representing the size of the object concerned". I'm
> attempting to lower this intrinsic function to a constant in a pass. Below
> is the code snippet that I wr...
2014 Nov 05
3
[LLVMdev] How to lower the intrinsic function 'llvm.objectsize'?
...antInt::get(ii->getType(), bit_size);
ii->replaceAllUsesWith(result);
ii->removeFromParent();
delete ii;
break;
}
}
}
I'm new to LLVM and not sure whether the implementation is correct. Can
anybody tell me whether the implementation is correct?
Thanks in advance.
--
Dingbao Xie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141105/8a7f40e8/attachment.html>
2015 Jan 27
2
[LLVMdev] Create a call to function malloc using LLVM API
...the arguments of the function
CallInst::CreateMalloc.
Is the second argument type of p and the third one type of the element
that p points to?
The size of an integer variable is 4, but if I pass 4 as the last argument
to CallInst::CreateMalloc, then an assertion failure will occur.
--
Dingbao Xie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150126/5655da53/attachment.html>