LLVM 22.0.0git
llvm::ForeachLoop Struct Reference

ForeachLoop - Record the iteration state associated with a for loop. More...

#include "TableGen/TGParser.h"

Public Member Functions

void dump () const
 ForeachLoop (SMLoc Loc, const VarInit *IVar, const Init *LValue)

Public Attributes

SMLoc Loc
const VarInitIterVar
const InitListValue
std::vector< RecordsEntryEntries

Detailed Description

ForeachLoop - Record the iteration state associated with a for loop.

This is used to instantiate items in the loop body.

IterVar is allowed to be null, in which case no iteration variable is defined in the loop at all. (This happens when a ForeachLoop is constructed by desugaring an if statement.)

Definition at line 61 of file TGParser.h.

Constructor & Destructor Documentation

◆ ForeachLoop()

llvm::ForeachLoop::ForeachLoop ( SMLoc Loc,
const VarInit * IVar,
const Init * LValue )
inline

Definition at line 69 of file TGParser.h.

References IterVar, ListValue, Loc, and LValue.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void ForeachLoop::dump ( ) const

Definition at line 4625 of file TGParser.cpp.

References Entries, llvm::errs(), IterVar, ListValue, and LLVM_DUMP_METHOD.

Member Data Documentation

◆ Entries

std::vector<RecordsEntry> llvm::ForeachLoop::Entries

Definition at line 65 of file TGParser.h.

Referenced by dump().

◆ IterVar

const VarInit* llvm::ForeachLoop::IterVar

Definition at line 63 of file TGParser.h.

Referenced by dump(), and ForeachLoop().

◆ ListValue

const Init* llvm::ForeachLoop::ListValue

Definition at line 64 of file TGParser.h.

Referenced by dump(), and ForeachLoop().

◆ Loc

SMLoc llvm::ForeachLoop::Loc

Definition at line 62 of file TGParser.h.

Referenced by ForeachLoop().


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