//===- TypeBasedAliasAnalysis.h - Type-Based Alias Analysis -----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // /// \file /// This is the interface for a metadata-based TBAA. See the source file for /// details on the algorithm. // //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H #define LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" #include <memory> namespace llvm { class CallBase; class Function; class MDNode; class MemoryLocation; /// A simple AA result that uses TBAA metadata to answer queries. class TypeBasedAAResult : public AAResultBase { … }; /// Analysis pass providing a never-invalidated alias analysis result. class TypeBasedAA : public AnalysisInfoMixin<TypeBasedAA> { … }; /// Legacy wrapper pass to provide the TypeBasedAAResult object. class TypeBasedAAWrapperPass : public ImmutablePass { … }; //===--------------------------------------------------------------------===// // // createTypeBasedAAWrapperPass - This pass implements metadata-based // type-based alias analysis. // ImmutablePass *createTypeBasedAAWrapperPass(); } // end namespace llvm #endif // LLVM_ANALYSIS_TYPEBASEDALIASANALYSIS_H