[llvm-commits] patch: make memdep scan memory use intrinsics
Duncan Sands
baldrick at free.fr
Mon Nov 23 00:32:34 PST 2009
Hi Nick,
> + case Intrinsic::lifetime_start:
> + case Intrinsic::invariant_start:
> + case Intrinsic::invariant_end:
> + MemPtr = QueryInst->getOperand(1);
> + MemSize = cast<ConstantInt>(QueryInst->getOperand(0))->getZExtValue();
isn't the pointer operand 2, and the size operand 1?
> + break;
> + case Intrinsic::lifetime_end:
> + MemPtr = QueryInst->getOperand(2);
> + MemSize = cast<ConstantInt>(QueryInst->getOperand(1))->getZExtValue();
And here operands 3 and 2?
Ciao,
Duncan.
More information about the llvm-commits
mailing list