search for: addexpression

Displaying 4 results from an estimated 4 matches for "addexpression".

2011 Apr 22
3
[LLVMdev] copy instructions
...es for the same thing (this is my own observation, please tell me if my thinking is off). What are the general code 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 = rva...
2011 Apr 23
2
[LLVMdev] copy instructions
...observation, > please tell me if my thinking is off). > > What are the general code 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 *assignExpressio...
2011 Apr 23
0
[LLVMdev] copy instructions
...observation, > please tell me if my thinking is off). > > What are the general code 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 *assignExpressio...
2011 Apr 23
0
[LLVMdev] copy instructions
...my thinking is off). >> >> What are the general code 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; >> } >>...