Ignore:
Timestamp:
Apr 10, 2017, 4:34:41 PM (2 years ago)
Author:
nmedfort
Message:

Moved toolchain and object_cache to kernels directory. Continued work on providing input consumed information.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/toolchain.cpp

    r5401 r5402  
    1111#include <llvm/Support/TargetSelect.h>             // for InitializeNativeTa...
    1212#include <llvm/Support/raw_ostream.h>              // for errs, raw_ostream
    13 #include <llvm/Support/FormattedStream.h>
    14 #include <llvm/ADT/SmallString.h>                  // for SmallString
    1513#include <llvm/IR/LegacyPassManager.h>             // for PassManager
    1614#include <llvm/IR/IRPrintingPasses.h>
     15#include <llvm/InitializePasses.h>                 // for initializeCodeGen
     16#ifndef NDEBUG
    1717#include <llvm/IR/Verifier.h>
    18 #include <llvm/InitializePasses.h>                 // for initializeCodeGen
     18#endif
    1919#include <llvm/PassRegistry.h>                     // for PassRegistry
    2020#include <llvm/Support/CodeGen.h>                  // for Level, Level::None
     
    2525#include <llvm/Transforms/Utils/Local.h>
    2626#include <llvm/IR/Module.h>
    27 #include <object_cache.h>
     27#include <kernels/object_cache.h>
    2828#include <kernels/pipeline.h>
    2929#include <kernels/interface.h>
     
    165165, mTarget(nullptr)
    166166, mEngine(nullptr)
     167, mCache(nullptr)
    167168{
    168169    InitializeNativeTarget();
     
    202203    if (LLVM_LIKELY(codegen::EnableObjectCache && codegen::DebugOptions.getBits() == 0)) {
    203204        if (codegen::ObjectCacheDir.empty()) {
    204             mCache = llvm::make_unique<ParabixObjectCache>();
     205            mCache = new ParabixObjectCache();
    205206        } else {
    206             mCache = llvm::make_unique<ParabixObjectCache>(codegen::ObjectCacheDir);
     207            mCache = new ParabixObjectCache(codegen::ObjectCacheDir);
    207208        }
    208209        assert (mCache);
    209         mEngine->setObjectCache(mCache.get());
     210        mEngine->setObjectCache(mCache);
    210211    }
    211212}
     
    313314    return mEngine->getPointerToNamedFunction("Main");
    314315}
     316
     317ParabixDriver::~ParabixDriver() {
     318    delete mCache;
     319}
Note: See TracChangeset for help on using the changeset viewer.