Changeset 5924
- Timestamp:
- Mar 21, 2018, 8:03:52 AM (11 months ago)
- Location:
- icGREP/icgrep-devel/icgrep
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp
r5919 r5924 680 680 681 681 PointerType * LLVM_READNONE CBuilder::getVoidPtrTy(const unsigned AddressSpace) const { 682 return PointerType::get(Type::getVoidTy(getContext()), AddressSpace); 682 //return PointerType::get(Type::getVoidTy(getContext()), AddressSpace); 683 return PointerType::get(Type::getInt8Ty(getContext()), AddressSpace); 683 684 } 684 685 -
icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_swizzled_match_copy_kernel.cpp
r5907 r5924 335 335 , mStreamCount(streamCount) { 336 336 337 assert((mSwizzleFactor == ( kb->getBitBlockWidth() / PDEP_width)) && "swizzle factor must equal bitBlockWidth / PDEP_width");337 assert((mSwizzleFactor == (iBuilder->getBitBlockWidth() / PDEP_width)) && "swizzle factor must equal bitBlockWidth / PDEP_width"); 338 338 assert((mPDEPWidth == 64 || mPDEPWidth == 32) && "PDEP width must be 32 or 64"); 339 339 -
icGREP/icgrep-devel/icgrep/lz4d_ext_dep.cpp
r5921 r5924 23 23 #include <kernels/kernel_builder.h> 24 24 #include <toolchain/cpudriver.h> 25 25 #include <llvm/Support/raw_ostream.h> 26 26 #include <iostream> 27 27 #include <lz4/LZ4Generator.h> … … 57 57 LZ4FrameDecoder lz4Frame(fileName); 58 58 if (!lz4Frame.isValid()) { 59 errs() << "Invalid LZ4 file.\n";59 llvm::errs() << "Invalid LZ4 file.\n"; 60 60 return -1; 61 61 } … … 65 65 boost::filesystem::remove(outputFile); 66 66 } else { 67 errs() << outputFile + " existed. Use -f argument to overwrite.\n";67 llvm::errs() << outputFile + " existed. Use -f argument to overwrite.\n"; 68 68 return -1; 69 69 } -
icGREP/icgrep-devel/icgrep/toolchain/cpudriver.cpp
r5920 r5924 93 93 std::vector<std::string> attrs; 94 94 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 } 97 98 } 98 99 builder.setMAttrs(attrs); … … 139 140 140 141 void ParabixDriver::makeKernelCall(Kernel * kernel, const std::vector<StreamSetBuffer *> & inputs, const std::vector<StreamSetBuffer *> & outputs) { 141 assert (" addKernelCall ormakeKernelCall was already run on this kernel." && (kernel->getModule() == nullptr));142 assert ("makeKernelCall was already run on this kernel." && (kernel->getModule() == nullptr)); 142 143 mPipeline.emplace_back(kernel); 143 144 kernel->bindPorts(inputs, outputs); … … 264 265 [&](const std::string &Name) { 265 266 auto Sym = mCompileLayer->findSymbol(Name, false); 267 if (!Sym) Sym = mCompileLayer->findSymbol(getMangledName(Name), false); 266 268 #if LLVM_VERSION_INTEGER <= LLVM_VERSION_CODE(3, 9, 1) 267 269 if (Sym) return Sym.toRuntimeDyldSymbol(); -
icGREP/icgrep-devel/icgrep/toolchain/cpudriver.h
r5920 r5924 8 8 9 9 #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) 11 11 #define ORCJIT 12 12 #endif -
icGREP/icgrep-devel/icgrep/utf16_encoder.cpp
r5278 r5924 9 9 #include <algorithm> 10 10 #include <stdexcept> 11 #include <string> 11 12 12 13 using namespace UCD; -
icGREP/icgrep-devel/icgrep/utf8_encoder.cpp
r5278 r5924 9 9 #include <algorithm> 10 10 #include <stdexcept> 11 #include <string> 11 12 12 13 using namespace UCD; -
icGREP/icgrep-devel/icgrep/wc.cpp
r5872 r5924 29 29 static cl::OptionCategory wcFlags("Command Flags", "wc options"); 30 30 31 staticcl::list<std::string> inputFiles(cl::Positional, cl::desc("<input file ...>"), cl::OneOrMore, cl::cat(wcFlags));31 cl::list<std::string> inputFiles(cl::Positional, cl::desc("<input file ...>"), cl::OneOrMore, cl::cat(wcFlags)); 32 32 33 33 enum CountOptions {
Note: See TracChangeset
for help on using the changeset viewer.