9 #ifndef LLVM_CODEGEN_SELECTIONDAGADDRESSANALYSIS_H 10 #define LLVM_CODEGEN_SELECTIONDAGADDRESSANALYSIS_H 37 bool IsIndexSignExt =
false;
42 : Base(Base), Index(Index), Offset(), IsIndexSignExt(IsIndexSignExt) {}
45 : Base(Base), Index(Index), Offset(Offset),
46 IsIndexSignExt(IsIndexSignExt) {}
70 int64_t &BitOffset)
const;
75 return contains(DAG, BitSize, Other, OtherBitSize, BitOffset);
95 #endif // LLVM_CODEGEN_SELECTIONDAGADDRESSANALYSIS_H bool contains(const SelectionDAG &DAG, int64_t BitSize, const BaseIndexOffset &Other, int64_t OtherBitSize) const
This class represents lattice values for constants.
bool equalBaseIndex(const BaseIndexOffset &Other, const SelectionDAG &DAG, int64_t &Off) const
BaseIndexOffset()=default
bool contains(const SelectionDAG &DAG, int64_t BitSize, const BaseIndexOffset &Other, int64_t OtherBitSize, int64_t &BitOffset) const
BaseIndexOffset(SDValue Base, SDValue Index, int64_t Offset, bool IsIndexSignExt)
BaseIndexOffset(SDValue Base, SDValue Index, bool IsIndexSignExt)
static bool computeAliasing(const SDNode *Op0, const Optional< int64_t > NumBytes0, const SDNode *Op1, const Optional< int64_t > NumBytes1, const SelectionDAG &DAG, bool &IsAlias)
Helper struct to parse and store a memory address as base + index + offset.
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
void print(raw_ostream &OS) const
Represents one node in the SelectionDAG.
bool hasValidOffset() const
static BaseIndexOffset match(const SDNode *N, const SelectionDAG &DAG)
Parses tree in N for base, index, offset addresses.
This class implements an extremely fast bulk output stream that can only output to a stream...
bool equalBaseIndex(const BaseIndexOffset &Other, const SelectionDAG &DAG) const
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...