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

An object to manage conditionally-evaluated expressions. More...

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

Public Member Functions

 ConditionalEvaluation (CIRGenFunction &cgf, mlir::Location loc)
 loc is the location of the conditional expression.
void beginEvaluation ()
void endEvaluation ()
void advanceInsertPoint (mlir::Operation *op)
 Records op as the last operation emitted at the pre-conditional insertion point, so that a later emission lands after it rather than ahead of it.
mlir::OpBuilder::InsertPoint getInsertPoint () const
 Returns the insertion point which will be executed prior to each evaluation of the conditional code.

Detailed Description

An object to manage conditionally-evaluated expressions.

Definition at line 2518 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ ConditionalEvaluation()

clang::CIRGen::CIRGenFunction::ConditionalEvaluation::ConditionalEvaluation ( CIRGenFunction & cgf,
mlir::Location loc )
inline

loc is the location of the conditional expression.

It is used for the cleanup scope this may open.

Definition at line 2532 of file CIRGenFunction.h.

References clang::CIRGen::CIRGenFunction::CIRGenFunction().

Member Function Documentation

◆ advanceInsertPoint()

void clang::CIRGen::CIRGenFunction::ConditionalEvaluation::advanceInsertPoint ( mlir::Operation * op)
inline

Records op as the last operation emitted at the pre-conditional insertion point, so that a later emission lands after it rather than ahead of it.

Definition at line 2573 of file CIRGenFunction.h.

◆ beginEvaluation()

void clang::CIRGen::CIRGenFunction::ConditionalEvaluation::beginEvaluation ( )
inline

◆ endEvaluation()

void clang::CIRGen::CIRGenFunction::ConditionalEvaluation::endEvaluation ( )
inline

◆ getInsertPoint()

mlir::OpBuilder::InsertPoint clang::CIRGen::CIRGenFunction::ConditionalEvaluation::getInsertPoint ( ) const
inline

Returns the insertion point which will be executed prior to each evaluation of the conditional code.

In LLVM OG, this method is called getStartingBlock.

Definition at line 2578 of file CIRGenFunction.h.


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