Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: src/IceTargetLowering.def

Issue 1775253003: Cache common constants before lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLowering.def
diff --git a/src/IceTargetLowering.def b/src/IceTargetLowering.def
new file mode 100644
index 0000000000000000000000000000000000000000..6da029eb9e1cdcf83dc08718bb890780f25e0c93
--- /dev/null
+++ b/src/IceTargetLowering.def
@@ -0,0 +1,60 @@
+//===- subzero/src/IceTargetLowering.def - Target X-macros ------*- C++ -*-===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines certain platform independent patterns for lowering target
+// instructions, in the form of x-macros.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUBZERO_SRC_ICETARGETLOWERING_DEF
+#define SUBZERO_SRC_ICETARGETLOWERING_DEF
+
+// Pattern for runtime helper functions
+#define RUNTIME_HELPER_FUNCTIONS_TABLE \
+ /* tag , name */ \
+ X(bitcast_16xi1_i16, "__Sz_bitcast_16xi1_i16") \
+ X(bitcast_8xi1_i8, "__Sz_bitcast_8xi1_i8") \
+ X(bitcast_i16_16xi1, "__Sz_bitcast_i16_16xi1") \
+ X(bitcast_i8_8xi1, "__Sz_bitcast_i8_8xi1") \
+ X(call_ctpop_i32, "__popcountsi2") \
+ X(call_ctpop_i64, "__popcountdi2") \
+ X(call_longjmp, "longjmp") \
+ X(call_memcpy, "memcpy") \
+ X(call_memmove, "memmove") \
+ X(call_memset, "memset") \
+ X(call_read_tp, "__nacl_read_tp") \
+ X(call_setjmp, "setjmp") \
+ X(fptosi_f32_i64, "__Sz_fptosi_f32_i64") \
+ X(fptosi_f64_i64, "__Sz_fptosi_f64_i64") \
+ X(fptoui_4xi32_f32, "__Sz_fptoui_4xi32_f32") \
+ X(fptoui_f32_i32, "__Sz_fptoui_f32_i32") \
+ X(fptoui_f32_i64, "__Sz_fptoui_f32_i64") \
+ X(fptoui_f64_i32, "__Sz_fptoui_f64_i32") \
+ X(fptoui_f64_i64, "__Sz_fptoui_f64_i64") \
+ X(frem_f32, "fmodf") \
+ X(frem_f64, "fmod") \
+ X(sdiv_i32, "__divsi3") \
+ X(sdiv_i64, "__divdi3") \
+ X(sitofp_i64_f32, "__Sz_sitofp_i64_f32") \
+ X(sitofp_i64_f64, "__Sz_sitofp_i64_f64") \
+ X(srem_i32, "__modsi3") \
+ X(srem_i64, "__moddi3") \
+ X(udiv_i32, "__udivsi3") \
+ X(udiv_i64, "__udivdi3") \
+ X(uitofp_4xi32_4xf32, "__Sz_uitofp_4xi32_4xf32") \
+ X(uitofp_i32_f32, "__Sz_uitofp_i32_f32") \
+ X(uitofp_i32_f64, "__Sz_uitofp_i32_f64") \
+ X(uitofp_i64_f32, "__Sz_uitofp_i64_f32") \
+ X(uitofp_i64_f64, "__Sz_uitofp_i64_f64") \
+ X(urem_i32, "__umodsi3") \
+ X(urem_i64, "__umoddi3")
+//#define X(Tag, Name)
+
Jim Stichnoth 2016/03/17 00:14:52 remove one of these blank lines
Karl 2016/03/17 16:40:53 Done.
+
+#endif // SUBZERO_SRC_ICETARGETLOWERING_DEF

Powered by Google App Engine
This is Rietveld 408576698