LLVM 17.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.
 

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.
 

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

Definition at line 120 of file InstructionSimplify.h.

References I.

Referenced by llvm::InstCombinerImpl::foldAddWithConstant(), llvm::InstCombinerImpl::foldICmpAddConstant(), llvm::InstCombinerImpl::foldICmpBinOp(), llvm::InstCombinerImpl::foldICmpWithZero(), llvm::InstCombinerImpl::foldOpIntoPhi(), foldShiftIntoShiftInAnotherHandOfAndInICmp(), llvm::InstCombinerImpl::foldSignBitTest(), llvm::InstCombinerImpl::foldUsingDistributiveLaws(), llvm::InstCombinerImpl::reassociateShiftAmtsOfTwoSameDirectionShifts(), llvm::InstCombinerImpl::SimplifyAssociativeOrCommutative(), simplifyInstructionWithOperands(), simplifyLoopInst(), llvm::InstCombinerImpl::SimplifySelectsFeedingBinaryOp(), threadCmpOverPHI(), tryFactorization(), llvm::InstCombinerImpl::visitAdd(), llvm::InstCombinerImpl::visitAnd(), llvm::InstCombinerImpl::visitAShr(), llvm::InstCombinerImpl::visitCallInst(), llvm::InstCombinerImpl::visitExtractElementInst(), llvm::InstCombinerImpl::visitExtractValueInst(), llvm::InstCombinerImpl::visitFAdd(), llvm::InstCombinerImpl::visitFCmpInst(), llvm::InstCombinerImpl::visitFDiv(), llvm::InstCombinerImpl::visitFMul(), llvm::InstCombinerImpl::visitFreeze(), llvm::InstCombinerImpl::visitFRem(), llvm::InstCombinerImpl::visitGEPOfGEP(), llvm::InstCombinerImpl::visitGetElementPtrInst(), llvm::InstCombinerImpl::visitICmpInst(), llvm::InstCombinerImpl::visitInsertElementInst(), llvm::InstCombinerImpl::visitLShr(), llvm::InstCombinerImpl::visitMul(), llvm::InstCombinerImpl::visitOr(), llvm::InstCombinerImpl::visitPHINode(), llvm::InstCombinerImpl::visitSDiv(), llvm::InstCombinerImpl::visitShl(), llvm::InstCombinerImpl::visitShuffleVectorInst(), llvm::InstCombinerImpl::visitSRem(), llvm::InstCombinerImpl::visitSub(), llvm::InstCombinerImpl::visitUDiv(), llvm::InstCombinerImpl::visitURem(), and llvm::InstCombinerImpl::visitXor().

◆ getWithoutUndef()

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

◆ 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: