|
clang 24.0.0git
|
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. | |
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.
| CIRGenFunction::LoopHintsScope::LoopHintsScope | ( | CIRGenFunction & | cgf, |
| llvm::ArrayRef< const Attr * > | attrs, | ||
| bool | mustProgress ) |
Definition at line 1137 of file CIRGenStmt.cpp.
References clang::CIRGen::CIRGenFunction::CIRGenFunction(), clang::CIRGen::CIRGenFunction::currentLoopHintsScope, getHintsAfterJam(), getHintsBeforeJam(), hasTransformsAfterJam(), and vectorizes().
Referenced by LoopHintsScope(), and operator=().
|
inline |
Definition at line 2736 of file CIRGenFunction.h.
|
delete |
References LoopHintsScope().
|
delete |
References LoopHintsScope().
| 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().