X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbejavacoal.h;h=cbf7aa6d24f75f8cb53e13a356ba911925a9f338;hb=505d3662efed6efbca2c43eea2fe23b87816b285;hp=eb94c90ea52efe2499141002dbb8b5992c6dbd4a;hpb=6c89661f18047a222ab40af13a4cc97a69fe9b9c;p=libfirm diff --git a/ir/be/bejavacoal.h b/ir/be/bejavacoal.h index eb94c90ea..cbf7aa6d2 100644 --- a/ir/be/bejavacoal.h +++ b/ir/be/bejavacoal.h @@ -1,23 +1,33 @@ - -#ifndef _BEJAVACOAL_H -#define _BEJAVACOAL_H - -struct _be_java_coal_t; -typedef struct _be_java_coal_t be_java_coal_t; - - -#ifdef WITH_LIBCORE - -#include -#include -#include "firm_config.h" +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ /** - * Register libcore options. + * @file + * @brief Interface for external Java coalescer. + * @author Sebastian Hack + * @version $Id$ */ -void be_java_coal_register_options(lc_opt_entry_t *grp); +#ifndef FIRM_BE_BEJAVACOAL_H +#define FIRM_BE_BEJAVACOAL_H -#endif /* WITH_LIBCORE */ +struct _be_java_coal_t; +typedef struct _be_java_coal_t be_java_coal_t; /** * Add an interference edge @@ -84,9 +94,17 @@ int be_java_coal_get_color(be_java_coal_t *c, int n); */ be_java_coal_t *be_java_coal_init(const char *graph_name, int n_nodes, int n_regs, int dbg_level); +/** + * Start the JVM. + * This is also done lazily by be_java_coal_init() but as that is called by + * the coalescing driver, it might tamper the runtime measurements. So here is + * an extra call. + */ +void be_java_coal_start_jvm(void); + /** * Destroy the coalescing object. */ void be_java_coal_destroy(be_java_coal_t *c); -#endif +#endif /* FIRM_BE_BEJAVACOAL_H */