LLVM 20.0.0git |
Represents flags for the getelementptr instruction/expression.More...
#include "llvm/IR/GEPNoWrapFlags.h"
Public Member Functions | |
GEPNoWrapFlags () | |
GEPNoWrapFlags (bool IsInBounds) | |
unsigned | getRaw ()const |
bool | isInBounds ()const |
bool | hasNoUnsignedSignedWrap ()const |
bool | hasNoUnsignedWrap ()const |
GEPNoWrapFlags | withoutInBounds ()const |
GEPNoWrapFlags | withoutNoUnsignedSignedWrap ()const |
GEPNoWrapFlags | withoutNoUnsignedWrap ()const |
GEPNoWrapFlags | intersectForOffsetAdd (GEPNoWrapFlagsOther)const |
Given (gep (gep p, x), y), determine the nowrap flags for (gep p, x+y). | |
bool | operator== (GEPNoWrapFlagsOther)const |
bool | operator!= (GEPNoWrapFlagsOther)const |
GEPNoWrapFlags | operator& (GEPNoWrapFlagsOther)const |
GEPNoWrapFlags | operator| (GEPNoWrapFlagsOther)const |
GEPNoWrapFlags & | operator&= (GEPNoWrapFlagsOther) |
GEPNoWrapFlags & | operator|= (GEPNoWrapFlagsOther) |
Static Public Member Functions | |
staticGEPNoWrapFlags | none () |
staticGEPNoWrapFlags | all () |
staticGEPNoWrapFlags | inBounds () |
staticGEPNoWrapFlags | noUnsignedSignedWrap () |
staticGEPNoWrapFlags | noUnsignedWrap () |
staticGEPNoWrapFlags | fromRaw (unsigned Flags) |
Represents flags for the getelementptr instruction/expression.
The following flags are supported:
Definition at line26 of fileGEPNoWrapFlags.h.
| inline |
Definition at line40 of fileGEPNoWrapFlags.h.
Referenced byall(),fromRaw(),inBounds(),none(),noUnsignedSignedWrap(),noUnsignedWrap(),operator&(),operator|(),withoutInBounds(),withoutNoUnsignedSignedWrap(), andwithoutNoUnsignedWrap().
| inline |
Definition at line43 of fileGEPNoWrapFlags.h.
| inlinestatic |
Definition at line47 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
| inlinestatic |
Definition at line58 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byllvm::GEPOperator::getNoWrapFlags().
| inline |
Definition at line61 of fileGEPNoWrapFlags.h.
Referenced byllvm::ConstantExpr::getGetElementPtr(), andllvm::GetElementPtrInst::setNoWrapFlags().
| inline |
| inline |
Definition at line65 of fileGEPNoWrapFlags.h.
Referenced byllvm::InstCombinerImpl::foldGEPICmp(),llvm::ScalarEvolution::getGEPExpr(),llvm::GEPOperator::hasNoUnsignedWrap(),mapToLLVMGEPNoWrapFlags(),llvm::InstCombinerImpl::OptimizePointerDifference(),llvm::BasicAAResult::DecomposedGEP::print(),llvm::VPRecipeWithIRFlags::printFlags(), andrewriteGEPAsOffset().
| inlinestatic |
Definition at line50 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byllvm::IRBuilderBase::CreateConstInBoundsGEP1_32(),llvm::IRBuilderBase::CreateConstInBoundsGEP1_64(),llvm::IRBuilderBase::CreateConstInBoundsGEP2_32(),llvm::IRBuilderBase::CreateConstInBoundsGEP2_64(),llvm::GetElementPtrInst::CreateInBounds(),llvm::IRBuilderBase::CreateInBoundsGEP(),llvm::IRBuilderBase::CreateInBoundsPtrAdd(),llvm::IRBuilderBase::CreateStructGEP(),llvm::ConstantExpr::getInBoundsGetElementPtr(),mapFromLLVMGEPNoWrapFlags(),llvm::GetElementPtrInst::setIsInBounds(), andtoGEPNoWrapFlags().
| inline |
Given (gep (gep p, x), y), determine the nowrap flags for (gep p, x+y).
Definition at line78 of fileGEPNoWrapFlags.h.
ReferenceshasNoUnsignedSignedWrap(),isInBounds(),llvm::Other, andwithoutNoUnsignedSignedWrap().
Referenced bycanRewriteGEPAsOffset(), andgetMergedGEPNoWrapFlags().
| inline |
| inlinestatic |
Definition at line46 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byllvm::IRBuilderBase::CreateConstGEP1_32(),llvm::IRBuilderBase::CreateConstGEP1_64(),llvm::IRBuilderBase::CreateConstGEP2_64(),decomposeGEP(),llvm::VPRecipeWithIRFlags::dropPoisonGeneratingFlags(),llvm::InstCombinerImpl::foldGEPICmp(),llvm::ScalarEvolution::getGEPExpr(),llvm::Operator::hasPoisonGeneratingFlags(), andllvm::PoisonFlags::PoisonFlags().
| inlinestatic |
Definition at line53 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced bymapFromLLVMGEPNoWrapFlags(), andtoGEPNoWrapFlags().
| inlinestatic |
Definition at line56 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byllvm::IRBuilderBase::CreateStructGEP(),mapFromLLVMGEPNoWrapFlags(),llvm::refineInstruction(),toGEPNoWrapFlags(), andllvm::InstCombinerImpl::visitGetElementPtrInst().
| inline |
Definition at line88 of fileGEPNoWrapFlags.h.
Referencesllvm::Other.
| inline |
Definition at line90 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags(), andllvm::Other.
| inline |
Definition at line96 of fileGEPNoWrapFlags.h.
Referencesllvm::Other.
| inline |
Definition at line87 of fileGEPNoWrapFlags.h.
Referencesllvm::Other.
| inline |
Definition at line93 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags(), andllvm::Other.
| inline |
Definition at line100 of fileGEPNoWrapFlags.h.
Referencesllvm::Other.
| inline |
Definition at line67 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byllvm::GetElementPtrInst::setIsInBounds().
| inline |
Definition at line70 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byintersectForOffsetAdd(), andllvm::InstCombinerImpl::visitGEPOfGEP().
| inline |
Definition at line73 of fileGEPNoWrapFlags.h.
ReferencesGEPNoWrapFlags().
Referenced byllvm::InstCombinerImpl::visitGEPOfGEP().