1 // runtime.h -- runtime functions called by generated code -*- C++ -*-
3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
13 class Call_expression
;
19 // The runtime functions which may be called by generated code.
23 #define DEF_GO_RUNTIME(CODE, NAME, PARAMS, RESULTS) CODE ,
25 #include "runtime.def"
29 // Number of runtime functions.
33 // Make a call to a runtime function.
34 static Call_expression
*
35 make_call(Function
, Location
, int, ...);
37 // Convert all the types used by runtime functions to the backend
42 // Return the runtime code for a named builtin function.
44 name_to_code(const std::string
&);
48 runtime_declaration(Function
);
51 #endif // !defined(GO_BUILTINS_H)