Chromium Code Reviews| Index: src/IceTargetLowering.def |
| diff --git a/src/IceTargetLowering.def b/src/IceTargetLowering.def |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..443124215a53c22a5f708fcece058c4bdaf50436 |
| --- /dev/null |
| +++ b/src/IceTargetLowering.def |
| @@ -0,0 +1,73 @@ |
| +//===- 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 |
| + |
| +// Types for which we should cache the constant zero during target lowering |
| +// initialization. |
| +#define CONSTANT_ZERO_BY_TYPE_TABLE \ |
| + /* type */ \ |
| + X(i1) \ |
| + X(i8) \ |
| + X(i16) \ |
| + X(i32) \ |
| + X(i64) \ |
| + X(f32) \ |
| + X(f64) \ |
| +//#define X(Ty) |
| + |
| +// Pattern for runtime helper functions |
| +#define RUNTIME_HELPER_FUNCTIONS_TABLE \ |
| + /* tag , name */ \ |
| + X(bitcast_16xi1_i16, "__Sz_bitcast_16xi1_i16") \ |
|
Jim Stichnoth
2016/03/10 00:24:46
Could you reformat this into aligned columns?
Karl
2016/03/16 22:50:52
Done.
|
| + 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/10 00:24:46
remove one blank line
Karl
2016/03/16 22:50:52
Done.
|
| +#endif // SUBZERO_SRC_ICETARGETLOWERING_DEF |