GCC Middle and Back End API Reference
capture Class Reference
Inheritance diagram for capture:
Collaboration diagram for capture:

Public Types

enum  op_type {
  OP_PREDICATE , OP_EXPR , OP_CAPTURE , OP_C_EXPR ,
  OP_IF , OP_WITH
}

Public Member Functions

 capture (location_t loc, unsigned where_, operand *what_, bool value_)
void gen_transform (FILE *f, int, const char *, bool, int, const char *, capture_info *, dt_operand **=0, int=0, const char *=nullptr) final override

Data Fields

unsigned where
bool value_match
operandwhat
enum op_type type
location_t location

Detailed Description

A wrapper around another operand that captures its value.

Member Enumeration Documentation

◆ op_type

enum operand::op_type
inherited
Enumerator
OP_PREDICATE 
OP_EXPR 
OP_CAPTURE 
OP_C_EXPR 
OP_IF 
OP_WITH 

Constructor & Destructor Documentation

◆ capture()

capture::capture ( location_t loc,
unsigned where_,
operand * what_,
bool value_ )
inline

Member Function Documentation

◆ gen_transform()

void capture::gen_transform ( FILE * f,
int indent,
const char * dest,
bool gimple,
int depth,
const char * in_type,
capture_info * cinfo,
dt_operand ** indexes = 0,
int cond_handling = 0,
const char * in_place = nullptr )
finaloverridevirtual
Generate transform code for a capture.

Reimplemented from operand.

References fprintf_indent(), gcc_assert, capture_info::info, is_a(), NULL, what, and where.

Field Documentation

◆ location

◆ type

◆ value_match

bool capture::value_match

Referenced by capture().

◆ what

operand* capture::what

◆ where

unsigned capture::where

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