Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (2 years ago)
Author:
nmedfort
Message:

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.h

    r5238 r5260  
    88#define PABLO_COMPILER_H
    99
    10 //Pablo Expressions
    11 #include <string>
    12 #include <vector>
    1310#include <unordered_map>
    14 #include <pablo/pablo_kernel.h>
    15 #include <llvm/ADT/Twine.h>
    1611#include <llvm/IR/IRBuilder.h>
    1712#include <IR_Gen/idisa_builder.h>
     
    2015
    2116namespace llvm {
    22     class Value;
    23     class Module;
    24     class ExecutionEngine;
    25     class VectorType;
    26     class PointerType;
    27     class Constant;
    28     class FunctionType;
    29     class Function;
    30     class BasicBlock;
     17class Value;
     18class Function;
    3119}
    3220
     
    3523class PabloAST;
    3624class PabloBlock;
     25class PabloKernel;
    3726class String;
    38 class Var;
    3927class Statement;
    40 class StatementList;
    4128class If;
    4229class While;
    4330class CarryManager;
    44 class Extract;
    4531
    4632class PabloCompiler {
     
    4834
    4935    using IntSet = boost::container::flat_set<unsigned>;
    50     using MarkerMap = std::unordered_map<const PabloAST *, Value *>;
     36    using MarkerMap = std::unordered_map<const PabloAST *, llvm::Value *>;
    5137
    5238public:
     
    5440    ~PabloCompiler();
    5541    void initializeKernelData();
    56     void compile(Value * const self, Function * doBlockFunction);
     42    void compile(llvm::Value * const self, llvm::Function * doBlockFunction);
    5743
    5844private:
     
    6652    void compileWhile(const While * whileStmt);
    6753
    68     Value * compileExpression(const PabloAST * expr, const bool ensureLoaded = true) const;
     54    llvm::Value * compileExpression(const PabloAST * expr, const bool ensureLoaded = true) const;
    6955
    7056private:
     
    7359    CarryManager *          mCarryManager;
    7460    PabloKernel *           mKernel;
    75     Value *                 mSelf;
    76     Function *              mFunction;
     61    llvm::Value *           mSelf;
     62    llvm::Function *        mFunction;
    7763    MarkerMap               mMarkerMap;
    7864    IntSet                  mInputStreamOffset;
Note: See TracChangeset for help on using the changeset viewer.