FLANG
fir::TBAATree::SubtreeState Class Reference

#include <flang/Optimizer/Analysis/TBAAForest.h>

Public Member Functions

 SubtreeState (const SubtreeState &)=delete
 SubtreeState (SubtreeState &&)=default
mlir::LLVM::TBAATagAttr getTag (llvm::StringRef uniqueId) const
mlir::LLVM::TBAATagAttr getTag () const
mlir::LLVM::TBAATypeDescriptorAttr getRoot () const
SubtreeStategetOrCreateNamedSubtree (mlir::StringAttr name)

Detailed Description

This contains a TBAA subtree based on some parent. New tags can be added under the parent using getTag.

Member Function Documentation

◆ getOrCreateNamedSubtree()

fir::TBAATree::SubtreeState & fir::TBAATree::SubtreeState::getOrCreateNamedSubtree ( mlir::StringAttr name)

For the given name, get or create a subtree in the current subtree. For example, this is used for creating subtrees inside the "global data" subtree for the COMMON block variables belonging to the same COMMON block.

◆ getTag()

mlir::LLVM::TBAATagAttr fir::TBAATree::SubtreeState::getTag ( ) const

Create a TBAA tag pointing to the root of this subtree, i.e. all the children tags will alias with this tag.


The documentation for this class was generated from the following files: