From: Götz Lindenmaier Date: Tue, 19 Aug 2003 13:18:31 +0000 (+0000) Subject: added copyright headers X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c2b4a9f3d77fda7989e9cbd6293b9f9f58f4221c;p=libfirm added copyright headers [r1712] --- diff --git a/Makefile.in b/Makefile.in index 12daac77f..056bce856 100644 --- a/Makefile.in +++ b/Makefile.in @@ -27,7 +27,7 @@ SOURCES := Makefile.in MakeRules.in MakeTargets\ config.guess config.sub configure.in \ stamp-h.in install-sh README configure -INSTALL_LIBS = libfirm.a libfirm.so +INSTALL_LIBS = libfirm.a GENFILES := stamp-h config.log config.cache # config.status config.h.in $(srcdir)/stamp-h.in diff --git a/ir/ident/ident.h b/ir/ident/ident.h index c94383a5a..99703159f 100644 --- a/ir/ident/ident.h +++ b/ir/ident/ident.h @@ -79,7 +79,6 @@ INLINE ident *id_from_str (const char *str, int len); * @see new_get_id_str(), id_from_str(), get_id_strlen() */ INLINE const char *get_id_str (ident *id); -//INLINE const char *get_id_str (ident *id); /* No more supported */ #define id_to_str get_id_str /** diff --git a/ir/ir/Makefile.in b/ir/ir/Makefile.in index 8066aae24..a02c975f4 100644 --- a/ir/ir/Makefile.in +++ b/ir/ir/Makefile.in @@ -1,8 +1,13 @@ -# Hey Emacs, this is a -*- makefile -*- # -# libFIRM Project -# -# $Id$ +# Project: libFIRM +# File name: ir/ir/Makefile.in +# Purpose: +# Author: Boris Boesler, Till Riedel +# Modified by: +# Created: +# CVS-ID: $Id$ +# Copyright: (c) 1999-2003 Universität Karlsruhe +# Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. # top_srcdir := @top_srcdir@ diff --git a/ir/ir/ircgcons.c b/ir/ir/ircgcons.c index 688c966f3..1b8377ed5 100644 --- a/ir/ir/ircgcons.c +++ b/ir/ir/ircgcons.c @@ -1,11 +1,15 @@ -/* ------------------------------------------------------------------- - * $Id$ - * ------------------------------------------------------------------- - * Auf- und Abbau der interprozeduralen Darstellung (Explizite - * interprozedurale Abhängigkeiten). - * - * Erstellt: Hubert Schmid, 09.06.2002 - * ---------------------------------------------------------------- */ +/* + * Project: libFIRM + * File name: ir/common + * Purpose: Construction and removal of interprocedural representation + * (explicit interprocedural dependencies). + * Author: Hubert Schmid + * Modified by: + * Created: 09.06.2002 + * CVS-ID: $Id$ + * Copyright: (c) 2002-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #include diff --git a/ir/ir/ircgcons.h b/ir/ir/ircgcons.h index 67b36be2a..9f0e04bce 100644 --- a/ir/ir/ircgcons.h +++ b/ir/ir/ircgcons.h @@ -1,11 +1,15 @@ -/* ------------------------------------------------------------------- - * $Id$ - * ------------------------------------------------------------------- - * Auf- und Abbau der interprozeduralen Darstellung (Explizite - * interprozedurale Abhaengigkeiten). - * - * Erstellt: Hubert Schmid, 09.06.2002 - * ---------------------------------------------------------------- */ +/* + * Project: libFIRM + * File name: ir/ir/ircgcons.h + * Purpose: Construction and removal of interprocedural representation + * (explicit interprocedural dependencies). + * Author: Hubert Schmid + * Modified by: + * Created: 09.06.2002 + * CVS-ID: $Id$ + * Copyright: (c) 2002-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifndef _CONSTRUCT_H_ diff --git a/ir/ir/ircgopt.c b/ir/ir/ircgopt.c index 3f697080b..59fa9a5cb 100644 --- a/ir/ir/ircgopt.c +++ b/ir/ir/ircgopt.c @@ -1,12 +1,20 @@ -/* ------------------------------------------------------------------- - * $Id$ - * ------------------------------------------------------------------- +/* + * Project: libFIRM + * File name: ir/ir/ircgopt.c + * Purpose: Removal of unreachable methods. + * Author: Hubert Schmid + * Modified by: + * Created: 09.06.2002 + * CVS-ID: $Id$ + * Copyright: (c) 2002-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + +/** * Entfernen von nicht erreichbaren (aufrufbaren) Methoden. Die Menge * der nicht erreichbaren Methoden wird aus der Abschätzung der * Aufrufrelation bestimmt. - * - * Erstellt: Hubert Schmid, 09.06.2002 - * ---------------------------------------------------------------- */ + */ #include "ircgopt.h" diff --git a/ir/ir/ircgopt.h b/ir/ir/ircgopt.h index 38b4d8367..ee78136e1 100644 --- a/ir/ir/ircgopt.h +++ b/ir/ir/ircgopt.h @@ -1,12 +1,20 @@ -/* ------------------------------------------------------------------- - * $Id$ - * ------------------------------------------------------------------- +/* + * Project: libFIRM + * File name: ir/ir/ircgopt.h + * Purpose: Removal of unreachable methods. + * Author: Hubert Schmid + * Modified by: + * Created: 09.06.2002 + * CVS-ID: $Id$ + * Copyright: (c) 2002-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + +/** * Entfernen von nicht erreichbaren (aufrufbaren) Methoden. Die Menge - * der nicht erreichbaren Methoden wird aus der Abschaetzung der + * der nicht erreichbaren Methoden wird aus der Abschätzung der * Aufrufrelation bestimmt. - * - * Erstellt: Hubert Schmid, 09.06.2002 - * ---------------------------------------------------------------- */ + */ #ifndef _GC_IRGS_H_ diff --git a/ir/ir/ircons.c b/ir/ir/ircons.c index 5ae316bcf..de91ee20f 100644 --- a/ir/ir/ircons.c +++ b/ir/ir/ircons.c @@ -1,15 +1,16 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Martin Trapp, Christian Schaefer -* -* ircons.c: basic and more detailed irnode constructors -* store, block and parameter administration. -* Adapted to extended FIRM nodes (exceptions...) and commented -* by Goetz Lindenmaier -*/ +/* + * Project: libFIRM + * File name: ir/ir/ircons.c + * Purpose: Various irnode constructors. Automatic construction + * of SSA representation. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Boris Boesler + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ -/* $Id$ */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/ircons.h b/ir/ir/ircons.h index 0cec21fe3..bc76b2abf 100644 --- a/ir/ir/ircons.h +++ b/ir/ir/ircons.h @@ -1,8 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/ircons.h + * Purpose: Various irnode constructors. Automatic construction + * of SSA representation. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Boris Boesler + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** @todo @@ -19,6 +26,8 @@ /** * @file ircons.h * + * documentation no more supported since 2001 + * * ir node construction. * * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index a7e62f2e7..def13dfe7 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -1,12 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Martin Trapp, Christian Schaefer -* -* irdump.h: dumping of an intermediate representation graph -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irdump.c + * Purpose: Write vcg representation of firm to file. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Hubert Schmidt + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index b0466113c..8b505390b 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -1,6 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irdump.h + * Purpose: Write vcg representation of firm to file. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Hubert Schmidt + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + /** * @file irdump.h @@ -20,7 +29,6 @@ * file dumped to. */ -/* $Id$ */ # ifndef _IRDUMP_H_ # define _IRDUMP_H_ @@ -31,7 +39,7 @@ /** * The value of this string will be added to the file name before .vcg * - * @todo GL: A hack + * @todo GL: A hack -- add parameter to dumper function. */ extern char *dump_file_suffix; diff --git a/ir/ir/irflag.c b/ir/ir/irflag.c index c0bcad35e..69004ebc3 100644 --- a/ir/ir/irflag.c +++ b/ir/ir/irflag.c @@ -1,12 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Christian Schaefer -* -* irflag --- optimization flags -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irflag.c + * Purpose: Flags to control optimizations. + * Author: Christian Schaefer, Goetz Lindenmaier + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1999-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irflag.h b/ir/ir/irflag.h index 31461c740..f0dc97902 100644 --- a/ir/ir/irflag.h +++ b/ir/ir/irflag.h @@ -1,6 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irflag.h + * Purpose: Flags to control optimizations. + * Author: Christian Schaefer, Goetz Lindenmaier + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1999-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irflag.h @@ -10,8 +18,6 @@ * @author Christian Schaefer */ -/* $Id$ */ - #ifndef _IRFLAG_H_ #define _IRFLAG_H_ diff --git a/ir/ir/irgmod.c b/ir/ir/irgmod.c index 5ec25d3e1..dbbc6962d 100644 --- a/ir/ir/irgmod.c +++ b/ir/ir/irgmod.c @@ -1,13 +1,14 @@ - -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Martin Trapp, Christian Schaefer -* -* irgmod: ir graph modification -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irgmod.h + * Purpose: Support for ir graph modification. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irgmod.h b/ir/ir/irgmod.h index fb6419dfa..13bada4f2 100644 --- a/ir/ir/irgmod.h +++ b/ir/ir/irgmod.h @@ -1,6 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irgmod.h + * Purpose: Support for ir graph modification. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @@ -11,7 +19,6 @@ * @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ # ifndef _IRGMOD_H_ # define _IRGMOD_H_ diff --git a/ir/ir/irgopt.c b/ir/ir/irgopt.c index 74bb31cf3..c5e7b04fb 100644 --- a/ir/ir/irgopt.c +++ b/ir/ir/irgopt.c @@ -1,12 +1,15 @@ -/* Coyright (C) 1998 - 2002 by Universitaet Karlsruhe -* All rights reserved. -* -* Author: Christian Schaefer, Goetz Lindenmaier, Sebastian Felis -* -* Optimizations for a whole ir graph, i.e., a procedure. -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irgopt.c + * Purpose: Optimizations for a whole ir graph, i.e., a procedure. + * Author: Christian Schaefer, Goetz Lindenmaier + * Modified by: Sebastian Felis + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irgopt.h b/ir/ir/irgopt.h index 58a19e610..fc102687c 100644 --- a/ir/ir/irgopt.h +++ b/ir/ir/irgopt.h @@ -1,16 +1,22 @@ -/* Copyright (C) 1998 - 2001 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irgopt.h + * Purpose: Optimizations for a whole ir graph, i.e., a procedure. + * Author: Christian Schaefer, Goetz Lindenmaier + * Modified by: Sebastian Felis + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** -* @file irgopt.h -* -* Optimizations for a whole ir graph, i.e., a procedure. -* -* @author Christian Schaefer, Goetz Lindenmaier -*/ - -/* $Id$ */ + * @file irgopt.h + * + * Optimizations for a whole ir graph, i.e., a procedure. + * + * @author Christian Schaefer, Goetz Lindenmaier + */ # ifndef _IRGOPT_H_ # define _IRGOPT_H_ diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 0cd1a8e58..ef80f9c3e 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -1,12 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Martin Trapp, Christian Schaefer -* -* -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irgraph.c + * Purpose: Entry point to the representation of procedure code. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irgraph.h b/ir/ir/irgraph.h index 1a21a6c5d..69bc03130 100644 --- a/ir/ir/irgraph.h +++ b/ir/ir/irgraph.h @@ -1,6 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irgraph.c + * Purpose: Entry point to the representation of procedure code. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irgraph.h @@ -10,7 +18,6 @@ * @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ #include "irop.h" diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index 6a466c658..a4e75ff29 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -1,6 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irgraph.c + * Purpose: Entry point to the representation of procedure code -- internal header. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irgraph_t.h @@ -10,7 +18,6 @@ * @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ # ifndef _IRGRAPH_T_H_ # define _IRGRAPH_T_H_ diff --git a/ir/ir/irgwalk.c b/ir/ir/irgwalk.c index 5b1016208..1d1cd8681 100644 --- a/ir/ir/irgwalk.c +++ b/ir/ir/irgwalk.c @@ -1,14 +1,21 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Author: Boris Boesler -* +/* + * Project: libFIRM + * File name: ir/ir/irgwalk.c + * Purpose: + * Author: Boris Boesler + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1999-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + +/** * traverse an ir graph * - execute the pre function before recursion * - execute the post function after recursion */ -/* $Id$ */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irgwalk.h b/ir/ir/irgwalk.h index 9b2c03ae3..2be1cbcb1 100644 --- a/ir/ir/irgwalk.h +++ b/ir/ir/irgwalk.h @@ -1,6 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irgwalk.h + * Purpose: + * Author: Boris Boesler + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1999-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + /** * @file irgwalk.h @@ -17,7 +26,6 @@ * graph before starting the walker. */ -/* $Id$ */ # ifndef _IRGWALK_H_ # define _IRGWALK_H_ diff --git a/ir/ir/irmode.c b/ir/ir/irmode.c index 1a5f3e580..e0bb6ee86 100644 --- a/ir/ir/irmode.c +++ b/ir/ir/irmode.c @@ -1,11 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -** All rights reserved. -** -** Authors: Martin Trapp, Christian Schaefer -** -*/ +/* + * Project: libFIRM + * File name: ir/ir/irmode.c + * Purpose: Data modes of operations. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Mathias Heil + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ -/* $Id$ */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irmode.h b/ir/ir/irmode.h index cef56c7af..6990b477a 100644 --- a/ir/ir/irmode.h +++ b/ir/ir/irmode.h @@ -1,7 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe - * All rights reserved. +/* + * Project: libFIRM + * File name: ir/ir/irmode.h + * Purpose: Data modes of operations. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Mathias Heil + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ -/* $Id$ */ /** * @file irmode.h @@ -18,6 +25,7 @@ * UKA tech report 1999-44 for more information about modes. * */ + #ifndef _IRMODE_H_ #define _IRMODE_H_ diff --git a/ir/ir/irmode_t.h b/ir/ir/irmode_t.h index c19686646..b97f0b877 100644 --- a/ir/ir/irmode_t.h +++ b/ir/ir/irmode_t.h @@ -1,5 +1,15 @@ +/* + * Project: libFIRM + * File name: ir/ir/irmode_t.h + * Purpose: Data modes of operations -- private header. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier, Mathias Heil + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ -/* $Id$ */ /** * @file irmode_t.h diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 928ef72d8..018670a3e 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -1,11 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Martin Trapp, Christian Schaefer, Goetz Lindenmaier -* -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irnode.c + * Purpose: Representation of an intermediate operation. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index 808dda698..ac440fef0 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -1,9 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe 3 2002/02/28 13:33:52 - * All rights reserved. +/* + * Project: libFIRM + * File name: ir/ir/irnode.h + * Purpose: Representation of an intermediate operation. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ -/* $Id$ */ - # ifndef _IRNODE_H_ # define _IRNODE_H_ diff --git a/ir/ir/irnode_t.h b/ir/ir/irnode_t.h index c5e1c465d..98eb4f0f9 100644 --- a/ir/ir/irnode_t.h +++ b/ir/ir/irnode_t.h @@ -1,6 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irnode_t.h + * Purpose: Representation of an intermediate operation -- private header. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + /** * @file irnode_t.h @@ -10,7 +19,6 @@ * @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ # ifndef _IRNODE_T_H_ # define _IRNODE_T_H_ diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 7fa38fa90..79a07302d 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -1,11 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Christian Schaefer -* -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irop.c + * Purpose: Representation of opcode of intermediate operation. + * Author: Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irop.h b/ir/ir/irop.h index 90434cd3d..4cf6f9d75 100644 --- a/ir/ir/irop.h +++ b/ir/ir/irop.h @@ -1,7 +1,14 @@ /* -* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ + * Project: libFIRM + * File name: ir/ir/irop.h + * Purpose: Representation of opcode of intermediate operation. + * Author: Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irop.h @@ -15,8 +22,6 @@ * 1999-14 */ -/* $Id$ */ - # ifndef _IROP_H_ # define _IROP_H_ diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index b6a07b555..5426a323f 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -1,12 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Christian Schaefer, Goetz Lindenmaier -* -* iropt --- optimizations intertwined with IR construction. -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/iropt.c + * Purpose: iropt --- optimizations intertwined with IR construction. + * Author: Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/iropt.h b/ir/ir/iropt.h index 50519a7e7..835e1dbe5 100644 --- a/ir/ir/iropt.h +++ b/ir/ir/iropt.h @@ -1,16 +1,23 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/iropt.h + * Purpose: iropt --- optimizations of an ir node. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file iropt.h * -* Declarations for optimizations intertwined with IR construction. +* Declarations for optimizations of an ir node. * * @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ # ifndef _IROPT_H_ # define _IROPT_H_ @@ -19,17 +26,19 @@ # include "irgraph.h" # include "irflag.h" -/* optimize_in_place (n) may change the contents of the ir_node itself, - [e.g. by making it a Id-node], but does not change its identity. - So it is safe to be called on already referenced nodes. - - optimize_in_place (n) returns a pointer to a node equivalent to `n' - which should be used instead of `n'. - - optimize (n) may deallocate `n' and everything allocated after `n'! */ - +/** If the expression referenced can be evaluated statically + * computed_value returns a tarval representing the result. + * Else returns tarval_bad. */ tarval *computed_value (ir_node *n); +/** Applies all optimizations to n that are expressible as a pattern + * in Firm, i.e., they need not a walk of the graph. + * Returns a better node for n. Does not free n -- other nodes could + * reference n. + * + * An equivalent optimization is applied in the constructors defined in + * ircons.ch. There n is freed if a better node could be found. + */ ir_node *optimize_in_place (ir_node *n); # endif /* _IROPT_H_ */ diff --git a/ir/ir/iropt_dbg.h b/ir/ir/iropt_dbg.h index 86db855c8..91638bcc2 100644 --- a/ir/ir/iropt_dbg.h +++ b/ir/ir/iropt_dbg.h @@ -1,3 +1,14 @@ +/* + * Project: libFIRM + * File name: ir/ir/iropt_dbg.h + * Purpose: Debug makros used in iropt. + * Author: Goetz Lindenmaier + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 2001-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /* This file contains makros that generate the calls to diff --git a/ir/ir/iropt_t.h b/ir/ir/iropt_t.h index 3bee1f3a0..996c336a9 100644 --- a/ir/ir/iropt_t.h +++ b/ir/ir/iropt_t.h @@ -1,6 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/iropt_t.h + * Purpose: iropt --- optimizations intertwined with IR construction -- private header. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file iropt_t.h @@ -10,8 +18,6 @@ * @author Martin Trapp, Christian Schaefer */ -/* $Id$ */ - # ifndef _IROPT_T_H_ # define _IROPT_T_H_ diff --git a/ir/ir/irprog.c b/ir/ir/irprog.c index 5b9ca0e60..53759f4b5 100644 --- a/ir/ir/irprog.c +++ b/ir/ir/irprog.c @@ -1,12 +1,14 @@ -/* Copyright (C) 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Goetz Lindenmaier -* -* irprog.c: ir representation of a program -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irprog.c + * Purpose: Entry point to the representation of a whole program. + * Author: Goetz Lindenmaier + * Modified by: + * Created: 2000 + * CVS-ID: $Id$ + * Copyright: (c) 2000-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include diff --git a/ir/ir/irprog.h b/ir/ir/irprog.h index 21f8e5e5e..23ac06936 100644 --- a/ir/ir/irprog.h +++ b/ir/ir/irprog.h @@ -1,6 +1,14 @@ -/* Copyright (C) 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irprog.h + * Purpose: Entry point to the representation of a whole program. + * Author: Goetz Lindenmaier + * Modified by: + * Created: 2000 + * CVS-ID: $Id$ + * Copyright: (c) 2000-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irprog.h @@ -19,8 +27,6 @@ * - (An obstack containing global things, e.g., the above mentioned lists.) */ -/* $Id$ */ - # ifndef _IRPROG_H_ # define _IRPROG_H_ diff --git a/ir/ir/irprog_t.h b/ir/ir/irprog_t.h index 46ceba598..4ecd123d5 100644 --- a/ir/ir/irprog_t.h +++ b/ir/ir/irprog_t.h @@ -1,5 +1,14 @@ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irprog_t.h + * Purpose: Entry point to the representation of a whole program 0-- private header. + * Author: Goetz Lindenmaier + * Modified by: + * Created: 2000 + * CVS-ID: $Id$ + * Copyright: (c) 2000-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irprog_t.h diff --git a/ir/ir/irvrfy.c b/ir/ir/irvrfy.c index c085b93df..177565177 100644 --- a/ir/ir/irvrfy.c +++ b/ir/ir/irvrfy.c @@ -1,13 +1,15 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe - * All rights reserved. - * - * Authors: Christian Schaefer - * - * +/* + * Project: libFIRM + * File name: ir/ir/irvrfy.c + * Purpose: Check irnodes for correctness. + * Author: Christian Schaefer + * Modified by: Goetz Lindenmaier. Till Riedel + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ -/* $Id$ */ - #ifdef HAVE_CONFIG_H # include #endif diff --git a/ir/ir/irvrfy.h b/ir/ir/irvrfy.h index d594c785b..adf96118e 100644 --- a/ir/ir/irvrfy.h +++ b/ir/ir/irvrfy.h @@ -1,6 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -*/ +/* + * Project: libFIRM + * File name: ir/ir/irvrfy.h + * Purpose: Check irnodes for correctness. + * Author: Christian Schaefer + * Modified by: Goetz Lindenmaier. Till Riedel + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ /** * @file irvrfy.h @@ -10,8 +18,6 @@ * @author Christian Schaefer */ -/* $Id$ */ - # ifndef _IRVRFY_H_ # define _IRVRFY_H_ diff --git a/ir/ir/old_fctnames.h b/ir/ir/old_fctnames.h index 88048c7df..649e49fa8 100644 --- a/ir/ir/old_fctnames.h +++ b/ir/ir/old_fctnames.h @@ -1,13 +1,15 @@ +/* + * Project: libFIRM + * File name: ir/ir/old_fctnames.h + * Purpose: Some makros supporting old function names. + * Author: Goetz Lindenmaier + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ -/* Copyright (C) 2001 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Goetz Lindenmaier -* -* Some makros supporting old function names. -*/ - -/* $Id$ */ #ifndef __OLD_FCTNAMES_H__ #define __OLD_FCTNAMES_H__ @@ -47,4 +49,8 @@ #define tarval_P_from_entity(X) new_tarval_from_entity(X, mode_P_mach) #define get_tarval_entity(X) tarval_to_entity(X) +/* ident.h */ // @@@ Attention: still in ident.h +//#define id_to_str get_id_str +//#define id_to_strlen get_id_strlen + #endif