aboutsummaryrefslogtreecommitdiffstats
path: root/arm/Unusedglob1.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2014-11-05 14:36:14 +0100
committerXavier Leroy <xavier.leroy@inria.fr>2014-11-24 17:50:52 +0100
commit10941819e09e2f9090e7fe39301a0b9026a0eba0 (patch)
treec773e41153eb302cc5865de8f08e8503a7449057 /arm/Unusedglob1.ml
parentad8c37d0ebb36cb2e54baeacf5a4c7ff145b1a99 (diff)
downloadcompcert-10941819e09e2f9090e7fe39301a0b9026a0eba0.tar.gz
compcert-10941819e09e2f9090e7fe39301a0b9026a0eba0.zip
Verification of the Unusedglob pass (removal of unreferenced static global definitions). Assorted changes to ia32/Op.v. PowerPC and ARM need updating.
Diffstat (limited to 'arm/Unusedglob1.ml')
-rw-r--r--arm/Unusedglob1.ml32
1 files changed, 0 insertions, 32 deletions
diff --git a/arm/Unusedglob1.ml b/arm/Unusedglob1.ml
deleted file mode 100644
index 33a9bf8d..00000000
--- a/arm/Unusedglob1.ml
+++ /dev/null
@@ -1,32 +0,0 @@
-(* *********************************************************************)
-(* *)
-(* The Compcert verified compiler *)
-(* *)
-(* Xavier Leroy, INRIA Paris-Rocquencourt *)
-(* *)
-(* Copyright Institut National de Recherche en Informatique et en *)
-(* Automatique. All rights reserved. This file is distributed *)
-(* under the terms of the INRIA Non-Commercial License Agreement. *)
-(* *)
-(* *********************************************************************)
-
-(* Identifiers referenced from an ARM Asm instruction *)
-
-open Datatypes
-open AST
-open Asm
-
-let referenced_builtin ef =
- match ef with
- | EF_vload_global(chunk, id, ofs) -> [id]
- | EF_vstore_global(chunk, id, ofs) -> [id]
- | _ -> []
-
-let referenced_instr = function
- | Pbsymb(s, _) -> [s]
- | Pblsymb(s, _) -> [s]
- | Ploadsymbol(_, s, _) -> [s]
- | Pbuiltin(ef, _, _) -> referenced_builtin ef
- | _ -> []
-
-let code_of_function f = f.fn_code