Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
cf204fd9
Commit
cf204fd9
authored
Sep 20, 2008
by
Michael Beck
Browse files
Bugfix: restructured so memory disambiguator can switched off
[r22136]
parent
52684e8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/ana/irmemory.c
View file @
cf204fd9
...
...
@@ -33,6 +33,7 @@
#include "irnode_t.h"
#include "irgraph_t.h"
#include "irprog_t.h"
#include "irmemory_t.h"
#include "irmemory.h"
#include "irflag.h"
#include "hashptr.h"
...
...
@@ -1052,8 +1053,6 @@ static void check_global_address(ir_node *irn, void *env) {
static
void
analyse_irp_globals_address_taken
(
void
)
{
int
i
;
FIRM_DBG_REGISTER
(
dbg
,
"firm.ana.irmemory"
);
init_taken_flag
(
get_glob_type
());
init_taken_flag
(
get_tls_type
());
...
...
@@ -1094,6 +1093,10 @@ void assure_irp_globals_address_taken_computed(void) {
analyse_irp_globals_address_taken
();
}
/* assure_irp_globals_address_taken_computed */
void
firm_init_memory_disambiguator
(
void
)
{
FIRM_DBG_REGISTER
(
dbg
,
"firm.ana.irmemory"
);
}
#include <adt/pmap.h>
#include "typerep.h"
...
...
ir/ana/irmemory_t.h
0 → 100644
View file @
cf204fd9
/*
* 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.
*/
/**
* @file
* @brief Memory disambiguator
* @author Michael Beck
* @date 27.12.2006
* @version $Id: irmemory.c 22135 2008-09-20 05:32:02Z beck $
*/
#ifndef FIRM_ANA_IRMEMORY_T_H
#define FIRM_ANA_IRMEMORY_T_H
/**
* One-time inititialization of the memory< disambiguator.
*/
void
firm_init_memory_disambiguator
(
void
);
#endif
ir/common/firm.c
View file @
cf204fd9
...
...
@@ -63,6 +63,7 @@
#include "funccall_t.h"
#include "irhooks.h"
#include "iredges_t.h"
#include "irmemory_t.h"
#include "tropt.h"
#include "debugger.h"
#include "be_t.h"
...
...
@@ -148,6 +149,8 @@ void init_firm(const firm_parameter_t *param)
init_type_identify
(
def_params
.
ti_if
);
/* class cast optimization */
firm_init_class_casts_opt
();
/* memory disambiguation */
firm_init_memory_disambiguator
();
/* Init architecture dependent optimizations. */
arch_dep_init
(
arch_dep_default_factory
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment