Displaying 2 results from an estimated 2 matches for "emitsimplebinaryoperation".
2004 Jun 07
2
[LLVMdev] X86: copyConstantToRegister
...this:
void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
MachineBasicBlock::iterator IP,
Constant *C, unsigned R) {
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
.....
case Instruction::Add:
emitSimpleBinaryOperation(MBB, IP, CE->getOperand(0),
CE->getOperand(1),
Class, R);
I'm not sure I understand this logic. If we have "1 + 2" as constant
expression, then why emit the code to perform add...
2004 Jun 07
0
[LLVMdev] X86: copyConstantToRegister
...tToRegister(MachineBasicBlock *MBB,
> MachineBasicBlock::iterator IP,
> Constant *C, unsigned R) {
> if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
> .....
> case Instruction::Add:
> emitSimpleBinaryOperation(MBB, IP, CE->getOperand(0),
> CE->getOperand(1),
> Class, R);
>
> I'm not sure I understand this logic. If we have "1 + 2" as constant
> expression, then why emit t...