llvm::findDevirtualizableCallsForTypeTest

Given a call to the intrinsic @llvm.type.test, find all devirtualizable call sites based on the call and return them in DevirtCalls.

Synopsis

Declared in <llvm/Analysis/TypeMetadataUtils.h>

void
findDevirtualizableCallsForTypeTest(
    SmallVectorImpl<DevirtCallSite>& DevirtCalls,
    SmallVectorImpl<CallInst*>& Assumes,
    CallInst const* CI,
    DominatorTree& DT);

Parameters

NameDescription
DevirtCallsOutput list of discovered devirtualizable call sites.
AssumesOutput list of llvm.assume calls that use the type test.
CIThe @llvm.type.test (or @llvm.public.type.test) intrinsic call.
DTDominator tree used to filter dominating call sites.