aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * correct error message for __builtin_dcbtlsMichael Schmidt2015-09-181-1/+1
| |
| * Name of stwcx. instruction should be printed Pstwcx_.Bernhard Schommer2015-09-101-1/+1
| |
| * Changed the first argument of builtin_isel to bool.Bernhard Schommer2015-09-101-1/+1
| |
| * Added builtin for isel.Bernhard Schommer2015-09-085-1/+13
| | | | | | | | | | 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.
| * Added builtins for call frame and return address.Bernhard Schommer2015-09-076-9/+29
| | | | | | | | | | | | This builtins can be used to get the call frame address and the return address. To correctly compute the load address of the return address the allocframe is extended to contain the offset of the return address.
| * Added builtin for the cmpb instruction.Bernhard Schommer2015-09-075-0/+9
| |
| * Simplified generation of builtins for cache instructions.Bernhard Schommer2015-09-072-60/+21
| | | | | | | | | | | | The cache instructions need no special constraint on the address argument. Therefore also the generation of the address is no longer needed.
* | 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
| * Fixed typo in AsmToJSON for instruction Pstfdu.Bernhard Schommer2015-09-041-1/+1
| |
| * Added json printing of Pbctr.Bernhard Schommer2015-09-031-1/+1
| |
| * Fixed minor typo in printing of the Plbzx instruction in AsmToJSON.Bernhard Schommer2015-09-031-1/+1
| |
| * Fixed minor typo in AsmToJSON.Bernhard Schommer2015-09-031-1/+1
| |
| * Added builtin for mbar instruction.Bernhard Schommer2015-09-036-0/+15
| | | | | | | | This commit adds a builtin function for the mbar instruction.
| * New builtin for dcbz instruction.Bernhard Schommer2015-09-035-24/+33
| | | | | | | | | | | | This commit adds a builtin for the dcbz instructions. Additionally the dcbt,dcbtst,dcbtls and icbtls instruction are changed to their actually form all taking one additional register in Asm.v.
| * Added builtin for the icbtls instruction.Bernhard Schommer2015-09-026-0/+19
| | | | | | | | This commit adds a builtin for the icbtls instruction.
| * Allow only CT values of 0 and 2 in dcbtls instruction.Bernhard Schommer2015-09-022-4/+4
| | | | | | | | | | The dcbtls instruction allows only the values 0 and 2 according to the PPC Isa.
| * Print p_int_constant instead of p_int in AsmToJSON.Bernhard Schommer2015-09-021-5/+5
| |
| * Added builtin for dcbtlsBernhard Schommer2015-09-026-13/+63
| | | | | | | | | | | | THis commit adds a builtin function for the dcbtls instruction. Additionaly it changes the printing of the dcbt and dcbtst instruction to embedded mode and adds support for different address variants.
| * Added the gcc builtin prefetch.Bernhard Schommer2015-09-016-0/+25
| | | | | | | | | | | | This commit implements the gcc __builtin_prefetch in a form with all arguments for the powerpc architecture. The resulting instructions are the dcbt and dcbtst instructions in Server Category.
| * Improve error reporting in Asmexpand.Xavier Leroy2015-08-241-19/+32
| |
| * Renaming {BA,BR}_longofwords -> {BA,BR}_splitlong.Xavier Leroy2015-08-224-33/+24
| | | | | | | | | | | | | | | | Use EF_debug instead of EF_annot for line number annotations. Introduce PrintAsmaux.print_debug_info (very incomplete). powerpc/Asmexpand: revise expand_memcpy_small.
| * Adapt the PowerPC port to the new builtin representation.Xavier Leroy2015-08-2110-258/+285
| | | | | | | | | | | | | | __builtin_get_spr() and __builtin_set_spr() work, but horrible error message if the SPR argument is not a constant. powerpc/AsmToJSON.ml needs updating.
* | Added symbol functions for printing of the location for global variables.Bernhard Schommer2015-08-211-0/+9
|/
* Added builtin for the dcbf instructionBernhard Schommer2015-08-175-0/+9
|
* Merge pull request #46 from AbsInt/asmexpandXavier Leroy2015-08-171-44/+11
|\ | | | | Merge branch 'asmexpand' of github.com:AbsInt/CompCert
| * Merge branch 'master' into asmexpandBernhard Schommer2015-07-144-17/+419
| |\
| * | Merge branch 'asmexpand' of github.com:AbsInt/CompCertBernhard Schommer2015-06-261-44/+11
| | |
| * | Revert "Merge branch 'asmexpand' of github.com:AbsInt/CompCert"Bernhard Schommer2015-06-261-11/+44
| | | | | | | | | | | | | | | This reverts commit 777566e81b9762d6bdc773a1f63d56a7ac97433c, reversing changes made to daf9ac64fc9611ecf09d70560a6fa1ba80b9c9c1.
| * | Merge branch 'asmexpand' of github.com:AbsInt/CompCertBernhard Schommer2015-06-261-44/+11
| |\ \
| | * | Moved the printing of the builtin functions etc. into Asmexpand for ARM in ↵Bernhard Schommer2015-06-101-44/+11
| | | | | | | | | | | | | | | | the same way as it is done for PPC.
* | | | Added builtin for the dcbi instruction.Bernhard Schommer2015-08-175-4/+11
| | | |
* | | | Added builitin for the icbi instruction.Bernhard Schommer2015-08-145-1/+11
| | | |
* | | | Added builtin for the lwsync barrier.Bernhard Schommer2015-08-145-3/+12
| | | |
* | | | Value analysis: keep track of pointer values that leak through small ↵Xavier Leroy2015-07-192-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | integers with Uns or Sgn abstract values. This is a follow-up to commit 2932b53. It adds provenance tracking to the Uns and Sgn abstract values.
* | | | Value analysis: keep track of pointer values that leak through arithmetic ↵Xavier Leroy2015-07-191-2/+2
| |_|/ |/| | | | | | | | | | | | | | operations with undefined behaviors. Consider (x ^ 1) ^ 1 where x is a intptr_t containing a pointer value. "x ^ 1" evaluates to Vundef in the CompCert semantics, hence the value analysis, in strict mode, gives abstract result Ifptr Pbot (= any number but not a pointer). In relaxed mode, we now give abstract result Ifptr (poffset p) where p is the abstraction of the pointer, thus keeping track of the actual leak of the pointer value.
* | | Set/clear CR6 before calling an unprototyped function.Xavier Leroy2015-07-071-3/+4
| | | | | | | | | | | | | | | | | | A function declared without a prototype could be implemented by a vararg function (even though this is undefined behavior in C99). Be nice in this case.
* | | Use the functions from C2C to extract the information for the atoms. ↵Bernhard Schommer2015-07-061-17/+18
| | | | | | | | | | | | Simplified printing of storage class.