This function determines whether a value for the pointer LoadPtr can be extracted from the load at DepLI.

Synopsis

Declared in <llvm/Transforms/Utils/VNCoercion.h>

int
analyzeLoadFromClobberingLoad(
    Type* LoadTy,
    Value* LoadPtr,
    LoadInst* DepLI,
    DataLayout const& DL);

Description

On success, it returns the offset into DepLI that extraction would start. On failure, it returns ‐1.

Parameters

Name

Description

LoadTy

The instances of the Type class are immutable: once they are created, they are never changed. Also note that only one instance of a particular type is ever created. Thus seeing if two types are equal is a matter of doing a trivial pointer comparison. To enforce that no two equal instances are created, Type instances can only be created via static factory methods in class Type and in derived classes. Once allocated, Types are never free'd.

LoadPtr

LLVM Value Representation

DepLI

An instruction for reading from memory. This uses the SubclassData field in Value to store whether or not the load is volatile.

DL

A parsed version of the target data layout string in and methods for querying it.

Created with MrDocs