Ignore:
Timestamp:
Jan 31, 2017, 4:08:11 PM (2 years ago)
Author:
nmedfort
Message:

Removed 'function' and 'self' parameters from generateXXXMethod() functions.

File:
1 edited

Legend:

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

    r5285 r5292  
    66#include "evenodd.h"
    77#include <IR_Gen/idisa_builder.h>  // for IDISA_Builder
    8 #include <llvm/IR/Constant.h>      // for Constant
    9 #include <llvm/IR/Module.h>
    10 #include <llvm/IR/Function.h>
    11 #include <llvm/IR/Module.h>
    12 #include <llvm/ExecutionEngine/ExecutionEngine.h>
    13 #include "llvm/Linker/Linker.h"
    14 #include <llvm/Support/CommandLine.h>
    15 #include <llvm/Support/raw_ostream.h>
    16 namespace llvm { class BasicBlock; }
    17 namespace llvm { class Function; }
    18 namespace llvm { class Value; }
    198
    209using namespace llvm;
     
    2211namespace kernel {
    2312
    24 void EvenOddKernel::generateDoBlockMethod(Function * function, Value * self, Value * blockNo) const {
     13void EvenOddKernel::generateDoBlockMethod(Value * blockNo) {
    2514    Value * even = iBuilder->simd_fill(64, iBuilder->getInt64(0x5555555555555555));
    2615    Value * odd = iBuilder->bitCast(iBuilder->simd_fill(8, iBuilder->getInt8(0xAA)));
    27     Value * evenBitsPtr = getStream(self, "even_odd", blockNo, iBuilder->getInt32(0));
     16    Value * evenBitsPtr = getStream("even_odd", blockNo, iBuilder->getInt32(0));
    2817    iBuilder->CreateBlockAlignedStore(even, evenBitsPtr);
    29     Value * oddBitsPtr = getStream(self, "even_odd", blockNo, iBuilder->getInt32(1));
     18    Value * oddBitsPtr = getStream("even_odd", blockNo, iBuilder->getInt32(1));
    3019    iBuilder->CreateBlockAlignedStore(odd, oddBitsPtr);
    3120}
Note: See TracChangeset for help on using the changeset viewer.