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/pablo/builder.cpp

    r5227 r5267  
    1 #include <pablo/builder.hpp>
    2 // #include <boost/current_function.hpp> // BOOST_CURRENT_FUNCTION
     1#include "builder.hpp"
     2#include <pablo/boolean.h>
     3#include <pablo/arithmetic.h>
     4#include <pablo/branch.h>
     5#include <pablo/pe_advance.h>
     6#include <pablo/pe_lookahead.h>
     7#include <pablo/pe_matchstar.h>
     8#include <pablo/pe_scanthru.h>
     9#include <pablo/pe_infile.h>
     10#include <pablo/pe_count.h>
     11#include <pablo/pe_integer.h>
     12#include <pablo/pe_string.h>
     13#include <pablo/pe_zeroes.h>
     14#include <pablo/pe_ones.h>
     15#include <pablo/pe_var.h>
     16#include <pablo/ps_assign.h>
     17
     18using namespace llvm;
    319
    420namespace pablo {
     
    100116
    101117using TypeId = PabloAST::ClassTypeId;
    102 
    103 Call * PabloBuilder::createCall(Prototype * prototype, const std::vector<PabloAST *> & args) {
    104     if (prototype == nullptr) {
    105         throw std::runtime_error("Call object cannot be created with a Null prototype!");
    106     }
    107     if (args.size() != cast<Prototype>(prototype)->getNumOfParameters()) {
    108         throw std::runtime_error("Invalid number of arguments passed into Call object!");
    109     }
    110     MAKE_VARIABLE(createCall, TypeId::Call, prototype->getName(), args, prototype);
    111     return cast<Call>(result);
    112 }
    113118
    114119PabloAST * PabloBuilder::createAdvance(PabloAST * expr, PabloAST * shiftAmount) {
Note: See TracChangeset for help on using the changeset viewer.