search for: newadd

Displaying 5 results from an estimated 5 matches for "newadd".

Did you mean: newaddr
2005 Jul 29
0
[LLVMdev] patch for pointer-to-array conversion
...a pointer recurrence. Transform this pointer // recurrence into an integer recurrence. Compute the value that gets // added to the pointer at every iteration. @@ -390,6 +382,35 @@ // Update the GEP to use the new recurrence we just inserted. GEPI->setOperand(1, NewAdd); + // Nesting is deep... + if ( PHINode *PN = dyn_cast<PHINode>( GEPI->getOperand(0) ) ) + return transformPointerRecurrence( GEPI, PN, PN->getIncomingBlock(0) ); + return std::make_pair(NewAdd,NewPhi); +} + +/// EliminatePointerRecurrence - Check to see if t...
2011 Jan 25
0
[LLVMdev] install and add backend to llvm.
Have you added the $LLVM_INSTALL_DIR/bin to your PATH environment variable? Regarding changing a particular backend, check the documentation in http://llvm.org/docs/WritingAnLLVMBackend.html http://llvm.org/docs/CodeGenerator.html A few LLVMdev meetings have good talks to give you a good enough idea. http://llvm.org/devmtg/ Cheers, Raghu. ----- Original Message ----- From: "Teklu
2011 Jan 25
2
[LLVMdev] install and add backend to llvm.
Hi I am new to llvm and Linux (I am using ubuntu 10) My aim is to add backend to llvm. I install llvm using $ sudo apt-get install llvm and I am able to understand what I read about Writing an LLVM Compiler Backend. I have seen the assembly codes of the targets on llvm using llc. What I need now is to change some of the TableGen files of one of the target like SparcInstrInfo.td.  So I
2005 Jul 28
2
[LLVMdev] help with pointer-to-array conversion
...yOperator::createMul(saved_trip_count, > LI->getLoopFor( phi->getIncomingBlock(1) ) > ->getCanonicalInductionVariable(), "mul.", GEPI); > Instruction *add = BinaryOperator::createAdd(mul, NewAdd, "add.", GEPI); > GEPI->setOperand( 0, phi->getIncomingValue(0) ); > GEPI->setOperand( 1, add ); > std::cerr << "Block After: " << *GEPI->getParent(); > } > } 605c621,622 <...
2005 Jul 28
0
[LLVMdev] help with pointer-to-array conversion
...aved_trip_count, >> LI->getLoopFor( phi->getIncomingBlock(1) ) >> ->getCanonicalInductionVariable(), "mul.", > GEPI); >> Instruction *add = BinaryOperator::createAdd(mul, > NewAdd, "add.", GEPI); >> GEPI->setOperand( 0, phi->getIncomingValue(0) ); >> GEPI->setOperand( 1, add ); >> std::cerr << "Block After: " << *GEPI->getParent(); >> } >>...