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
bfc5faed
Commit
bfc5faed
authored
Jan 20, 2009
by
Michael Beck
Browse files
- renamed variadicity to ir_variadicity
[r25285]
parent
63f5de37
Changes
5
Hide whitespace changes
Inline
Side-by-side
include/libfirm/typerep.h
View file @
bfc5faed
...
...
@@ -1888,19 +1888,19 @@ ir_type *get_method_value_res_type(const ir_type *method);
* variable amount of arguments (e.g. C's printf). Default is
* non_variadic.
*/
typedef
enum
variadicity
{
variadicity_non_variadic
,
/**< non variadic */
variadicity_variadic
/**< variadic */
}
variadicity
;
typedef
enum
ir_
variadicity
{
variadicity_non_variadic
,
/**< non variadic */
variadicity_variadic
/**< variadic */
}
ir_
variadicity
;
/** Returns the null-terminated name of this variadicity. */
const
char
*
get_variadicity_name
(
variadicity
vari
);
const
char
*
get_variadicity_name
(
ir_
variadicity
vari
);
/** Returns the variadicity of a method. */
variadicity
get_method_variadicity
(
const
ir_type
*
method
);
ir_
variadicity
get_method_variadicity
(
const
ir_type
*
method
);
/** Sets the variadicity of a method. */
void
set_method_variadicity
(
ir_type
*
method
,
variadicity
vari
);
void
set_method_variadicity
(
ir_type
*
method
,
ir_
variadicity
vari
);
/**
* Returns the first variadic parameter index of a type.
...
...
ir/ir/iropt.c
View file @
bfc5faed
...
...
@@ -5720,7 +5720,7 @@ static ir_node *transform_node_Call(ir_node *call) {
ident
*
id
;
dbg_info
*
db
;
int
i
,
n_res
,
n_param
;
variadicity
var
;
ir_
variadicity
var
;
if
(
!
is_Proj
(
callee
))
return
call
;
...
...
ir/lower/lower_calls.c
View file @
bfc5faed
...
...
@@ -86,7 +86,7 @@ static ir_type *create_modified_mtd_type(const lower_params_t *lp, ir_type *mtp)
ident
*
id
;
add_hidden
hidden_params
;
int
changed
=
0
;
variadicity
var
;
ir_
variadicity
var
;
if
(
is_lowered_type
(
mtp
))
{
/* the type is already lowered. Not handled yet. */
...
...
ir/tr/type.c
View file @
bfc5faed
...
...
@@ -1390,7 +1390,7 @@ ir_type *get_method_value_res_type(const ir_type *method) {
}
/* Returns the null-terminated name of this variadicity. */
const
char
*
get_variadicity_name
(
variadicity
vari
)
{
const
char
*
get_variadicity_name
(
ir_
variadicity
vari
)
{
#define X(a) case a: return #a
switch
(
vari
)
{
X
(
variadicity_non_variadic
);
...
...
@@ -1401,12 +1401,12 @@ const char *get_variadicity_name(variadicity vari) {
#undef X
}
variadicity
get_method_variadicity
(
const
ir_type
*
method
)
{
ir_
variadicity
get_method_variadicity
(
const
ir_type
*
method
)
{
assert
(
method
&&
(
method
->
type_op
==
type_method
));
return
method
->
attr
.
ma
.
variadicity
;
}
void
set_method_variadicity
(
ir_type
*
method
,
variadicity
vari
)
{
void
set_method_variadicity
(
ir_type
*
method
,
ir_
variadicity
vari
)
{
assert
(
method
&&
(
method
->
type_op
==
type_method
));
method
->
attr
.
ma
.
variadicity
=
vari
;
}
...
...
ir/tr/type_t.h
View file @
bfc5faed
...
...
@@ -74,7 +74,7 @@ typedef struct {
int
n_res
;
/**< Number of results. */
tp_ent_pair
*
res_type
;
/**< Array of result type/value ir_entity pairs. */
ir_type
*
value_ress
;
/**< A type whose entities represent copied value results. */
variadicity
variadicity
;
/**< The variadicity of the method. */
ir_
variadicity
variadicity
;
/**< The variadicity of the method. */
int
first_variadic_param
;
/**< The index of the first variadic parameter or -1 if non-variadic .*/
unsigned
additional_properties
;
/**< Set of additional method properties. */
unsigned
irg_calling_conv
;
/**< A set of calling convention flags. */
...
...
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