LLVM 22.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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 901 of file InstCombineInternal.h.

Member Function Documentation

◆ compute()

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

◆ isExpensive()

bool CommonPointerBase::isExpensive ( ) const

Whether expanding the GEP chains is expensive.

Definition at line 2148 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 905 of file InstCombineInternal.h.

Referenced by isExpensive().

◆ LHSNW

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

LHS GEP NoWrapFlags until common base.

Definition at line 909 of file InstCombineInternal.h.

◆ Ptr

Value* llvm::CommonPointerBase::Ptr = nullptr

Common base pointer.

Definition at line 903 of file InstCombineInternal.h.

Referenced by compute().

◆ RHSGEPs

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

RHS GEPs until common base.

Definition at line 907 of file InstCombineInternal.h.

Referenced by isExpensive().

◆ RHSNW

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

RHS GEP NoWrapFlags until common base.

Definition at line 911 of file InstCombineInternal.h.


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