clang API Documentation

Public Member Functions
clang::CodeGen::LoopInfo Class Reference

Information used when generating a structured loop. More...

#include <CGLoopInfo.h>

List of all members.

Public Member Functions

 LoopInfo (llvm::BasicBlock *Header, const LoopAttributes &Attrs)
 Construct a new LoopInfo for the loop with entry Header.
llvm::MDNode * getLoopID () const
 Get the loop id metadata for this loop.
llvm::BasicBlock * getHeader () const
 Get the header block of this loop.
const LoopAttributesgetAttributes () const
 Get the set of attributes active for this loop.

Detailed Description

Information used when generating a structured loop.

Definition at line 54 of file CGLoopInfo.h.


Constructor & Destructor Documentation

LoopInfo::LoopInfo ( llvm::BasicBlock *  Header,
const LoopAttributes Attrs 
)

Construct a new LoopInfo for the loop with entry Header.

Definition at line 77 of file CGLoopInfo.cpp.

References createMetadata().


Member Function Documentation

Get the set of attributes active for this loop.

Definition at line 66 of file CGLoopInfo.h.

Referenced by clang::CodeGen::LoopInfoStack::getCurLoopParallel(), and clang::CodeGen::LoopInfoStack::InsertHelper().

llvm::BasicBlock* clang::CodeGen::LoopInfo::getHeader ( ) const [inline]

Get the header block of this loop.

Definition at line 63 of file CGLoopInfo.h.

Referenced by clang::CodeGen::LoopInfoStack::InsertHelper().

llvm::MDNode* clang::CodeGen::LoopInfo::getLoopID ( ) const [inline]

Get the loop id metadata for this loop.

Definition at line 60 of file CGLoopInfo.h.

Referenced by clang::CodeGen::LoopInfoStack::getCurLoopID(), and clang::CodeGen::LoopInfoStack::InsertHelper().


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