Ignore:
Timestamp:
Feb 21, 2017, 2:22:21 PM (2 years ago)
Author:
nmedfort
Message:

Work on parenthesis matching and expandable buffers. Changed CBuilder CreateMemZero? to zero n bytes rather than n units to conform to the built-in CreateMemSet? and CreateMemCpy? methods.

File:
1 edited

Legend:

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

    r5308 r5337  
    4141   
    4242    llvm::Value * CreateRealloc(llvm::Value * ptr, llvm::Value * size);
    43    
    44     void CreateMemZero(llvm::Value * ptr, llvm::Value * size, const unsigned alignment = 1);
    4543
    46     inline llvm::AllocaInst * CreateCacheAlignedAlloca(llvm::Type * Ty, llvm::Value * ArraySize = nullptr) {
     44    llvm::CallInst * CreateMemZero(llvm::Value * ptr, llvm::Value * size, const unsigned alignment = 1) {
     45        return CreateMemSet(CreatePointerCast(ptr, getInt8PtrTy()), getInt8(0), size, alignment);
     46    }
     47
     48    llvm::AllocaInst * CreateCacheAlignedAlloca(llvm::Type * Ty, llvm::Value * ArraySize = nullptr) {
    4749        llvm::AllocaInst * instr = CreateAlloca(Ty, ArraySize);
    4850        instr->setAlignment(getCacheAlignment());
Note: See TracChangeset for help on using the changeset viewer.