Displaying 2 results from an estimated 2 matches for "thenbb".
Did you mean:
thebb
2009 Oct 01
3
[LLVMdev] PHI and Allocas
...I've learnt that I can substitute
the PHI node creation by allocas and retrieving the value later, if
needed. The Kaleidoscope example seems to account for one value only,
the result of:
Value *ThenV = Then->Codegen();
(...)
Value *ElseV = Else->Codegen();
(...)
PN->addIncoming(ThenV, ThenBB);
PN->addIncoming(ElseV, ElseBB);
But both Then and Else are expressions, so the Value returned is in
the form of a single variable.
ExprAST *Then = ParseExpression();
(...)
ExprAST *Else = ParseExpression();
In my toy language, I accept any number of statements inside a block.
Ignoring nest...
2009 Oct 01
0
[LLVMdev] PHI and Allocas
...he PHI node creation by allocas and retrieving the value later, if
> needed. The Kaleidoscope example seems to account for one value only,
> the result of:
>
> Value *ThenV = Then->Codegen();
> (...)
> Value *ElseV = Else->Codegen();
> (...)
> PN->addIncoming(ThenV, ThenBB);
> PN->addIncoming(ElseV, ElseBB);
>
> But both Then and Else are expressions, so the Value returned is in
> the form of a single variable.
>
> ExprAST *Then = ParseExpression();
> (...)
> ExprAST *Else = ParseExpression();
>
> In my toy language, I accept any numb...