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
c1a8c8f1
Commit
c1a8c8f1
authored
Dec 21, 2012
by
Christoph Mallon
Browse files
ia32: Move struct constraint_t into the only file, which uses it.
parent
2882a191
Changes
2
Show whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_common_transform.c
View file @
c1a8c8f1
...
...
@@ -145,6 +145,18 @@ int ia32_mode_needs_gp_reg(ir_mode *mode)
return
mode_is_int
(
mode
)
||
mode_is_reference
(
mode
)
||
mode
==
mode_b
;
}
/**
* An assembler constraint.
*/
typedef
struct
constraint_t
{
const
arch_register_class_t
*
cls
;
unsigned
allowed_registers
;
char
all_registers_allowed
;
char
memory_possible
;
char
immediate_type
;
int
same_as
;
}
constraint_t
;
static
void
parse_asm_constraints
(
constraint_t
*
const
constraint
,
ident
*
const
constraint_text
,
bool
const
is_output
)
{
memset
(
constraint
,
0
,
sizeof
(
constraint
[
0
]));
...
...
ir/be/ia32/ia32_common_transform.h
View file @
c1a8c8f1
...
...
@@ -15,19 +15,6 @@
#include
"firm_types.h"
#include
"bearch_ia32_t.h"
/**
* An assembler constraint.
*/
typedef
struct
constraint_t
constraint_t
;
struct
constraint_t
{
const
arch_register_class_t
*
cls
;
unsigned
allowed_registers
;
char
all_registers_allowed
;
char
memory_possible
;
char
immediate_type
;
int
same_as
;
};
extern
ir_heights_t
*
ia32_heights
;
extern
int
ia32_no_pic_adjust
;
...
...
Write
Preview
Supports
Markdown
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