src/codegen/intrinsics/builtins.cpp
file · Source (opens in a new tab)
No documentation comment.
Namespaces
Members
builtinTable
public · function · Source (opens in a new tab)
const std::map< std::string, BuiltinEmitter > & sun::codegen::intrinsics::builtinTable()Most built-ins are a plain forward to one method; a few need an extra argument or a second call, so the table holds callables rather than member-function pointers.
Related: BuiltinEmitter
BuiltinEmitter
public · typedef · Source (opens in a new tab)
using sun::codegen::intrinsics::BuiltinEmitter =
std::function<Value*(IntrinsicsGenerator&, const CallExprAST&)>What emitting one built-in takes: the generator to emit through, and the call being lowered.
Related: IntrinsicsGenerator, CallExprAST