#include <elf.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/mman.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <vector>#include <algorithm>#include <stack>#include <map>#include <tree.h>#include "obj_info.h"#include "lib_phase_dir.h"

Go to the source code of this file.
Data Types | |
| type | ltstr |
| type | PROC |
| type | less< PROC > |
| type | less_src_order< PROC > |
| type | CALL |
| type | less< CALL > |
| type | compress_path |
Defines | |
| #define | PAGESIZE 65536 |
Typedefs | |
| typedef pair< PROC *, PROC * > | map_key |
| typedef map< map_key, int > | CG |
| typedef map< const char *, PROC *, ltstr > | PROCTAB |
Functions/Subroutines | |
| bool | file_exists (const char *path) |
| void | read_call_graph (const char *cgraph, PROCTAB &procedures, CG &cg) |
| template<class Shdr> | |
| void | process_object_file (File_Info &fi, Shdr *tag, PROCTAB &procedures) |
| void | read_obj_list (const char *objlist, PROCTAB &procedures) |
| bool | layout (PROC *p1, PROC *p2, int freq, int retry_count) |
| void | emit_lkcord (const char *outfile, vector< PROC * > &proc_layout, vector< PROC * > &src_order_layout) |
| main (int argc, char *argv[]) | |
Variables | |
| int | debug = 0 |
| const int | LEN = 1000 |
| const int | MIN_FREQ = 15 |
| int | src_order = 0 |
| #define PAGESIZE 65536 |
Definition at line 135 of file ipa_cord.cxx.
| bool file_exists | ( | const char * | path | ) |
Definition at line 139 of file ipa_cord.cxx.
Definition at line 265 of file ipa_cord.cxx.
References PROC::base, debug, PROC::emit, PROC::name, PROC::offset, PAGESIZE, printf(), PROC::size, and PROC::size_cluster.
Referenced by _elf32_layout(), main(), scn_data_layout(), xstormy16_compute_stack_layout(), xstormy16_expand_epilogue(), xstormy16_expand_prologue(), and xstormy16_initial_elimination_offset().
| main | ( | int argc | , | |
| char * | argv[] | |||
| ) |
Definition at line 418 of file ipa_cord.cxx.
References CALL, callee, caller, debug, PROC::emit, emit_lkcord(), exit(), fprintf(), CALL::freq, layout(), MIN_FREQ, PROC::name, NULL, outfile, p, p1, p2, printf(), proc, Q, read_call_graph(), read_obj_list(), CALL::retry_count, and strcmp().
| void process_object_file | ( | File_Info & | fi, | |
| Shdr * | tag, | |||
| PROCTAB & | procedures | |||
| ) | [inline] |
Definition at line 210 of file ipa_cord.cxx.
References File_Info::begin(), debug, File_Info::end(), p, printf(), size, src_order, strcmp(), and strncmp().
Referenced by read_obj_list().
Definition at line 240 of file ipa_cord.cxx.
References debug, ELFCLASS32, exit(), fclose(), fgets(), fopen, File_Info::Get_obj_class(), in, LEN, NULL, perror(), printf(), process_object_file(), and strtok().
Referenced by main().
| int debug = 0 |
Definition at line 61 of file ipa_cord.cxx.
| const int LEN = 1000 |
Definition at line 62 of file ipa_cord.cxx.
| const int MIN_FREQ = 15 |
| int src_order = 0 |
1.5.6