Displaying 5 results from an estimated 5 matches for "ofname".
Did you mean:
fname
2010 Jan 21
1
Rgeneric.py assists in rearranging generic function definitions
I've attached a script I wrote that pulls all the setGeneric definitions
out of a set of R files and puts them in a separate file, default
allGenerics.R. I thought it might help others who find themselves in a
similar situation.
The "situation" was that I had to change the order in which files in my
package were parsed; the scheme in which the generic definition is in
the
2018 Sep 06
2
Replacing a function from one module into another one
...= fOld->arg_begin();
for (llvm::Function::const_arg_iterator J = fNew->arg_begin(); J !=
fNew->arg_end();
++J) {
DestI->setName(J->getName());
VMap[&*J] = &*DestI++;
}
void addFunction(llvm::Module *oMod, llvm::Module *nMod, std::string
nFName, std::string oFName) {
llvm::Function *fNew = nMod->getFunction(nFName);
llvm::Function *fOld = oMod->getFunction(oFName);
fOld->dropAllReferences();
fOld->deleteBody();
llvm::ValueToValueMapTy VMap;
populateVMap(VMap, fOld, fNew);
bool ModuleArg = true;
llvm::SmallVector<llvm::ReturnI...
2018 Sep 06
2
Replacing a function from one module into another one
...r J = fNew->arg_begin(); J !=
fNew->arg_end();
++J) {
DestI->setName(J->getName());
VMap[&*J] = &*DestI++;
}
}
The same as in *CloneModule*, then I have this code:
llvm::Function *fNew = nMod->getFunction(nFName);
llvm::Function *fOld = oMod->getFunction(oFName);
fOld->dropAllReferences();
fOld->deleteBody();
llvm::ValueToValueMapTy VMap;
populateVMap(VMap, fOld, fNew);
bool ModuleArg = true;
llvm::SmallVector<llvm::ReturnInst*, 8> Returns;
llvm::CloneFunctionInto(fOld, fNew, VMap, ModuleArg, Returns);
if (fNew->hasPersonalityFn())
fOl...
2002 Jan 18
5
contrib/solaris/opensshd.in patch
This patch adds the seatbelts which _only_ kill parent sshd procs... -RMallory
(eg: when you ssh into a machine and pkgadd the new openssh, it will not
kill your current (or anyone else's sshd session)
onanother_note: the buildpkg.sh could use some exec_prefix functionality...
to deal with ./configure --prefix= --exec_prefix=/usr
*** bak/opensshd.in Fri Oct 19 13:36:24 2001
---
2018 Sep 04
2
Replacing a function from one module into another one
Hi Philip,
Thank you very much for your answer, the vector declaration example worked.
I'm pretty sure the ValueToValueMapTy is the last thing I need because I
even saw there is another function that could help me llvm*:*:RemapFunction
<http://llvm.org/doxygen/namespacellvm.html#addf0183e92893bdbcde00fc9091dda93>;
but my problem is that I don't know how to populate the