| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Debug locations
|
| | |
| | |
| | |
| | | |
the code more robust and added indentation for convertCompositeDef
|
| | |
| | |
| | |
| | | |
scopes before the last statement.
|
| | |
| | |
| | |
| | | |
purpose.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
The cache instructions need no special constraint on the address
argument. Therefore also the generation of the address is no longer
needed.
|
|
|
|
| |
This commit adds a builtin function for the mbar instruction.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This commit adds a builtin for the icbtls instruction.
|
|
|
|
|
| |
The dcbtls instruction allows only the values 0 and 2 according to
the PPC Isa.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
Use EF_debug instead of EF_annot for line number annotations.
Introduce PrintAsmaux.print_debug_info (very incomplete).
powerpc/Asmexpand: revise expand_memcpy_small.
|
|
|
|
|
|
|
| |
__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.
|
| |
|
|\
| |
| | |
Merge branch 'asmexpand' of github.com:AbsInt/CompCert
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This reverts commit 777566e81b9762d6bdc773a1f63d56a7ac97433c, reversing
changes made to daf9ac64fc9611ecf09d70560a6fa1ba80b9c9c1.
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
the same way as it is done for PPC.
|
| | | | |
|
| | | | |
|
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|