LLVM  12.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SimplifyQuery Struct Reference

#include "llvm/Analysis/InstructionSimplify.h"

Collaboration diagram for llvm::SimplifyQuery:
Collaboration graph
[legend]

Public Member Functions

 SimplifyQuery (const DataLayout &DL, const Instruction *CXTI=nullptr)
 
 SimplifyQuery (const DataLayout &DL, const TargetLibraryInfo *TLI, const DominatorTree *DT=nullptr, AssumptionCache *AC=nullptr, const Instruction *CXTI=nullptr, bool UseInstrInfo=true, bool CanUseUndef=true)
 
SimplifyQuery getWithInstruction (Instruction *I) const
 
SimplifyQuery getWithoutUndef () const
 
bool isUndefValue (Value *V) const
 If CanUseUndef is true, returns whether V is undef. More...
 

Public Attributes

const DataLayoutDL
 
const TargetLibraryInfoTLI = nullptr
 
const DominatorTreeDT = nullptr
 
AssumptionCacheAC = nullptr
 
const InstructionCxtI = nullptr
 
const InstrInfoQuery IIQ
 
bool CanUseUndef = true
 Controls whether simplifications are allowed to constrain the range of possible values for uses of undef. More...
 

Detailed Description

Definition at line 93 of file InstructionSimplify.h.

Constructor & Destructor Documentation

◆ SimplifyQuery() [1/2]

llvm::SimplifyQuery::SimplifyQuery ( const DataLayout DL,
const Instruction CXTI = nullptr 
)
inline

Definition at line 110 of file InstructionSimplify.h.

◆ SimplifyQuery() [2/2]

llvm::SimplifyQuery::SimplifyQuery ( const DataLayout DL,
const TargetLibraryInfo TLI,
const DominatorTree DT = nullptr,
AssumptionCache AC = nullptr,
const Instruction CXTI = nullptr,
bool  UseInstrInfo = true,
bool  CanUseUndef = true 
)
inline

Definition at line 113 of file InstructionSimplify.h.

Member Function Documentation

◆ getWithInstruction()

SimplifyQuery llvm::SimplifyQuery::getWithInstruction ( Instruction I) const
inline

◆ getWithoutUndef()

SimplifyQuery llvm::SimplifyQuery::getWithoutUndef ( ) const
inline

Definition at line 125 of file InstructionSimplify.h.

Referenced by expandBinOp(), and simplifyBinaryIntrinsic().

◆ isUndefValue()

bool llvm::SimplifyQuery::isUndefValue ( Value V) const
inline

Member Data Documentation

◆ AC

AssumptionCache* llvm::SimplifyQuery::AC = nullptr

◆ CanUseUndef

bool llvm::SimplifyQuery::CanUseUndef = true

Controls whether simplifications are allowed to constrain the range of possible values for uses of undef.

If it is false, simplifications are not allowed to assume a particular value for a use of undef for example.

Definition at line 108 of file InstructionSimplify.h.

Referenced by isUndefValue().

◆ CxtI

const Instruction* llvm::SimplifyQuery::CxtI = nullptr

◆ DL

const DataLayout& llvm::SimplifyQuery::DL

◆ DT

const DominatorTree* llvm::SimplifyQuery::DT = nullptr

◆ IIQ

const InstrInfoQuery llvm::SimplifyQuery::IIQ

◆ TLI

const TargetLibraryInfo* llvm::SimplifyQuery::TLI = nullptr

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