#include "llvm/Method.h"
#include "llvm/iOther.h"
#include "llvm/Target/MachineRegInfo.h"
+#include <string.h>
//******************** Internal Data Declarations ************************/
Value *PhiCpRes =
new Value(PN->getType(), PN->getValueType() );
+ string *Name = new string("PhiCp:");
+ (*Name) += (int) PhiCpRes;
+ PhiCpRes->setName( *Name );
+
+
// for each incoming value of the phi, insert phi elimination
//
for (unsigned i = 0; i < PN->getNumIncomingValues(); ++i) {
for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++) {
os << "\t" << minstr.getOperand(i);
- if( minstr.getOperand(i).opIsDef() ) os << "*";
-
+ if( minstr.getOperand(i).opIsDef() )
+ os << "*";
}
#undef DEBUG_VAL_OP_ITERATOR
for(unsigned z=0; z < NumOfImpRefs; z++) {
os << minstr.getImplicitRef(z);
if( minstr.implicitRefIsDefined(z)) os << "*";
- cout << "\t";
+ os << "\t";
}
}
#include "llvm/Method.h"
#include "llvm/iOther.h"
#include "llvm/Target/MachineRegInfo.h"
+#include <string.h>
//******************** Internal Data Declarations ************************/
Value *PhiCpRes =
new Value(PN->getType(), PN->getValueType() );
+ string *Name = new string("PhiCp:");
+ (*Name) += (int) PhiCpRes;
+ PhiCpRes->setName( *Name );
+
+
// for each incoming value of the phi, insert phi elimination
//
for (unsigned i = 0; i < PN->getNumIncomingValues(); ++i) {