Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 //===- subzero/src/IceTargetLowering.def - Target X-macros ------*- C++ -*-===// | |
| 2 // | |
| 3 // The Subzero Code Generator | |
| 4 // | |
| 5 // This file is distributed under the University of Illinois Open Source | |
| 6 // License. See LICENSE.TXT for details. | |
| 7 // | |
| 8 //===----------------------------------------------------------------------===// | |
| 9 // | |
| 10 // This file defines certain platform independent patterns for lowering target | |
| 11 // instructions, in the form of x-macros. | |
| 12 // | |
| 13 //===----------------------------------------------------------------------===// | |
| 14 | |
| 15 #ifndef SUBZERO_SRC_ICETARGETLOWERING_DEF | |
| 16 #define SUBZERO_SRC_ICETARGETLOWERING_DEF | |
| 17 | |
| 18 // Types for which we should cache the constant zero during target lowering | |
| 19 // initialization. | |
| 20 #define CONSTANT_ZERO_BY_TYPE_TABLE \ | |
| 21 /* type */ \ | |
| 22 X(i1) \ | |
| 23 X(i8) \ | |
| 24 X(i16) \ | |
| 25 X(i32) \ | |
| 26 X(i64) \ | |
| 27 X(f32) \ | |
| 28 X(f64) \ | |
| 29 //#define X(Ty) | |
| 30 | |
| 31 // Pattern for runtime helper functions | |
| 32 #define RUNTIME_HELPER_FUNCTIONS_TABLE \ | |
| 33 /* tag , name */ \ | |
| 34 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.
| |
| 35 X(bitcast_8xi1_i8, "__Sz_bitcast_8xi1_i8") \ | |
| 36 X(bitcast_i16_16xi1, "__Sz_bitcast_i16_16xi1") \ | |
| 37 X(bitcast_i8_8xi1, "__Sz_bitcast_i8_8xi1") \ | |
| 38 X(call_ctpop_i32, "__popcountsi2") \ | |
| 39 X(call_ctpop_i64, "__popcountdi2") \ | |
| 40 X(call_longjmp, "longjmp") \ | |
| 41 X(call_memcpy, "memcpy") \ | |
| 42 X(call_memmove, "memmove") \ | |
| 43 X(call_memset, "memset") \ | |
| 44 X(call_read_tp, "__nacl_read_tp") \ | |
| 45 X(call_setjmp, "setjmp") \ | |
| 46 X(fptosi_f32_i64, "__Sz_fptosi_f32_i64") \ | |
| 47 X(fptosi_f64_i64, "__Sz_fptosi_f64_i64") \ | |
| 48 X(fptoui_4xi32_f32, "__Sz_fptoui_4xi32_f32") \ | |
| 49 X(fptoui_f32_i32, "__Sz_fptoui_f32_i32") \ | |
| 50 X(fptoui_f32_i64, "__Sz_fptoui_f32_i64") \ | |
| 51 X(fptoui_f64_i32, "__Sz_fptoui_f64_i32") \ | |
| 52 X(fptoui_f64_i64, "__Sz_fptoui_f64_i64") \ | |
| 53 X(frem_f32, "fmodf") \ | |
| 54 X(frem_f64, "fmod") \ | |
| 55 X(sdiv_i32, "__divsi3") \ | |
| 56 X(sdiv_i64, "__divdi3") \ | |
| 57 X(sitofp_i64_f32, "__Sz_sitofp_i64_f32") \ | |
| 58 X(sitofp_i64_f64, "__Sz_sitofp_i64_f64") \ | |
| 59 X(srem_i32, "__modsi3") \ | |
| 60 X(srem_i64, "__moddi3") \ | |
| 61 X(udiv_i32, "__udivsi3") \ | |
| 62 X(udiv_i64, "__udivdi3") \ | |
| 63 X(uitofp_4xi32_4xf32, "__Sz_uitofp_4xi32_4xf32") \ | |
| 64 X(uitofp_i32_f32, "__Sz_uitofp_i32_f32") \ | |
| 65 X(uitofp_i32_f64, "__Sz_uitofp_i32_f64") \ | |
| 66 X(uitofp_i64_f32, "__Sz_uitofp_i64_f32") \ | |
| 67 X(uitofp_i64_f64, "__Sz_uitofp_i64_f64") \ | |
| 68 X(urem_i32, "__umodsi3") \ | |
| 69 X(urem_i64, "__umoddi3") \ | |
| 70 //#define X(Tag, Name) | |
| 71 | |
| 72 | |
|
Jim Stichnoth
2016/03/10 00:24:46
remove one blank line
Karl
2016/03/16 22:50:52
Done.
| |
| 73 #endif // SUBZERO_SRC_ICETARGETLOWERING_DEF | |
| OLD | NEW |