hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
IRFunctionDefinition::Builder Struct Reference

#include <IR.h>

Collaboration diagram for IRFunctionDefinition::Builder:

Public Member Functions

 Builder ()=default
 
BuildersetName (const yoi::wstr &name)
 
BuilderaddArgument (const yoi::wstr &argumentName, const std::shared_ptr< IRValueType > &argumentType)
 
BuildersetReturnType (const std::shared_ptr< IRValueType > &returnType)
 
BuildersetDebugInfo (const IRDebugInfo &debugInfo)
 
BuilderaddAttr (FunctionAttrs attr)
 
std::shared_ptr< IRFunctionDefinitionyield ()
 

Public Attributes

yoi::wstr name
 
yoi::vec< std::pair< yoi::wstr, std::shared_ptr< IRValueType > > > argumentTypes
 
std::shared_ptr< IRValueTypereturnType
 
std::set< FunctionAttrsattrs
 
IRDebugInfo debugInfo
 

Detailed Description

Definition at line 502 of file IR.h.

Constructor & Destructor Documentation

◆ Builder()

Builder ( )
default

Member Function Documentation

◆ addArgument()

◆ addAttr()

◆ setDebugInfo()

◆ setName()

◆ setReturnType()

◆ yield()

Member Data Documentation

◆ argumentTypes

yoi::vec<std::pair<yoi::wstr, std::shared_ptr<IRValueType> > > argumentTypes

Definition at line 504 of file IR.h.

Referenced by visitor::createCallableImplementationForFunction().

◆ attrs

◆ debugInfo

IRDebugInfo debugInfo

Definition at line 507 of file IR.h.

Referenced by IRFunctionDefinition::Builder::setDebugInfo().

◆ name

◆ returnType

std::shared_ptr<IRValueType> returnType

Definition at line 505 of file IR.h.


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