diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-01-15 08:57:09 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-01-15 08:57:09 +0000 |
commit | c4877832826fa26aea9c236f16bdc2de16c98150 (patch) | |
tree | d25f713d4c6f4cf6126ad0451b80b32138eac84a /common/PrintAST.ml | |
parent | a82c9c0e4a0b8e37c9c3ea5ae99714982563606f (diff) | |
download | compcert-c4877832826fa26aea9c236f16bdc2de16c98150.tar.gz compcert-c4877832826fa26aea9c236f16bdc2de16c98150.zip |
Added volatile_read_global and volatile_store_global builtins.
Finished updating IA32 and ARM ports.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1792 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'common/PrintAST.ml')
-rw-r--r-- | common/PrintAST.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/PrintAST.ml b/common/PrintAST.ml index e0659766..baa5578c 100644 --- a/common/PrintAST.ml +++ b/common/PrintAST.ml @@ -32,6 +32,12 @@ let name_of_external = function | EF_builtin(name, sg) -> extern_atom name | EF_vload chunk -> sprintf "volatile load %s" (name_of_chunk chunk) | EF_vstore chunk -> sprintf "volatile store %s" (name_of_chunk chunk) + | EF_vload_global(chunk, id, ofs) -> + sprintf "volatile load %s global %s %ld" + (name_of_chunk chunk) (extern_atom id) (camlint_of_coqint ofs) + | EF_vstore_global(chunk, id, ofs) -> + sprintf "volatile store %s global %s %ld" + (name_of_chunk chunk) (extern_atom id) (camlint_of_coqint ofs) | EF_malloc -> "malloc" | EF_free -> "free" | EF_memcpy(sz, al) -> |