llvm::IRBuilderBase::CreateGCRelocate

Create a call to the experimental.gc.relocate intrinsics to project the relocated value of one pointer from the statepoint.

Synopsis

Declared in <llvm/IR/IRBuilder.h>

CallInst*
CreateGCRelocate(
    Instruction* Statepoint,
    int BaseOffset,
    int DerivedOffset,
    Type* ResultType,
    Twine const& Name = "");

Return Value

The created GC relocate value.

Parameters

NameDescription
StatepointGC statepoint call or invoke.
BaseOffsetByte offset of the base pointer in the statepoint.
DerivedOffsetByte offset of the derived pointer in the statepoint.
ResultTypeResult type of the GC relocate or result.
NameName of the new instruction or value.