Ignore:
Timestamp:
Jul 12, 2015, 3:52:43 PM (4 years ago)
Author:
nmedfort
Message:

Start of work to make the pablo compiler reenterant. Fixed bug that prevented it from using Less optimization level.

File:
1 edited

Legend:

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

    r4659 r4661  
    6767    CompiledPabloFunction(size_t carryDataSize, Function * function, ExecutionEngine * executionEngine);
    6868
     69    inline Function * getLLVMFunction() const {
     70        return mFunction;
     71    }
     72
     73    inline ExecutionEngine * getExecutionEngine() const {
     74        return mExecutionEngine;
     75    }
     76
    6977    inline CompiledPabloFunction(CompiledPabloFunction && cpf)
    7078    : CarryDataSize(cpf.CarryDataSize)
     
    101109    ~PabloCompiler();
    102110    void InstallExternalFunction(std::string C_fn_name, void * fn_ptr);
    103     CompiledPabloFunction compile(pablo::PabloFunction &function);
     111    CompiledPabloFunction compile(pablo::PabloFunction & function);
     112    Module * getModule();
    104113private:
    105114    void GenerateFunction(PabloFunction & function);
    106     void DeclareFunctions();
     115    void DeclareFunctions(ExecutionEngine * ee);
    107116    void Examine(PabloBlock & blk);
    108     void DeclareCallFunctions();
     117    void DeclareCallFunctions(ExecutionEngine * ee);
    109118    void SetOutputValue(Value * marker, const unsigned index);
    110119
     
    147156    IRBuilder <> *                      mBuilder;
    148157    CarryManager *                      mCarryManager;
    149     ExecutionEngine*                    mExecutionEngine;
    150158
    151159    VectorType* const                   mBitBlockType;
     
    173181};
    174182
     183inline Module * PabloCompiler::getModule() {
     184    return mMod;
     185}
     186
    175187}
    176188
Note: See TracChangeset for help on using the changeset viewer.