libstdc++: Fix find_last_set(simd_mask) to ignore padding bits
[official-gcc.git] / gcc / go / gofrontend / runtime.h
blobbea2dbe33a5bd98153ef6512607e0ccddd11178c
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.
7 #ifndef GO_RUNTIME_H
8 #define GO_RUNTIME_H
10 class Gogo;
11 class Type;
12 class Named_object;
13 class Call_expression;
15 class Runtime
17 public:
19 // The runtime functions which may be called by generated code.
20 enum Function
23 #define DEF_GO_RUNTIME(CODE, NAME, PARAMS, RESULTS) CODE ,
25 #include "runtime.def"
27 #undef DEF_GO_RUNTIME
29 // Number of runtime functions.
30 NUMBER_OF_FUNCTIONS
33 // Make a call to a runtime function.
34 static Call_expression*
35 make_call(Gogo*, Function, Location, int, ...);
37 // Convert all the types used by runtime functions to the backend
38 // representation.
39 static void
40 convert_types(Gogo*);
42 // Return the runtime code for a named builtin function.
43 static Function
44 name_to_code(const std::string&);
46 private:
47 static Named_object*
48 runtime_declaration(Function);
51 #endif // !defined(GO_BUILTINS_H)