| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Like for arm and ppc the functions for section names and start and
end addresses of compilation units are defined and the print_annot
function is moved to Asmexpandaux.ml.
|
| |
|
|
|
|
|
|
| |
The name_of_section function no returns the correct name for the
debug sections, the prologue and epilogue directives are added and
the labels for the live ranges are introduced in the Asmexpand pass.
|
|
|
|
|
|
|
|
| |
taking the ident as argument.
This functions are currently not used inside the proven part but it
is nice to have them already there, when they are used by some future
pass. They also come equiped with the corresponding proofs.
|
|
|
|
|
|
| |
The function is generalized to work for all backends and takes as
additional arguments functions for the printing of the simple
instructions and the translation function for the arguments.
|
|
|
|
| |
information.
|
|\
| |
| |
| |
| | |
Conflicts:
debug/DebugInformation.ml
|
| | |
|
| | |
|
|/
|
|
|
| |
Since files without function definition contain no function in the
Section_text the filenum would be empty otherwise.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Debug locations
|
| |
| |
| |
| | |
the code more robust and added indentation for convertCompositeDef
|
| |
| |
| |
| |
| |
| | |
If a user uses the #pragma use_section for functions the diab linker
requires a separate debug_info section for each entry. This commit
adds functionality to emulate this behavior.
|
| |
| |
| |
| | |
scopes before the last statement.
|
| |
| |
| |
| | |
purpose.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Debuging code.
The old functions to store the symbol for the Global variables and retrive this
is no longer needed since the atom is stored in DebugInformation. Also the
Debug.Abbrev module is no longer needed.
|
| | |
|
| |
| |
| |
| |
| | |
This commit adds furher support for location information for local
variables and starts with the implementation of the debug_loc section.
|
| |
| |
| |
| |
| | |
In order to avoid the usage of too many labels we replace the
debug statements during the Asmexpand phase.
|
| |
| |
| |
| |
| |
| | |
Local variables are now added with bogus lexical scopes to reflect
the actually lexical scopes. Also this commit fixes assembler problems
of the das when a user section with the name ".text" is defined.
|
| |
| |
| |
| |
| |
| | |
Instead of creating separate annotations for the local variables
we call the Debug.add_lvar_scope and we construct a mapping from
function id + scope id to scope information.
|
| |\
| | |
| | |
| | |
| | |
| | | |
Conflicts:
debug/CtoDwarf.ml
debug/DwarfPrinter.ml
|
| | |
| | |
| | |
| | |
| | | |
Introduced a new dwarf generation from the information collected in
the DebugInformation and removed the old CtODwarf translation.
|
| | |
| | |
| | |
| | | |
This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Added a new file debug/Debug.ml which will be the interface between for
generating and printing the debuging information. Currently it contains
only the code for the line directived.
|
| |\ \
| | | |
| | | |
| | | | |
Merge branch 'master' into debug_locations
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
Atomic builtins
|
| | | |
| | | |
| | | |
| | | | |
for the rlwinm.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
the atomics.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Instead of introducing a new bne instruction in Asm.v and the TargetPrinter.ml
I use the equivalent bf instruction. The duplicated code is due to unused return
values of builtins. Now we only emit the additional code for the return value if
the return value is used instead of duplicating the whole emiting sequence.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In order to avoid clashes during register allocation etc. The
builtins now use fixed registers and mark additional registers as
destroyed for temporaries.
|
| | | | |
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The new __builtin_atomic_compare_exchange(int *ptr,int *exp,int *dsr);
writes dsr into ptr if ptr is equal to exp and returns true if
ptr is not equal to exp it writes ptr into exp and returns false.
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Conflicts:
powerpc/CBuiltins.ml
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Implement the new __builtin_atomic_load(int *a, int *b); which stores
*a in *b. This differs from the atomic_load of the GCC, since the PPC
ISA manual states that you must jump before the load again if it fails.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The new builtin __builtin_atomic_exchange(int *a, int *b, int *c)
stores *b in *a and sets *c to the old value of *a.
|
| |_|/ / /
|/| | | | |
|
| |/ / /
|/| | | |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | | |
The builtin_isel function takes a _Bool as first argument and returns
either the second or the third depending on the value of the _Bool.
|