source: proto/pabloj/trunk/output/clang/idisa_definitions.h @ 3699

Last change on this file since 3699 was 3699, checked in by ksherdy, 5 years ago

Updated PabloJ to s2k.

File size: 1.4 KB
Line 
1// GENERATED CODE. DO NOT MODIFY.
2//
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//////////////////////////////////////////////////////////////////////////////////////////
12// @ global - Stream structure and stream function declarations.
13//
14//////////////////////////////////////////////////////////////////////////////////////////
15//
16#ifndef PABLO_DEFINITIONS_HPP
17#define PABLO_DEFINITIONS_HPP
18
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>();
30
31// namespace pablo
32// {
33struct KernelName
34{
35        KernelName()
36        {
37        }
38       
39        IDISA_INLINE void do_block()
40        {
41                BitBlock a;
42                BitBlock b;
43                BitBlock c;
44                BitBlock k;
45                BitBlock r;
46
47                print_register<BitBlock>("r",r);
48        }
49       
50        void do_final_block()
51        {
52               
53        }
54       
55        CarryDeclare(carry_set_0,0,0);
56};
57 
58
59// } // pablo namespace
60
61#endif // PABLO_DEFINITIONS_HPP
Note: See TracBrowser for help on using the repository browser.