LLVM 22.0.0git
AliasAnalysis.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "aa"

Functions

 STATISTIC (NumNoAlias, "Number of NoAlias results")
 STATISTIC (NumMayAlias, "Number of MayAlias results")
 STATISTIC (NumMustAlias, "Number of MustAlias results")
 INITIALIZE_PASS (ExternalAAWrapperPass, "external-aa", "External Alias Analysis", false, true) ImmutablePass *llvm
 INITIALIZE_PASS_BEGIN (AAResultsWrapperPass, "aa", "Function Alias Analysis Results", false, true) INITIALIZE_PASS_END(AAResultsWrapperPass
static bool isNoAliasOrByValArgument (const Value *V)

Variables

static cl::opt< boolDisableBasicAA ("disable-basic-aa", cl::Hidden, cl::init(false))
 Allow disabling BasicAA from the AA results.
static cl::opt< boolEnableAATrace ("aa-trace", cl::Hidden, cl::init(false))
 Print a trace of alias analysis queries and their results.
 aa
Function Alias Analysis Results
Function Alias Analysis false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "aa"

Definition at line 53 of file AliasAnalysis.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( ExternalAAWrapperPass ,
"external-aa" ,
"External Alias Analysis" ,
false ,
true  )

Definition at line 701 of file AliasAnalysis.cpp.

References llvm::createExternalAAWrapperPass().

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AAResultsWrapperPass ,
"aa" ,
"Function Alias Analysis Results" ,
false ,
true  )

◆ isNoAliasOrByValArgument()

bool isNoAliasOrByValArgument ( const Value * V)
static

Definition at line 819 of file AliasAnalysis.cpp.

References A(), and llvm::dyn_cast().

Referenced by llvm::isIdentifiedFunctionLocal(), and llvm::isIdentifiedObject().

◆ STATISTIC() [1/3]

STATISTIC ( NumMayAlias ,
"Number of MayAlias results"  )

◆ STATISTIC() [2/3]

STATISTIC ( NumMustAlias ,
"Number of MustAlias results"  )

◆ STATISTIC() [3/3]

STATISTIC ( NumNoAlias ,
"Number of NoAlias results"  )

Variable Documentation

◆ aa

◆ DisableBasicAA

cl::opt< bool > DisableBasicAA("disable-basic-aa", cl::Hidden, cl::init(false)) ( "disable-basic-aa" ,
cl::Hidden ,
cl::init(false)  )
static

Allow disabling BasicAA from the AA results.

This is particularly useful when testing to isolate a single AA implementation.

Referenced by llvm::AAResultsWrapperPass::runOnFunction().

◆ EnableAATrace

cl::opt< bool > EnableAATrace("aa-trace", cl::Hidden, cl::init(false)) ( "aa-trace" ,
cl::Hidden ,
cl::init(false)  )
static

Print a trace of alias analysis queries and their results.

Referenced by llvm::AAResults::alias().

◆ false

hexagon widen Hexagon Store false hexagon widen Hexagon Load false

Definition at line 722 of file AliasAnalysis.cpp.

◆ Results

Function Alias Analysis Results

Definition at line 722 of file AliasAnalysis.cpp.

Referenced by llvm::MachineIRBuilder::buildIntrinsic(), llvm::MachineIRBuilder::buildIntrinsic(), combineVectorCompare(), llvm::computeSignatureVTs(), createTblForTrunc(), CustomNonLegalBITCASTResults(), emitConstantSizeRepmov(), emitConstantSizeRepstos(), llvm::WebAssemblyAsmPrinter::emitDecls(), emitErrorAndReplaceIntrinsicResults(), expandIntrinsicWChainHelper(), llvm::SelectionDAG::expandMultipleResultFPLibCall(), ExpandREAD_REGISTER(), llvm::gsym::MergedFunctionsInfo::getFuncsDataExtractors(), getReadTimeStampCounter(), llvm::R600TargetLowering::getSubtarget(), initializeUniqueCases(), llvm::isOverflowIntrinsicNoWrap(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::gsym::GsymReader::lookupAll(), lowerFixedVectorSegLoadIntrinsics(), LowerINTRINSIC_W_CHAIN(), llvm::HexagonTargetLowering::LowerOperationWrapper(), llvm::SystemZTargetLowering::LowerOperationWrapper(), llvm::TargetLowering::LowerOperationWrapper(), LowerREADCYCLECOUNTER(), llvm::AMDGPUTargetLowering::LowerSTORE(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), llvm::MachO::DylibReader::readFile(), ReplaceAddWithADDP(), ReplaceATOMIC_LOAD_128Results(), replaceAtomicSwap128(), ReplaceBITCAST(), replaceBoolVectorBitcast(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), replaceCMP_XCHG_128Results(), ReplaceCopyFromReg_128(), ReplaceINTRINSIC_W_CHAIN(), replaceINTRINSIC_WO_CHAINResults(), replaceLoadVector(), ReplaceLongIntrinsic(), llvm::AMDGPUTargetLowering::ReplaceNodeResults(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::AVRTargetLowering::ReplaceNodeResults(), llvm::HexagonTargetLowering::ReplaceNodeResults(), llvm::LoongArchTargetLowering::ReplaceNodeResults(), llvm::MipsTargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::RISCVTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::SparcTargetLowering::ReplaceNodeResults(), llvm::SystemZTargetLowering::ReplaceNodeResults(), llvm::VETargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::XCoreTargetLowering::ReplaceNodeResults(), replaceProxyReg(), ReplaceREADCYCLECOUNTER(), ReplaceReductionResults(), ReplaceTcgen05Ld(), replaceVecCondBranchResults(), replaceVPICKVE2GRResults(), llvm::DebugAssignmentTrackingAnalysis::run(), llvm::HvxSelector::selectShuffle(), llvm::signatureFromMVTs(), and simplifySwitchLookup().