Ignore:
Timestamp:
Mar 21, 2018, 8:03:52 AM (17 months ago)
Author:
cameron
Message:

Various cleanups

Location:
icGREP/icgrep-devel/icgrep/toolchain
Files:
2 edited

Legend:

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

    r5920 r5924  
    9393        std::vector<std::string> attrs;
    9494        for (auto &flag : HostCPUFeatures) {
    95             auto enabled = flag.second ? "+" : "-";
    96             attrs.push_back(enabled + flag.first().str());
     95            if (flag.second) {
     96                attrs.push_back("+" + flag.first().str());
     97            }
    9798        }
    9899        builder.setMAttrs(attrs);
     
    139140
    140141void ParabixDriver::makeKernelCall(Kernel * kernel, const std::vector<StreamSetBuffer *> & inputs, const std::vector<StreamSetBuffer *> & outputs) {
    141     assert ("addKernelCall or makeKernelCall was already run on this kernel." && (kernel->getModule() == nullptr));
     142    assert ("makeKernelCall was already run on this kernel." && (kernel->getModule() == nullptr));
    142143    mPipeline.emplace_back(kernel);
    143144    kernel->bindPorts(inputs, outputs);
     
    264265            [&](const std::string &Name) {
    265266                auto Sym = mCompileLayer->findSymbol(Name, false);
     267                if (!Sym) Sym = mCompileLayer->findSymbol(getMangledName(Name), false);
    266268#if LLVM_VERSION_INTEGER <= LLVM_VERSION_CODE(3, 9, 1)
    267269                if (Sym) return Sym.toRuntimeDyldSymbol();
  • icGREP/icgrep-devel/icgrep/toolchain/cpudriver.h

    r5920 r5924  
    88
    99#include <llvm/IR/LegacyPassManager.h>
    10 #if LLVM_VERSION_INTEGER >= LLVM_VERSION_CODE(3, 9, 0)
     10#if LLVM_VERSION_INTEGER >= LLVM_VERSION_CODE(4, 0, 0)
    1111#define ORCJIT
    1212#endif
Note: See TracChangeset for help on using the changeset viewer.