search for: specializefunction

Displaying 1 result from an estimated 1 matches for "specializefunction".

2011 Jul 06
2
[LLVMdev] First steps with LLVM and partial evaluation
...// Is this argument preserved? DestI->setName(I->getName()); // Copy the name over... ValueMap[I] = DestI++; // Add mapping to ValueMap } return NewF; } //******************************************************************************* void specializeFunction(Module& m, Function& f, LLVMContext& context) { ValueToValueMapTy valueMap; Function *specFunc = cloneFunctionInfo(&f, valueMap); specFunc->setName(specFunc->getNameStr() + "_spec"); for (Function::arg_iterator j = f.arg_begin(); j != f.arg_end(); ++...