LLVM 22.0.0git
llvm::CommonPointerBase Struct Reference

#include "Transforms/InstCombine/InstCombineInternal.h"

Public Member Functions

bool isExpensive () const
 Whether expanding the GEP chains is expensive.

Static Public Member Functions

static CommonPointerBase compute (Value *LHS, Value *RHS)

Public Attributes

ValuePtr = nullptr
 Common base pointer.
SmallVector< GEPOperator * > LHSGEPs
 LHS GEPs until common base.
SmallVector< GEPOperator * > RHSGEPs
 RHS GEPs until common base.
GEPNoWrapFlags LHSNW = GEPNoWrapFlags::all()
 LHS GEP NoWrapFlags until common base.
GEPNoWrapFlags RHSNW = GEPNoWrapFlags::all()
 RHS GEP NoWrapFlags until common base.

Detailed Description

Definition at line 896 of file InstCombineInternal.h.

Member Function Documentation

◆ compute()

◆ isExpensive()

bool CommonPointerBase::isExpensive ( ) const

Whether expanding the GEP chains is expensive.

Definition at line 2170 of file InstCombineAddSub.cpp.

References GEP, LHSGEPs, and RHSGEPs.

Member Data Documentation

◆ LHSGEPs

SmallVector<GEPOperator *> llvm::CommonPointerBase::LHSGEPs

LHS GEPs until common base.

Definition at line 900 of file InstCombineInternal.h.

Referenced by isExpensive().

◆ LHSNW

GEPNoWrapFlags llvm::CommonPointerBase::LHSNW = GEPNoWrapFlags::all()

LHS GEP NoWrapFlags until common base.

Definition at line 904 of file InstCombineInternal.h.

◆ Ptr

Value* llvm::CommonPointerBase::Ptr = nullptr

Common base pointer.

Definition at line 898 of file InstCombineInternal.h.

Referenced by compute().

◆ RHSGEPs

SmallVector<GEPOperator *> llvm::CommonPointerBase::RHSGEPs

RHS GEPs until common base.

Definition at line 902 of file InstCombineInternal.h.

Referenced by isExpensive().

◆ RHSNW

GEPNoWrapFlags llvm::CommonPointerBase::RHSNW = GEPNoWrapFlags::all()

RHS GEP NoWrapFlags until common base.

Definition at line 906 of file InstCombineInternal.h.


The documentation for this struct was generated from the following files: