Changeset 4050 for trunk/lib_ir/s2p.h


Ignore:
Timestamp:
Aug 19, 2014, 8:09:59 PM (5 years ago)
Author:
linmengl
Message:

add p2s.ll file, p2s_step works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/s2p.h

    r3970 r4050  
    22#define S2P_H
    33
    4 #include "idisa.hpp"
     4#include "ir_common.h"
    55
    66extern "C" {
    7 
    8   //Implemented in s2p.ll
    9   BitBlock packh_16(BitBlock a, BitBlock b);
    10   BitBlock packl_16(BitBlock a, BitBlock b);
    11 
    12   BitBlock ifh_1(BitBlock a, BitBlock b, BitBlock c);
    13   BitBlock srli_16(BitBlock a, BitBlock shift_mask);
    14   BitBlock slli_16(BitBlock a, BitBlock shift_mask);
    15 
    167  void s2p_step_ir(BitBlock s0, BitBlock s1, BitBlock hi_mask, BitBlock shift_mask, BitBlock *p0, BitBlock *p1);
    178
    189  void s2p_bytepack_ir(BitBlock s0, BitBlock s1, BitBlock s2, BitBlock s3, BitBlock s4, BitBlock s5, BitBlock s6, BitBlock s7, BitBlock* p0, BitBlock* p1, BitBlock* p2, BitBlock* p3, BitBlock* p4, BitBlock* p5, BitBlock* p6, BitBlock* p7);
    19 
    20   BitBlock const16_1();
    21   BitBlock const16_2();
    22   BitBlock const16_4();
    23 
    24   BitBlock himask_2();
    25   BitBlock himask_4();
    26   BitBlock himask_8();
    27 
    28   /////////////////////////////////////////
    29   //Implemented in s2p_ideal.ll, which can only be compiled on Haswell.
    30   BitBlock packh_8(BitBlock a, BitBlock b);
    31   BitBlock packl_8(BitBlock a, BitBlock b);
    32 
    33   BitBlock packh_4(BitBlock a, BitBlock b);
    34   BitBlock packl_4(BitBlock a, BitBlock b);
    35 
    36   BitBlock packh_2(BitBlock a, BitBlock b);
    37   BitBlock packl_2(BitBlock a, BitBlock b);
    3810
    3911  void s2p_ideal_ir(BitBlock s0, BitBlock s1, BitBlock s2, BitBlock s3, BitBlock s4, BitBlock s5, BitBlock s6, BitBlock s7, BitBlock *p0, BitBlock *p1, BitBlock *p2, BitBlock *p3, BitBlock *p4, BitBlock *p5, BitBlock *p6, BitBlock *p7);
Note: See TracChangeset for help on using the changeset viewer.