search for: specfunc

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

2011 Jul 06
2
[LLVMdev] First steps with LLVM and partial evaluation
...eMap[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(); ++j) { Argument* arg = j; Value* val; if (arg->getNameStr() == "n") {...