ΒΆint analyzeLoadFromClobberingLoad(
    llvm::Type* LoadTy,
    llvm::Value* LoadPtr,
    llvm::LoadInst* DepLI,
    const llvm::DataLayout& DL)

Description

This function determines whether a value for the pointer LoadPtr can be extracted from the load at DepLI. On success, it returns the offset into DepLI that extraction would start. On failure, it returns -1.

Declared at: llvm/include/llvm/Transforms/Utils/VNCoercion.h:62

Parameters

llvm::Type* LoadTy
llvm::Value* LoadPtr
llvm::LoadInst* DepLI
const llvm::DataLayout& DL