LLVM 22.0.0git
llvm::TargetLowering::TargetLoweringOpt Struct Reference

A convenience struct that encapsulates a DAG, and two SDValues for returning information from TargetLowering to its clients that want to combine. More...

#include "llvm/CodeGen/TargetLowering.h"

Public Member Functions

 TargetLoweringOpt (SelectionDAG &InDAG, bool LT, bool LO)
bool LegalTypes () const
bool LegalOperations () const
bool CombineTo (SDValue O, SDValue N)

Public Attributes

SelectionDAGDAG
bool LegalTys
bool LegalOps
SDValue Old
SDValue New

Detailed Description

A convenience struct that encapsulates a DAG, and two SDValues for returning information from TargetLowering to its clients that want to combine.

Definition at line 4104 of file TargetLowering.h.

Constructor & Destructor Documentation

◆ TargetLoweringOpt()

llvm::TargetLowering::TargetLoweringOpt::TargetLoweringOpt ( SelectionDAG & InDAG,
bool LT,
bool LO )
inlineexplicit

Definition at line 4111 of file TargetLowering.h.

References DAG, LegalOps, and LegalTys.

Member Function Documentation

◆ CombineTo()

◆ LegalOperations()

bool llvm::TargetLowering::TargetLoweringOpt::LegalOperations ( ) const
inline

Definition at line 4116 of file TargetLowering.h.

References LegalOps.

Referenced by combineShiftToAVG(), and llvm::TargetLowering::SimplifyDemandedBits().

◆ LegalTypes()

bool llvm::TargetLowering::TargetLoweringOpt::LegalTypes ( ) const
inline

Definition at line 4115 of file TargetLowering.h.

References LegalTys.

Referenced by combineShiftToAVG(), and llvm::TargetLowering::SimplifyDemandedBits().

Member Data Documentation

◆ DAG

◆ LegalOps

◆ LegalTys

bool llvm::TargetLowering::TargetLoweringOpt::LegalTys

Definition at line 4106 of file TargetLowering.h.

Referenced by LegalTypes(), and TargetLoweringOpt().

◆ New

SDValue llvm::TargetLowering::TargetLoweringOpt::New

Definition at line 4109 of file TargetLowering.h.

Referenced by CombineTo(), and llvm::TargetLowering::ShrinkDemandedConstant().

◆ Old

SDValue llvm::TargetLowering::TargetLoweringOpt::Old

Definition at line 4108 of file TargetLowering.h.

Referenced by CombineTo().


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