Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (3 years ago)
Author:
nmedfort
Message:

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5245 r5260  
    77#include "CBuilder.h"
    88#include <llvm/IR/IRBuilder.h>
     9#include <llvm/IR/Module.h>
    910#include <llvm/IR/Constants.h>
    1011#include <llvm/IR/Intrinsics.h>
     
    1314#include <llvm/IR/TypeBuilder.h>
    1415
    15 
     16using namespace llvm;
    1617
    1718// ssize_t write(int fildes, const void *buf, size_t nbyte);
     
    290291    return CreateCall(pthreadJoinFunc, {thread, value_ptr});
    291292}
     293
     294CBuilder::CBuilder(llvm::Module * m, unsigned archBitWidth, unsigned CacheAlignment)
     295: IRBuilder<>(m->getContext())
     296, mMod(m)
     297, mCacheLineAlignment(CacheAlignment)
     298, mSizeType(getIntNTy(archBitWidth)) {
     299}
Note: See TracChangeset for help on using the changeset viewer.