ΒΆvoid moveFunctionBody(
    llvm::Function& OrigF,
    llvm::ValueToValueMapTy& VMap,
    llvm::ValueMaterializer* Materializer =
        nullptr,
    llvm::Function* NewF = nullptr)

Description

Move the body of function 'F' to a cloned function declaration in a different module (See related cloneFunctionDecl). If the target function declaration is not supplied via the NewF parameter then it will be looked up via the VMap. This will delete the body of function 'F' from its original parent module, but leave its declaration.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h:538

Parameters

llvm::Function& OrigF
llvm::ValueToValueMapTy& VMap
llvm::ValueMaterializer* Materializer = nullptr
llvm::Function* NewF = nullptr