Skip to content

Commit

Permalink
PIRC: Really use headerizer
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@44009 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
bacek committed Feb 16, 2010
1 parent be17a8d commit b1a15eb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
2 changes: 1 addition & 1 deletion compilers/pirc/src/pirregalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ reset_register_count(ARGIN(lsr_allocator * const lsr))
lsr->r[i] = 1;
}

/* HEADERIZER HFILE: none */
/* HEADERIZER HFILE: compilers/pirc/src/pirregalloc.h */

/* HEADERIZER BEGIN: static */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
Expand Down
42 changes: 35 additions & 7 deletions compilers/pirc/src/pirregalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,41 @@ typedef struct linear_scan_register_allocator {

} lsr_allocator;

lsr_allocator *new_linear_scan_register_allocator(struct lexer_state *lexer);

void destroy_linear_scan_register_allocator(lsr_allocator *lsr);

live_interval * new_live_interval(lsr_allocator * const lsr, unsigned firstuse, pir_type type);

void linear_scan_register_allocation(lsr_allocator * const lsr);
/* HEADERIZER BEGIN: compilers/pirc/src/pirregalloc.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */

void destroy_linear_scan_register_allocator(ARGMOD(lsr_allocator *lsr))
__attribute__nonnull__(1)
FUNC_MODIFIES(*lsr);

void linear_scan_register_allocation(ARGIN(lsr_allocator * const lsr))
__attribute__nonnull__(1);

PARROT_CAN_RETURN_NULL
lsr_allocator * new_linear_scan_register_allocator(
ARGIN_NULLOK(struct lexer_state *lexer));

PARROT_CAN_RETURN_NULL
PARROT_MALLOC
PARROT_WARN_UNUSED_RESULT
live_interval * new_live_interval(
ARGIN(lsr_allocator * const lsr),
unsigned firstuse_location,
pir_type type)
__attribute__nonnull__(1);

#define ASSERT_ARGS_destroy_linear_scan_register_allocator \
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(lsr))
#define ASSERT_ARGS_linear_scan_register_allocation \
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(lsr))
#define ASSERT_ARGS_new_linear_scan_register_allocator \
__attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
#define ASSERT_ARGS_new_live_interval __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(lsr))
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: compilers/pirc/src/pirregalloc.c */

#endif /* PARROT_PIR_PIRREGALLOC_H_GUARD */

Expand Down

0 comments on commit b1a15eb

Please sign in to comment.