Displaying 2 results from an estimated 2 matches for "block_split".
2014 Nov 05
3
[LLVMdev] How to lower the intrinsic function 'llvm.objectsize'?
...vm.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 wrote:
for (BasicBlock::iterator i = b.begin(), ie = b.end();
(i != ie) && (block_split == false);) {
IntrinsicInst *ii = dyn_cast<IntrinsicInst>(&*i);
++i;
if(ii) {
switch (ii->getIntrinsicID()) {
case Intrinsic::objectsize: {
IRBuilder<> builder(ii->getParent(), ii);
Value *op1 = ii->getArgOperand(0); //i8*
uint64_t bit_size =
op1->getType(...
2014 Nov 05
3
[LLVMdev] How to lower the intrinsic function 'llvm.objectsize'?
...the code snippet that I wrote:
>
> Why do you need to handle this yourself? This should already be handled
> for you (see InstCombineCalls.cpp). However, you have a few problems with
> this.
>
> for (BasicBlock::iterator i = b.begin(), ie = b.end();
> (i != ie) && (block_split == false);) {
> IntrinsicInst *ii = dyn_cast<IntrinsicInst>(&*i);
> ++i;
> if(ii) {
> switch (ii->getIntrinsicID()) {
> case Intrinsic::objectsize: {
> IRBuilder<> builder(ii->getParent(), ii);
> Value *op1 = ii->getArgOperand(0); //i8*
>...