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
abe1a120
Commit
abe1a120
authored
Dec 14, 2011
by
Matthias Braun
Browse files
trouts: move add_* functions to private API
parent
ca8347e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/libfirm/trouts.h
View file @
abe1a120
...
...
@@ -63,19 +63,16 @@ FIRM_API ir_node *get_type_alloc(const ir_type *tp, size_t pos);
FIRM_API
size_t
get_type_n_casts
(
const
ir_type
*
tp
);
/** Cast node that cast a pointer to this type. */
FIRM_API
ir_node
*
get_type_cast
(
const
ir_type
*
tp
,
size_t
pos
);
FIRM_API
void
add_type_cast
(
const
ir_type
*
tp
,
ir_node
*
cast
);
/** Return number of upcasts. O(\#casts). */
/** Returns number of upcasts. O(\#casts). */
FIRM_API
size_t
get_class_n_upcasts
(
const
ir_type
*
clss
);
/** Return number of downcasts. O(\#casts). */
FIRM_API
size_t
get_class_n_downcasts
(
const
ir_type
*
clss
);
FIRM_API
size_t
get_type_n_pointertypes_to
(
const
ir_type
*
tp
);
FIRM_API
ir_type
*
get_type_pointertype_to
(
const
ir_type
*
tp
,
size_t
pos
);
FIRM_API
void
add_type_pointertype_to
(
const
ir_type
*
tp
,
ir_type
*
ptp
);
FIRM_API
size_t
get_type_n_arraytypes_of
(
const
ir_type
*
tp
);
FIRM_API
ir_type
*
get_type_arraytype_of
(
const
ir_type
*
tp
,
size_t
pos
);
FIRM_API
void
add_type_arraytype_of
(
const
ir_type
*
tp
,
ir_type
*
atp
);
/** Compute the outs of types and entities.
*
...
...
ir/ana/trouts.c
View file @
abe1a120
...
...
@@ -25,7 +25,7 @@
*/
#include "config.h"
#include "trouts.h"
#include "trouts
_t
.h"
#include "array.h"
#include "pmap.h"
...
...
ir/ana/trouts_t.h
0 → 100644
View file @
abe1a120
/*
* Copyright (C) 1995-2011 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 Reverse edges that reference types/entities.
* @author Goetz Lindenmaier
* @date 29.10.2004
*/
#ifndef FIRM_ANA_TROUTS_T_H
#define FIRM_ANA_TROUTS_T_H
#include "trouts.h"
void
add_type_cast
(
const
ir_type
*
tp
,
ir_node
*
cast
);
void
add_type_pointertype_to
(
const
ir_type
*
tp
,
ir_type
*
ptp
);
void
add_type_arraytype_of
(
const
ir_type
*
tp
,
ir_type
*
atp
);
#endif
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