MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::ComplexStructBuilder Class Reference

#include "mlir/Conversion/ComplexToLLVM/ComplexToLLVM.h"

+ Inheritance diagram for mlir::ComplexStructBuilder:

Public Member Functions

Value real (OpBuilder &builder, Location loc)
 
void setReal (OpBuilder &builder, Location loc, Value real)
 
Value imaginary (OpBuilder &builder, Location loc)
 
void setImaginary (OpBuilder &builder, Location loc, Value imaginary)
 
 StructBuilder (Value v)
 Construct a helper for the given complex number value. More...
 
- Public Member Functions inherited from mlir::StructBuilder
 StructBuilder (Value v)
 Construct a helper for the given value. More...
 
 operator Value ()
 

Static Public Member Functions

static ComplexStructBuilder undef (OpBuilder &builder, Location loc, Type type)
 Build IR creating an undef value of the complex number type. More...
 
- Static Public Member Functions inherited from mlir::StructBuilder
static StructBuilder undef (OpBuilder &builder, Location loc, Type descriptorType)
 Builds IR creating an undef value of the descriptor type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::StructBuilder
Value extractPtr (OpBuilder &builder, Location loc, unsigned pos) const
 Builds IR to extract a value from the struct at position pos. More...
 
void setPtr (OpBuilder &builder, Location loc, unsigned pos, Value ptr)
 Builds IR to set a value in the struct at position pos. More...
 
- Protected Attributes inherited from mlir::StructBuilder
Value value
 
Type structType
 

Detailed Description

Definition at line 22 of file ComplexToLLVM.h.

Member Function Documentation

◆ imaginary()

Value ComplexStructBuilder::imaginary ( OpBuilder builder,
Location  loc 
)

Definition at line 56 of file ComplexToLLVM.cpp.

References kImaginaryPosInComplexNumberStruct.

◆ real()

Value ComplexStructBuilder::real ( OpBuilder builder,
Location  loc 
)

Definition at line 47 of file ComplexToLLVM.cpp.

References kRealPosInComplexNumberStruct.

◆ setImaginary()

void ComplexStructBuilder::setImaginary ( OpBuilder builder,
Location  loc,
Value  imaginary 
)

Definition at line 51 of file ComplexToLLVM.cpp.

References kImaginaryPosInComplexNumberStruct.

◆ setReal()

void ComplexStructBuilder::setReal ( OpBuilder builder,
Location  loc,
Value  real 
)

Definition at line 42 of file ComplexToLLVM.cpp.

References kRealPosInComplexNumberStruct.

◆ StructBuilder()

StructBuilder::StructBuilder
explicit

Construct a helper for the given complex number value.

Definition at line 29 of file StructBuilder.cpp.

◆ undef()

ComplexStructBuilder ComplexStructBuilder::undef ( OpBuilder builder,
Location  loc,
Type  type 
)
static

Build IR creating an undef value of the complex number type.

Definition at line 36 of file ComplexToLLVM.cpp.

References mlir::OpBuilder::create().


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