Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Removed the debug output for the debug information. | Bernhard Schommer | 2015-10-01 | 1 | -2/+1 | |
| | | ||||||
* | | Use also fucntion id for local variables since atom is not unique. | Bernhard Schommer | 2015-10-01 | 1 | -3/+3 | |
| | | ||||||
* | | Do not move the line directives. | Bernhard Schommer | 2015-10-01 | 1 | -5/+9 | |
| | | ||||||
* | | Merge pull request #56 from AbsInt/debug_locations | Bernhard Schommer | 2015-09-30 | 1 | -6/+144 | |
|\ \ | | | | | | | Debug locations | |||||
| * | | Fixed minor issue with parameters that get put on the stack, made | Bernhard Schommer | 2015-09-30 | 1 | -2/+4 | |
| | | | | | | | | | | | | the code more robust and added indentation for convertCompositeDef | |||||
| * | | Added location for the formal parameters and move the end of all | Bernhard Schommer | 2015-09-28 | 1 | -2/+8 | |
| | | | | | | | | | | | | scopes before the last statement. | |||||
| * | | Added back again the emitting of the debuging annotations for debuging | Bernhard Schommer | 2015-09-27 | 1 | -3/+4 | |
| | | | | | | | | | | | | purpose. | |||||
| * | | Added translation of the range lists to location entries. | Bernhard Schommer | 2015-09-25 | 1 | -1/+1 | |
| | | | ||||||
| * | | Added support for the locations of stack allocated local variables. | Bernhard Schommer | 2015-09-25 | 1 | -40/+72 | |
| | | | | | | | | | | | | | | | 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 Schommer | 2015-09-24 | 1 | -6/+103 | |
| | | | | | | | | | | | | | | | In order to avoid the usage of too many labels we replace the debug statements during the Asmexpand phase. | |||||
* | | | Use R10 in atomic compare and exchange for the rlwinm. | Bernhard Schommer | 2015-09-22 | 1 | -2/+2 | |
| | | | ||||||
* | | | Fix typo dest -> dst | Michael Schmidt | 2015-09-22 | 1 | -9/+9 | |
| | | | ||||||
* | | | Merge pull request #54 from AbsInt/atomic-builtins | Bernhard Schommer | 2015-09-21 | 1 | -5/+56 | |
|\ \ \ | |/ / |/| | | Atomic builtins | |||||
| * | | Removed unnecessary move register and use the correct register as base value ↵ | Bernhard Schommer | 2015-09-21 | 1 | -3/+2 | |
| | | | | | | | | | | | | for the rlwinm. | |||||
| * | | Applied a few simplification for temporary registers. | Bernhard Schommer | 2015-09-21 | 1 | -13/+14 | |
| | | | ||||||
| * | | Integrated the fix of commit de40fce9c16ced8d23389cbcfc55ef6d99466fe8 for ↵ | Bernhard Schommer | 2015-09-17 | 1 | -11/+3 | |
| | | | | | | | | | | | | the atomics. | |||||
| * | | Removed usage of bne and removed duplicated code for return values of atomics. | Bernhard Schommer | 2015-09-15 | 1 | -39/+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 Schommer | 2015-09-14 | 1 | -9/+33 | |
| | | | | | | | | | | | | | | | | | | 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 Schommer | 2015-09-11 | 1 | -3/+1 | |
| | | | ||||||
| * | | Added builtin for atomic compare and exchange. | Bernhard Schommer | 2015-09-10 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | 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-builtins | Bernhard Schommer | 2015-09-10 | 1 | -0/+37 | |
| |\| | | | | | | | | | | | | | Conflicts: powerpc/CBuiltins.ml | |||||
| * | | Add builtin for atomic load. | Bernhard Schommer | 2015-09-09 | 1 | -0/+9 | |
| | | | | | | | | | | | | | | | | | | 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 Schommer | 2015-09-09 | 1 | -5/+16 | |
| |/ | | | | | | | | | 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_dcbtls | Michael Schmidt | 2015-09-18 | 1 | -1/+1 | |
|/ | ||||||
* | Added builtin for isel. | Bernhard Schommer | 2015-09-08 | 1 | -0/+4 | |
| | | | | | 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 Schommer | 2015-09-07 | 1 | -2/+17 | |
| | | | | | | 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 Schommer | 2015-09-07 | 1 | -0/+2 | |
| | ||||||
* | Simplified generation of builtins for cache instructions. | Bernhard Schommer | 2015-09-07 | 1 | -57/+18 | |
| | | | | | | The cache instructions need no special constraint on the address argument. Therefore also the generation of the address is no longer needed. | |||||
* | Added builtin for mbar instruction. | Bernhard Schommer | 2015-09-03 | 1 | -0/+6 | |
| | | | | This commit adds a builtin function for the mbar instruction. | |||||
* | New builtin for dcbz instruction. | Bernhard Schommer | 2015-09-03 | 1 | -4/+6 | |
| | | | | | | 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 Schommer | 2015-09-02 | 1 | -0/+10 | |
| | | | | This commit adds a builtin for the icbtls instruction. | |||||
* | Allow only CT values of 0 and 2 in dcbtls instruction. | Bernhard Schommer | 2015-09-02 | 1 | -1/+1 | |
| | | | | | The dcbtls instruction allows only the values 0 and 2 according to the PPC Isa. | |||||
* | Added builtin for dcbtls | Bernhard Schommer | 2015-09-02 | 1 | -9/+50 | |
| | | | | | | 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 Schommer | 2015-09-01 | 1 | -0/+11 | |
| | | | | | | 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 Leroy | 2015-08-24 | 1 | -19/+32 | |
| | ||||||
* | Renaming {BA,BR}_longofwords -> {BA,BR}_splitlong. | Xavier Leroy | 2015-08-22 | 1 | -19/+17 | |
| | | | | | | | | 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 Leroy | 2015-08-21 | 1 | -168/+189 | |
| | | | | | | | __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 builtin for the dcbf instruction | Bernhard Schommer | 2015-08-17 | 1 | -0/+2 | |
| | ||||||
* | Merge pull request #46 from AbsInt/asmexpand | Xavier Leroy | 2015-08-17 | 1 | -44/+11 | |
|\ | | | | | Merge branch 'asmexpand' of github.com:AbsInt/CompCert | |||||
| * | Merge branch 'master' into asmexpand | Bernhard Schommer | 2015-07-14 | 1 | -4/+5 | |
| |\ | ||||||
| * | | Merge branch 'asmexpand' of github.com:AbsInt/CompCert | Bernhard Schommer | 2015-06-26 | 1 | -44/+11 | |
| | | | ||||||
| * | | Revert "Merge branch 'asmexpand' of github.com:AbsInt/CompCert" | Bernhard Schommer | 2015-06-26 | 1 | -11/+44 | |
| | | | | | | | | | | | | | | | This reverts commit 777566e81b9762d6bdc773a1f63d56a7ac97433c, reversing changes made to daf9ac64fc9611ecf09d70560a6fa1ba80b9c9c1. | |||||
| * | | Merge branch 'asmexpand' of github.com:AbsInt/CompCert | Bernhard Schommer | 2015-06-26 | 1 | -44/+11 | |
| |\ \ | ||||||
| | * | | Moved the printing of the builtin functions etc. into Asmexpand for ARM in ↵ | Bernhard Schommer | 2015-06-10 | 1 | -44/+11 | |
| | | | | | | | | | | | | | | | | the same way as it is done for PPC. | |||||
* | | | | Added builtin for the dcbi instruction. | Bernhard Schommer | 2015-08-17 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | Added builitin for the icbi instruction. | Bernhard Schommer | 2015-08-14 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | Added builtin for the lwsync barrier. | Bernhard Schommer | 2015-08-14 | 1 | -0/+2 | |
| |_|/ |/| | | ||||||
* | | | Set/clear CR6 before calling an unprototyped function. | Xavier Leroy | 2015-07-07 | 1 | -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. | |||||
* | | | Corrected little typo in __builtin_clz function. | Bernhard Schommer | 2015-07-06 | 1 | -1/+1 | |
|/ / | ||||||
* / | Changed a minor typo: Pstwxu should be Pstwux | Bernhard Schommer | 2015-06-22 | 1 | -1/+1 | |
|/ |