clang 24.0.0git
clang::CIRGen::CIRGenFunction::LoopHintsScope Class Reference

Keeps track of a loop while its body is emitted. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunction.h"

Public Member Functions

 LoopHintsScope (CIRGenFunction &cgf, llvm::ArrayRef< const Attr * > attrs, bool mustProgress)
 ~LoopHintsScope ()
 LoopHintsScope (const LoopHintsScope &)=delete
LoopHintsScope & operator= (const LoopHintsScope &)=delete
void setLoopHints (cir::LoopOpInterface loopOp) const
 Attaches the hints, and the id that identifies the loop, to the loop once its body has been emitted.

Detailed Description

Keeps track of a loop while its body is emitted.

A loop that is unrolled and jammed by the loop around it only has the hints for what happens before the jam. What happens after it is kept by the outer loop.

Definition at line 2725 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ LoopHintsScope() [1/2]

CIRGenFunction::LoopHintsScope::LoopHintsScope ( CIRGenFunction & cgf,
llvm::ArrayRef< const Attr * > attrs,
bool mustProgress )

◆ ~LoopHintsScope()

clang::CIRGen::CIRGenFunction::LoopHintsScope::~LoopHintsScope ( )
inline

Definition at line 2736 of file CIRGenFunction.h.

◆ LoopHintsScope() [2/2]

clang::CIRGen::CIRGenFunction::LoopHintsScope::LoopHintsScope ( const LoopHintsScope & )
delete

References LoopHintsScope().

Member Function Documentation

◆ operator=()

LoopHintsScope & clang::CIRGen::CIRGenFunction::LoopHintsScope::operator= ( const LoopHintsScope & )
delete

References LoopHintsScope().

◆ setLoopHints()

void CIRGenFunction::LoopHintsScope::setLoopHints ( cir::LoopOpInterface loopOp) const

Attaches the hints, and the id that identifies the loop, to the loop once its body has been emitted.

The loop doesn't get anything if it has no hints.

Definition at line 1168 of file CIRGenStmt.cpp.

Referenced by clang::CIRGen::CIRGenFunction::emitCXXForRangeStmt(), clang::CIRGen::CIRGenFunction::emitDoStmt(), clang::CIRGen::CIRGenFunction::emitForStmt(), and clang::CIRGen::CIRGenFunction::emitWhileStmt().


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