Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
IR::FunctionType Struct Reference

#include <Types.h>

Static Public Member Functions

static IR_API const FunctionTypeget (ResultType ret, const std::initializer_list< ValueType > &parameters)
 
static IR_API const FunctionTypeget (ResultType ret, const std::vector< ValueType > &parameters)
 
static IR_API const FunctionTypeget (ResultType ret=ResultType::none)
 

Public Attributes

ResultType ret
 
std::vector< ValueTypeparameters
 

Detailed Description

Definition at line 193 of file Types.h.

Member Function Documentation

◆ get() [1/3]

const FunctionType * IR::FunctionType::get ( ResultType ret,
const std::initializer_list< ValueType > & parameters )
static

Definition at line 38 of file Types.cpp.

39 { return findExistingOrCreateNew(FunctionTypeMap::get(),FunctionTypeMap::Key {ret,parameters},[=]{return new FunctionType(ret,parameters);}); }
Value findExistingOrCreateNew(std::map< Key, Value > &map, Key &&key, CreateValueThunk createValueThunk)
Definition Types.cpp:26
ResultType ret
Definition Types.h:195
std::vector< ValueType > parameters
Definition Types.h:196
static std::map< Key, FunctionType * > & get()
Definition Types.cpp:18
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get() [2/3]

const FunctionType * IR::FunctionType::get ( ResultType ret,
const std::vector< ValueType > & parameters )
static

Definition at line 40 of file Types.cpp.

41 { return findExistingOrCreateNew(FunctionTypeMap::get(),FunctionTypeMap::Key {ret,parameters},[=]{return new FunctionType(ret,parameters);}); }
Here is the call graph for this function:

◆ get() [3/3]

const FunctionType * IR::FunctionType::get ( ResultType ret = ResultType::none)
static

Definition at line 42 of file Types.cpp.

43 { return findExistingOrCreateNew(FunctionTypeMap::get(),FunctionTypeMap::Key {ret,{}},[=]{return new FunctionType(ret,{});}); }
Here is the call graph for this function:

Member Data Documentation

◆ parameters

std::vector<ValueType> IR::FunctionType::parameters

Definition at line 196 of file Types.h.

◆ ret

ResultType IR::FunctionType::ret

Definition at line 195 of file Types.h.


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