Ignore:
Timestamp:
Apr 23, 2017, 12:44:04 PM (2 years ago)
Author:
nmedfort
Message:

Bug fixes for 32-bit systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/kernel.h

    r5418 r5419  
    117117
    118118    llvm::Value * getScalarField(const std::string & fieldName) const {
    119         return iBuilder->CreateLoad(getScalarFieldPtr(fieldName));
    120     }
    121 
    122     llvm::Value * getScalarField(llvm::Value * index) const {
    123         return iBuilder->CreateLoad(getScalarFieldPtr(index));
    124     }
     119        return iBuilder->CreateLoad(getScalarFieldPtr(fieldName), fieldName);
     120    }
     121
     122//    llvm::Value * getScalarField(llvm::Value * index) const {
     123//        return iBuilder->CreateLoad(getScalarFieldPtr(index));
     124//    }
    125125
    126126    // Set the value of a scalar field for the current instance.
     
    129129    }
    130130
    131     void setScalarField(llvm::Value * index, llvm::Value * value) const {
    132         iBuilder->CreateStore(value, getScalarFieldPtr(index));
    133     }
     131//    void setScalarField(llvm::Value * index, llvm::Value * value) const {
     132//        iBuilder->CreateStore(value, getScalarFieldPtr(index));
     133//    }
    134134
    135135    // Synchronization actions for executing a kernel for a particular logical segment.
Note: See TracChangeset for help on using the changeset viewer.