Ignore:
Timestamp:
May 10, 2017, 4:26:11 PM (2 years ago)
Author:
nmedfort
Message:

Large refactoring step. Removed IR generation code from Kernel (formally KernelBuilder?) and moved it into the new KernelBuilder? class.

File:
1 edited

Legend:

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

    r5435 r5440  
    5252                          '_'};
    5353
    54 bool ParabixObjectCache::loadCachedObjectFile(kernel::Kernel * const kernel) {
     54bool ParabixObjectCache::loadCachedObjectFile(const std::unique_ptr<kernel::KernelBuilder> & idb, kernel::Kernel * const kernel) {
    5555    if (LLVM_LIKELY(kernel->isCachable())) {
    5656
     
    6464            if (f == mKernelSignatureMap.end()) {
    6565                return kernel->moduleIDisSignature();
    66             } else if (kernel->moduleIDisSignature() || (kernel->makeSignature() != f->second)) {
     66            } else if (kernel->moduleIDisSignature() || (kernel->makeSignature(idb) != f->second)) {
    6767                return false;
    6868            }
     
    8383                if (signatureBuffer) {
    8484                    const StringRef loadedSig = signatureBuffer.get()->getBuffer();
    85                     if (!loadedSig.equals(kernel->makeSignature())) {
     85                    if (!loadedSig.equals(kernel->makeSignature(idb))) {
    8686                        return false;
    8787                    }
     
    9696            return true;
    9797        } else if (!kernel->moduleIDisSignature()) {
    98             mKernelSignatureMap.emplace(moduleId, kernel->makeSignature());
     98            mKernelSignatureMap.emplace(moduleId, kernel->makeSignature(idb));
    9999        }
    100100    }
Note: See TracChangeset for help on using the changeset viewer.