Add assembly.h for use in .S files.
llvm-svn: 85263
diff --git a/compiler-rt/lib/arm/Makefile.mk b/compiler-rt/lib/arm/Makefile.mk
index 7f9a982..ac08a61 100644
--- a/compiler-rt/lib/arm/Makefile.mk
+++ b/compiler-rt/lib/arm/Makefile.mk
@@ -17,6 +17,6 @@
Target := Optimized
# FIXME: use automatic dependencies?
-Dependencies := $(wildcard $(Dir)/*.h)
+Dependencies := $(wildcard lib/*.h $(Dir)/*.h)
include make/subdir.mk
diff --git a/compiler-rt/lib/arm/adddf3vfp.S b/compiler-rt/lib/arm/adddf3vfp.S
index f4bb1ce..b1f7077 100644
--- a/compiler-rt/lib/arm/adddf3vfp.S
+++ b/compiler-rt/lib/arm/adddf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// double __adddf3vfp(double a, double b) { return a + b; }
diff --git a/compiler-rt/lib/arm/addsf3vfp.S b/compiler-rt/lib/arm/addsf3vfp.S
index 81b114f..4a4a041 100644
--- a/compiler-rt/lib/arm/addsf3vfp.S
+++ b/compiler-rt/lib/arm/addsf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __addsf3vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/bswapdi2.S b/compiler-rt/lib/arm/bswapdi2.S
index 7e1aeb1..70c13e6 100644
--- a/compiler-rt/lib/arm/bswapdi2.S
+++ b/compiler-rt/lib/arm/bswapdi2.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern uint64_t __bswapdi2(uint64_t);
diff --git a/compiler-rt/lib/arm/bswapsi2.S b/compiler-rt/lib/arm/bswapsi2.S
index d7f977e..8f0e1d3 100644
--- a/compiler-rt/lib/arm/bswapsi2.S
+++ b/compiler-rt/lib/arm/bswapsi2.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern uint32_t __bswapsi2(uint32_t);
diff --git a/compiler-rt/lib/arm/divdf3vfp.S b/compiler-rt/lib/arm/divdf3vfp.S
index 59421ef..c62c61e 100644
--- a/compiler-rt/lib/arm/divdf3vfp.S
+++ b/compiler-rt/lib/arm/divdf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __divdf3vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/divsf3vfp.S b/compiler-rt/lib/arm/divsf3vfp.S
index 62c79ea..4bf7463 100644
--- a/compiler-rt/lib/arm/divsf3vfp.S
+++ b/compiler-rt/lib/arm/divsf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __divsf3vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/eqdf2vfp.S b/compiler-rt/lib/arm/eqdf2vfp.S
index 8111a0d5..25cc959 100644
--- a/compiler-rt/lib/arm/eqdf2vfp.S
+++ b/compiler-rt/lib/arm/eqdf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __eqdf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/eqsf2vfp.S b/compiler-rt/lib/arm/eqsf2vfp.S
index 7d995b5..a87b767 100644
--- a/compiler-rt/lib/arm/eqsf2vfp.S
+++ b/compiler-rt/lib/arm/eqsf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __eqsf2vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/extendsfdf2vfp.S b/compiler-rt/lib/arm/extendsfdf2vfp.S
index 024bbf0..ea251e2 100644
--- a/compiler-rt/lib/arm/extendsfdf2vfp.S
+++ b/compiler-rt/lib/arm/extendsfdf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __extendsfdf2vfp(float a);
diff --git a/compiler-rt/lib/arm/fixdfsivfp.S b/compiler-rt/lib/arm/fixdfsivfp.S
index 75c322d..4178859 100644
--- a/compiler-rt/lib/arm/fixdfsivfp.S
+++ b/compiler-rt/lib/arm/fixdfsivfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __fixdfsivfp(double a);
diff --git a/compiler-rt/lib/arm/fixsfsivfp.S b/compiler-rt/lib/arm/fixsfsivfp.S
index cd2fbe8..d480390 100644
--- a/compiler-rt/lib/arm/fixsfsivfp.S
+++ b/compiler-rt/lib/arm/fixsfsivfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __fixsfsivfp(float a);
diff --git a/compiler-rt/lib/arm/fixunsdfsivfp.S b/compiler-rt/lib/arm/fixunsdfsivfp.S
index ab6c4df..bd9c1b8 100644
--- a/compiler-rt/lib/arm/fixunsdfsivfp.S
+++ b/compiler-rt/lib/arm/fixunsdfsivfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern unsigned int __fixunsdfsivfp(double a);
diff --git a/compiler-rt/lib/arm/fixunssfsivfp.S b/compiler-rt/lib/arm/fixunssfsivfp.S
index c39c698..c8ce25f 100644
--- a/compiler-rt/lib/arm/fixunssfsivfp.S
+++ b/compiler-rt/lib/arm/fixunssfsivfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern unsigned int __fixunssfsivfp(float a);
diff --git a/compiler-rt/lib/arm/floatsidfvfp.S b/compiler-rt/lib/arm/floatsidfvfp.S
index d402924..b268d04 100644
--- a/compiler-rt/lib/arm/floatsidfvfp.S
+++ b/compiler-rt/lib/arm/floatsidfvfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __floatsidfvfp(int a);
diff --git a/compiler-rt/lib/arm/floatsisfvfp.S b/compiler-rt/lib/arm/floatsisfvfp.S
index 29e7e0d..dea5a4e 100644
--- a/compiler-rt/lib/arm/floatsisfvfp.S
+++ b/compiler-rt/lib/arm/floatsisfvfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __floatsisfvfp(int a);
diff --git a/compiler-rt/lib/arm/floatunssidfvfp.S b/compiler-rt/lib/arm/floatunssidfvfp.S
index 148945f..077385e 100644
--- a/compiler-rt/lib/arm/floatunssidfvfp.S
+++ b/compiler-rt/lib/arm/floatunssidfvfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __floatunssidfvfp(unsigned int a);
diff --git a/compiler-rt/lib/arm/floatunssisfvfp.S b/compiler-rt/lib/arm/floatunssisfvfp.S
index c832278..3ad7194 100644
--- a/compiler-rt/lib/arm/floatunssisfvfp.S
+++ b/compiler-rt/lib/arm/floatunssisfvfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __floatunssisfvfp(unsigned int a);
diff --git a/compiler-rt/lib/arm/gedf2vfp.S b/compiler-rt/lib/arm/gedf2vfp.S
index 77d07bd..3f2f6c1 100644
--- a/compiler-rt/lib/arm/gedf2vfp.S
+++ b/compiler-rt/lib/arm/gedf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __gedf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/gesf2vfp.S b/compiler-rt/lib/arm/gesf2vfp.S
index 205c365..83b2f09 100644
--- a/compiler-rt/lib/arm/gesf2vfp.S
+++ b/compiler-rt/lib/arm/gesf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __gesf2vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/gtdf2vfp.S b/compiler-rt/lib/arm/gtdf2vfp.S
index 8d6ebcf..2daa7c4 100644
--- a/compiler-rt/lib/arm/gtdf2vfp.S
+++ b/compiler-rt/lib/arm/gtdf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __gtdf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/gtsf2vfp.S b/compiler-rt/lib/arm/gtsf2vfp.S
index 745a7c6..c388865 100644
--- a/compiler-rt/lib/arm/gtsf2vfp.S
+++ b/compiler-rt/lib/arm/gtsf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __gtsf2vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/ledf2vfp.S b/compiler-rt/lib/arm/ledf2vfp.S
index 4dc9f47..1ab250d 100644
--- a/compiler-rt/lib/arm/ledf2vfp.S
+++ b/compiler-rt/lib/arm/ledf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __ledf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/lesf2vfp.S b/compiler-rt/lib/arm/lesf2vfp.S
index b0a17af..8166d4b 100644
--- a/compiler-rt/lib/arm/lesf2vfp.S
+++ b/compiler-rt/lib/arm/lesf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __lesf2vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/ltdf2vfp.S b/compiler-rt/lib/arm/ltdf2vfp.S
index 315bb6f..e17406b 100644
--- a/compiler-rt/lib/arm/ltdf2vfp.S
+++ b/compiler-rt/lib/arm/ltdf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __ltdf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/ltsf2vfp.S b/compiler-rt/lib/arm/ltsf2vfp.S
index 18a1cc5..f281a71 100644
--- a/compiler-rt/lib/arm/ltsf2vfp.S
+++ b/compiler-rt/lib/arm/ltsf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __ltsf2vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/muldf3vfp.S b/compiler-rt/lib/arm/muldf3vfp.S
index 5292b8e..7ae256a 100644
--- a/compiler-rt/lib/arm/muldf3vfp.S
+++ b/compiler-rt/lib/arm/muldf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __muldf3vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/mulsf3vfp.S b/compiler-rt/lib/arm/mulsf3vfp.S
index e6cdca3..16dbdb2 100644
--- a/compiler-rt/lib/arm/mulsf3vfp.S
+++ b/compiler-rt/lib/arm/mulsf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __mulsf3vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/nedf2vfp.S b/compiler-rt/lib/arm/nedf2vfp.S
index 8cf4dc2..a7541de 100644
--- a/compiler-rt/lib/arm/nedf2vfp.S
+++ b/compiler-rt/lib/arm/nedf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __nedf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/negdf2vfp.S b/compiler-rt/lib/arm/negdf2vfp.S
index b047ccc..bff2767 100644
--- a/compiler-rt/lib/arm/negdf2vfp.S
+++ b/compiler-rt/lib/arm/negdf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __negdf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/negsf2vfp.S b/compiler-rt/lib/arm/negsf2vfp.S
index 1b0f3d6..9b0ce28 100644
--- a/compiler-rt/lib/arm/negsf2vfp.S
+++ b/compiler-rt/lib/arm/negsf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __negsf2vfp(float a);
diff --git a/compiler-rt/lib/arm/nesf2vfp.S b/compiler-rt/lib/arm/nesf2vfp.S
index da0eef6..ee37c1d 100644
--- a/compiler-rt/lib/arm/nesf2vfp.S
+++ b/compiler-rt/lib/arm/nesf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __nesf2vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/subdf3vfp.S b/compiler-rt/lib/arm/subdf3vfp.S
index c138c3a..ebeca2f 100644
--- a/compiler-rt/lib/arm/subdf3vfp.S
+++ b/compiler-rt/lib/arm/subdf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern double __subdf3vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/subsf3vfp.S b/compiler-rt/lib/arm/subsf3vfp.S
index 493a850..3e9d602 100644
--- a/compiler-rt/lib/arm/subsf3vfp.S
+++ b/compiler-rt/lib/arm/subsf3vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __subsf3vfp(float a, float b);
diff --git a/compiler-rt/lib/arm/switch.S b/compiler-rt/lib/arm/switch.S
index bfde0da..7b11c4f 100644
--- a/compiler-rt/lib/arm/switch.S
+++ b/compiler-rt/lib/arm/switch.S
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
+
//
// When compiling switch statements in thumb mode, the compiler
// can use these __switch* helper functions The compiler emits a blx to
diff --git a/compiler-rt/lib/arm/truncdfsf2vfp.S b/compiler-rt/lib/arm/truncdfsf2vfp.S
index 2e26fdc..0d635be 100644
--- a/compiler-rt/lib/arm/truncdfsf2vfp.S
+++ b/compiler-rt/lib/arm/truncdfsf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern float __truncdfsf2vfp(double a);
diff --git a/compiler-rt/lib/arm/unorddf2vfp.S b/compiler-rt/lib/arm/unorddf2vfp.S
index e458eb8..85968b4 100644
--- a/compiler-rt/lib/arm/unorddf2vfp.S
+++ b/compiler-rt/lib/arm/unorddf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __unorddf2vfp(double a, double b);
diff --git a/compiler-rt/lib/arm/unordsf2vfp.S b/compiler-rt/lib/arm/unordsf2vfp.S
index 6b69080..852d4eb 100644
--- a/compiler-rt/lib/arm/unordsf2vfp.S
+++ b/compiler-rt/lib/arm/unordsf2vfp.S
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#include "../assembly.h"
//
// extern int __unordsf2vfp(float a, float b);