Returns true if the instruction MI may alias Other.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/LoadStoreOpt.h>

bool
instMayAlias(
    MachineInstr const& MI,
    MachineInstr const& Other,
    MachineRegisterInfo& MRI,
    AliasAnalysis* AA);

Description

This function uses multiple strategies to detect aliasing, whereas aliasIsKnownForLoadStore just looks at the addresses of load/stores and tries to reason about base/index/offsets.

Return Value

True if MI may alias Other.

Parameters

Name

Description

MI

First instruction to test for aliasing.

Other

Second instruction to test for aliasing.

MRI

Register info used to inspect addressing operands.

AA

Optional alias analysis; may be null.

Created with MrDocs