Ignore:
Timestamp:
Jan 19, 2017, 2:41:02 PM (2 years ago)
Author:
nmedfort
Message:

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/u8u16.cpp

    r5260 r5267  
    55 */
    66
    7 #include <string>
     7#include <IR_Gen/idisa_builder.h>                  // for IDISA_Builder
     8#include <IR_Gen/idisa_target.h>                   // for GetIDISA_Builder
     9#include <cc/cc_compiler.h>                        // for CC_Compiler
     10#include <kernels/deletion.h>                      // for DeletionKernel
     11#include <kernels/mmap_kernel.h>                   // for MMapSourceKernel
     12#include <kernels/p2s_kernel.h>                    // for P2S16KernelWithCom...
     13#include <kernels/s2p_kernel.h>                    // for S2PKernel
     14#include <kernels/stdout_kernel.h>                 // for StdOutKernel
     15#include <llvm/ExecutionEngine/ExecutionEngine.h>  // for ExecutionEngine
     16#include <llvm/IR/Function.h>                      // for Function, Function...
     17#include <llvm/IR/Module.h>                        // for Module
     18#include <llvm/IR/Verifier.h>                      // for verifyModule
     19#include <llvm/Support/CommandLine.h>              // for ParseCommandLineOp...
     20#include <llvm/Support/Debug.h>                    // for dbgs
     21#include <pablo/pablo_kernel.h>                    // for PabloKernel
     22#include <pablo/pablo_toolchain.h>                 // for pablo_function_passes
     23#include <pablo/pe_zeroes.h>
     24#include <toolchain.h>                             // for JIT_to_ExecutionEn...
     25#include <boost/iostreams/device/mapped_file.hpp>  // for mapped_file_source
     26#include <boost/filesystem.hpp>
     27#include <boost/interprocess/anonymous_shared_memory.hpp>
     28#include "kernels/streamset.h"                     // for CircularBuffer
     29#include <kernels/pipeline.h>
     30#include "llvm/ADT/StringRef.h"                    // for StringRef
     31#include "llvm/IR/CallingConv.h"                   // for ::C
     32#include "llvm/IR/DerivedTypes.h"                  // for ArrayType, Pointer...
     33#include "llvm/IR/LLVMContext.h"                   // for LLVMContext
     34#include "llvm/IR/Value.h"                         // for Value
     35#include "llvm/Support/Compiler.h"                 // for LLVM_UNLIKELY
     36#include <pablo/builder.hpp>                       // for PabloBuilder
    837#include <iostream>
    9 #include <fstream>
    10 #include <sstream>
    11 #include <stdlib.h>
    12 
    13 #include <llvm/IR/Function.h>
    14 #include <llvm/IR/Module.h>
    15 #include <llvm/ExecutionEngine/ExecutionEngine.h>
    16 #include <llvm/ExecutionEngine/MCJIT.h>
    17 #include <llvm/IRReader/IRReader.h>
    18 #include <llvm/IR/Verifier.h>
    19 #include <llvm/Support/Debug.h>
    20 
    21 #include <llvm/Support/CommandLine.h>
    22 
    23 #include <toolchain.h>
    24 #include <re/re_cc.h>
    25 #include <cc/cc_compiler.h>
    26 #include <pablo/pablo_toolchain.h>
    27 #include <pablo/pablo_kernel.h>
    28 #include <IR_Gen/idisa_builder.h>
    29 #include <IR_Gen/idisa_target.h>
    30 #include <kernels/pipeline.h>
    31 #include <kernels/mmap_kernel.h>
    32 #include <kernels/interface.h>
    33 #include <kernels/kernel.h>
    34 #include <kernels/s2p_kernel.h>
    35 #include <kernels/p2s_kernel.h>
    36 #include <kernels/deletion.h>
    37 #include <kernels/stdout_kernel.h>
    38 
    39 // mmap system
    40 #include <boost/filesystem.hpp>
    41 #include <boost/iostreams/device/mapped_file.hpp>
    42 #include <boost/interprocess/anonymous_shared_memory.hpp>
    43 #include <boost/interprocess/mapped_region.hpp>
    44 #include <fcntl.h>
    45 static cl::OptionCategory u8u16Options("u8u16 Options",
    46                                             "Transcoding control options.");
    47 
     38
     39using namespace pablo;
     40using namespace kernel;
     41using namespace parabix;
     42using namespace llvm;
     43
     44static cl::OptionCategory u8u16Options("u8u16 Options", "Transcoding control options.");
    4845static cl::list<std::string> inputFiles(cl::Positional, cl::desc("<input file ...>"), cl::OneOrMore, cl::cat(u8u16Options));
    49 
    5046static cl::opt<bool> segmentPipelineParallel("enable-segment-pipeline-parallel", cl::desc("Enable multithreading with segment pipeline parallelism."), cl::cat(u8u16Options));
    5147static cl::opt<bool> mMapBuffering("mmap-buffering", cl::desc("Enable mmap buffering."), cl::cat(u8u16Options));
     
    5349
    5450
    55 using namespace pablo;
    56 using namespace kernel;
    57 using namespace parabix;
    58 
    5951void u8u16_pablo(PabloKernel * kernel) {
    6052    //  input: 8 basis bit streams
     
    6658    const auto u8_bits = ccc.getBasisBits();
    6759
    68     PabloAST * zeroes = main.createZeroes();
     60    Zeroes * zeroes = main.createZeroes();
    6961
    7062    // Outputs
Note: See TracChangeset for help on using the changeset viewer.