aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into ppc64Xavier Leroy2015-10-115-107/+207
|\ | | | | | | Resolved conflicts in:configure powerpc/Asmexpand.ml
| * Filled in missing functions for debug information on ia32.Bernhard Schommer2015-10-091-23/+2
| | | | | | | | | | | | 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.
| * Fixed syntax error and added Section_debug_line to the Json serializer.Bernhard Schommer2015-10-092-1/+2
| |
| * Filled in the rest of the funciton needed for thte debug info under arm.Bernhard Schommer2015-10-092-13/+8
| | | | | | | | | | | | 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.
| * Added versions of the tranform_* functions in AST to work with functionsBernhard Schommer2015-10-081-22/+1
| | | | | | | | | | | | | | | | 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.
| * Moved expandation of debug information to Asmexpandaux.Bernhard Schommer2015-10-081-66/+5
| | | | | | | | | | | | 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.
| * Ensure that there are file directives for all files used in the debugBernhard Schommer2015-10-041-1/+2
| | | | | | | | information.
| * Merge branch 'gnu-debug'Bernhard Schommer2015-10-021-7/+25
| |\ | | | | | | | | | | | | Conflicts: debug/DebugInformation.ml
| | * First try of debug information for gcc.Bernhard Schommer2015-10-021-7/+25
| | |
| * | Quote the section names in the json files.Bernhard Schommer2015-10-021-1/+1
| | |
| * | Always call print debug_section in the prologue.Bernhard Schommer2015-10-021-18/+18
| |/ | | | | | | | | Since files without function definition contain no function in the Section_text the filenum would be empty otherwise.
| * Cleanup of now no longer needed functions.Bernhard Schommer2015-10-011-23/+0
| |
| * Removed the debug output for the debug information.Bernhard Schommer2015-10-011-2/+1
| |
| * Use also fucntion id for local variables since atom is not unique.Bernhard Schommer2015-10-011-3/+3
| |
| * Do not move the line directives.Bernhard Schommer2015-10-011-5/+9
| |
| * Merge pull request #56 from AbsInt/debug_locationsBernhard Schommer2015-09-303-68/+201
| |\ | | | | | | Debug locations
| | * Fixed minor issue with parameters that get put on the stack, madeBernhard Schommer2015-09-301-2/+4
| | | | | | | | | | | | the code more robust and added indentation for convertCompositeDef
| | * Change the way the debug sections are printed.Bernhard Schommer2015-09-282-67/+50
| | | | | | | | | | | | | | | | | | 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.
| | * Added location for the formal parameters and move the end of allBernhard Schommer2015-09-281-2/+8
| | | | | | | | | | | | scopes before the last statement.
| | * Added back again the emitting of the debuging annotations for debugingBernhard Schommer2015-09-271-3/+4
| | | | | | | | | | | | purpose.
| | * Added printing the reference address for the LocRef and started refactoring oldBernhard Schommer2015-09-271-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Added translation of the range lists to location entries.Bernhard Schommer2015-09-251-1/+1
| | |
| | * Added support for the locations of stack allocated local variables.Bernhard Schommer2015-09-253-42/+77
| | | | | | | | | | | | | | | This commit adds furher support for location information for local variables and starts with the implementation of the debug_loc section.
| | * Added placing labels for live ranges etc.Bernhard Schommer2015-09-241-6/+103
| | | | | | | | | | | | | | | In order to avoid the usage of too many labels we replace the debug statements during the Asmexpand phase.
| | * Added support for printing local variables and fixed issue with .textBernhard Schommer2015-09-231-3/+6
| | | | | | | | | | | | | | | | | | 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.
| | * Record the scope structure during unblocking.Bernhard Schommer2015-09-221-0/+8
| | | | | | | | | | | | | | | | | | 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.
| | * Merge branch 'debugscopes' into debug_locationsBernhard Schommer2015-09-217-70/+72
| | |\ | | | | | | | | | | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml
| | * | First version with computation of dwarf info from debug info.Bernhard Schommer2015-09-171-3/+4
| | | | | | | | | | | | | | | | | | | | Introduced a new dwarf generation from the information collected in the DebugInformation and removed the old CtODwarf translation.
| | * | Revert "Startet implementation of new Debug interface."Bernhard Schommer2015-09-101-3/+2
| | | | | | | | | | | | | | | | This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed.
| | * | Startet implementation of new Debug interface.Bernhard Schommer2015-09-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | XBernhard Schommer2015-09-0610-280/+429
| | |\ \ | | | | | | | | | | | | | | | Merge branch 'master' into debug_locations
| | * | | Added symbol functions for printing of the location for global variables.Bernhard Schommer2015-08-211-0/+9
| | | | |
| * | | | Use R10 in atomic compare and exchange for the rlwinm.Bernhard Schommer2015-09-221-2/+2
| | | | |
| * | | | Fix typo dest -> dstMichael Schmidt2015-09-221-9/+9
| | | | |
| * | | | Merge pull request #54 from AbsInt/atomic-builtinsBernhard Schommer2015-09-213-8/+83
| |\ \ \ \ | | |_|_|/ | |/| | | Atomic builtins
| | * | | Removed unnecessary move register and use the correct register as base value ↵Bernhard Schommer2015-09-211-3/+2
| | | | | | | | | | | | | | | | | | | | for the rlwinm.
| | * | | Applied a few simplification for temporary registers.Bernhard Schommer2015-09-212-16/+16
| | | | |
| | * | | Integrated the fix of commit de40fce9c16ced8d23389cbcfc55ef6d99466fe8 for ↵Bernhard Schommer2015-09-171-11/+3
| | | | | | | | | | | | | | | | | | | | the atomics.
| | * | | Removed usage of bne and removed duplicated code for return values of atomics.Bernhard Schommer2015-09-154-52/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | Use fix registers for atomic builtins.Bernhard Schommer2015-09-143-15/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to avoid clashes during register allocation etc. The builtins now use fixed registers and mark additional registers as destroyed for temporaries.
| | * | | Use the gcc version of atomic load.Bernhard Schommer2015-09-114-4/+10
| | | | |
| | * | | Type of argument for Pbne is label not atom.Bernhard Schommer2015-09-101-1/+1
| | | | |
| | * | | Merge branch 'master' into atomic-builtinsBernhard Schommer2015-09-101-1/+1
| | |\ \ \
| | * | | | Added builtin for atomic compare and exchange.Bernhard Schommer2015-09-104-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | | Merge branch 'master' into atomic-builtinsBernhard Schommer2015-09-103-4/+41
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: powerpc/CBuiltins.ml
| | * | | | | Add builtin for atomic load.Bernhard Schommer2015-09-092-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | | | Added an builtin for the atomic exchange operation.Bernhard Schommer2015-09-095-7/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | correct error message for __builtin_dcbtlsMichael Schmidt2015-09-181-1/+1
| | |_|/ / / | |/| | | |
* / | | | | Use PowerPC 64 bits instructions (when available) for int<->FP conversions.Xavier Leroy2015-09-1314-14/+170
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Also: implement __builtin_isel on non-EREF platforms with a branch-free instruction sequence. Also: extend ./configure so that it recognizes "ppc64-" and "e5500-" platforms in addition to "ppc-".
* | / / / Name of stwcx. instruction should be printed Pstwcx_.Bernhard Schommer2015-09-101-1/+1
| |/ / / |/| | |