Displaying 4 results from an estimated 4 matches for "tempvalue".
Did you mean:
cmpvalue
2011 Apr 22
3
[LLVMdev] copy instructions
...generation techniques to avoid "copy instructions"?
For example, the simple code generation methods that yield the translation
above might look like the following:
Value *AddExpression::codeGen() {
Value *l = left->codeGen();
Value *r = right->codeGen();
Value *result = new TempValue; // get unique temporary
emit(result->str() + " add " + l->str() + ", " r-str());
return result;
}
Value *assignExpression::codeGen() {
Value *rval = rvalue->codeGen();
Value *lval = new NameValue(ident);
emit(lval->str() + " = " + rval->str(...
2011 Apr 23
2
[LLVMdev] copy instructions
...ot;copy instructions"?
>
> For example, the simple code generation methods that yield the translation
> above might look like the following:
>
> Value *AddExpression::codeGen() {
> Value *l = left->codeGen();
> Value *r = right->codeGen();
> Value *result = new TempValue; // get unique temporary
> emit(result->str() + " add " + l->str() + ", " r-str());
> return result;
> }
>
> Value *assignExpression::codeGen() {
> Value *rval = rvalue->codeGen();
> Value *lval = new NameValue(ident);
> emit(lval->str()...
2011 Apr 23
0
[LLVMdev] copy instructions
...ot;copy instructions"?
>
> For example, the simple code generation methods that yield the translation
> above might look like the following:
>
> Value *AddExpression::codeGen() {
> Value *l = left->codeGen();
> Value *r = right->codeGen();
> Value *result = new TempValue; // get unique temporary
> emit(result->str() + " add " + l->str() + ", " r-str());
> return result;
> }
>
> Value *assignExpression::codeGen() {
> Value *rval = rvalue->codeGen();
> Value *lval = new NameValue(ident);
> emit(lval->str()...
2011 Apr 23
0
[LLVMdev] copy instructions
...>
>> For example, the simple code generation methods that yield the translation
>> above might look like the following:
>>
>> Value *AddExpression::codeGen() {
>> Value *l = left->codeGen();
>> Value *r = right->codeGen();
>> Value *result = new TempValue; // get unique temporary
>> emit(result->str() + " add " + l->str() + ", " r-str());
>> return result;
>> }
>>
>> Value *assignExpression::codeGen() {
>> Value *rval = rvalue->codeGen();
>> Value *lval = new NameValue(ident...