Ignore:
Timestamp:
Mar 16, 2014, 3:51:19 PM (5 years ago)
Author:
ksherdy
Message:

Updated PabloJ to s2k.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/output/clang/idisa_definitions.h

    r3192 r3699  
    11// GENERATED CODE. DO NOT MODIFY.
    2 // This template includes the minimal set
    32//
     3// This template includes the minimal set of runtime support libraries required
     4// to support compilation of PabloJ generated C++ code (bitblock.hpp, carryQ.hpp,
     5// pabloSupport.hpp, error_tracker.hpp)
     6//
     7// (c) 2012, 2013 Robert D. Cameron, Ken Herdy
     8// All rights reserved.
     9// Licensed to International Characters, Inc. under Academic Free License 3.0
     10//
     11//////////////////////////////////////////////////////////////////////////////////////////
    412// @ global - Stream structure and stream function declarations.
    513//
    614//////////////////////////////////////////////////////////////////////////////////////////
     15//
     16#ifndef PABLO_DEFINITIONS_HPP
     17#define PABLO_DEFINITIONS_HPP
    718
    8 #ifndef IDISA_DEFINITIONS_H
    9 #define IDISA_DEFINITIONS_H
     19// runtime libraries
     20#include <simd-lib/bitblock.hpp>
     21#include <simd-lib/carrySet.hpp>
     22#include <simd-lib/pabloSupport.hpp>
     23
     24// migrate error tracker, line/column tracker to compiler runtime
     25#include <ErrorTracker.h>
     26ErrorTracker error_tracker;
     27
     28#define assert_0_error(errkind, errstrm) error_tracker.NoteError(errkind, errstrm);
     29BitBlock EOF_mask = simd<1>::constant<1>();
    1030
    1131// namespace pablo
     
    1535        KernelName()
    1636        {
    17                
    1837        }
    19          
     38       
    2039        IDISA_INLINE void do_block()
    2140        {
     
    2544                BitBlock k;
    2645                BitBlock r;
    27                 bool t;
    28                 t = bitblock_any(a);
    29                 r = bitblock_slli(a, 10);
    30                 bitblock_store_unaligned(a, &b);
    31                 r = bitblock_load_aligned(&b);
    32                 r = simd_not(a);
    33                 r = simd_nor(a, b);
    34                 r = simd_ifh_16(a, b, c);
    35                 r = simd_constant_2(3);
    36                 r = simd_slli_8(a, 1);
    37                 r = simd_add_1(a, b);
    38                 r = simd_sub_2(a, b);
    39                 r = simd_mult_4(a, b);
    40                 r = simd_eq_8(a, b);
    41                 r = simd_gt_16(a, b);
    42                 r = simd_ugt_32(a, b);
    43                 r = simd_lt_64(a, b);
    44                 r = simd_ult_128(a, b);
    45                 r = simd_max_128(a, b);
    46                 r = simd_umax_1(a, b);
    47                 r = simd_min_2(a, b);
    48                 r = simd_umin_4(a, b);
    49                 r = simd_sll_64(a, b);
    50                 r = simd_srl_64(a, b);
     46
     47                print_register<BitBlock>("r",r);
    5148        }
    5249       
    53         IDISA_INLINE void do_final_block()
     50        void do_final_block()
    5451        {
    5552               
    5653        }
    5754       
    58         CarryDeclare(carry_set_0, 0, 0);
     55        CarryDeclare(carry_set_0,0,0);
    5956};
    6057 
     
    6259// } // pablo namespace
    6360
    64 #endif // IDISA_DEFINITIONS_H
     61#endif // PABLO_DEFINITIONS_HPP
Note: See TracChangeset for help on using the changeset viewer.