Displaying 3 results from an estimated 3 matches for "growoperands".
2013 Nov 09
1
[LLVMdev] Variable-length Phi-node
...p; "PHI node got a null value!");
assert(BB && "PHI node got a null basic block!");
assert(getType() == V->getType() &&
"All operands to PHI node must be the same type as the PHI node!");
if (NumOperands == ReservedSpace)
growOperands(); // Get more space!
// Initialize some new operands.
++NumOperands;
setIncomingValue(NumOperands - 1, V);
setIncomingBlock(NumOperands - 1, BB);
}
-Filip
On Nov 9, 2013, at 9:56 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
> On 9 Nov 2013, at 16:35, W...
2013 Nov 09
0
[LLVMdev] Variable-length Phi-node
On 9 Nov 2013, at 16:35, William Moses <moses.williamsteven at gmail.com> wrote:
> Is it possible to create something which has the same effect of a variable-length phi node in the C++ api. Specifically, create a phi-node where the number of incoming values is not known at the time of its creation.
The PHI node preallocates its storage, so no.
> If there is no such way of creating a
2013 Nov 09
2
[LLVMdev] Variable-length Phi-node
All,
Is it possible to create something which has the same effect of a
variable-length phi node in the C++ api. Specifically, create a phi-node
where the number of incoming values is not known at the time of its
creation.
If there is no such way of creating a phinode like that, would it be
possible to create a dummy instruction and perform a replaceAllUsesWith? If
so, what should the dummy