Ignore:
Timestamp:
Jan 3, 2017, 3:59:33 PM (22 months ago)
Author:
nmedfort
Message:

Work on bracket matching problem

File:
1 edited

Legend:

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

    r5243 r5245  
    4242    Function * GetPrintf();
    4343    Value * CreateMalloc(Type * type, Value * size);
    44     Value * CreateAlignedMalloc(Type *type, Value * size, const unsigned alignment);
    45     void CreateFree(Value * ptr);
    46     void CreateAlignedFree(Value * ptr);
     44    Value * CreateAlignedMalloc(Type * type, Value * size, const unsigned alignment);
     45    void CreateFree(Value * const ptr);
     46    void CreateAlignedFree(Value * const ptr, const bool ptrMayBeNull = false);
    4747    Value * CreateRealloc(Value * ptr, Value * size);
    48     Value * CreateAlignedRealloc(Value * ptr, Value * size, const unsigned alignment);
    4948    void CreateMemZero(Value * ptr, Value * size, const unsigned alignment = 1);
    50    
     49
     50    inline llvm::AllocaInst * CreateCacheAlignedAlloca(llvm::Type * Ty, llvm::Value * ArraySize = nullptr) {
     51        llvm::AllocaInst * instr = CreateAlloca(Ty, ArraySize);
     52        instr->setAlignment(getCacheAlignment());
     53        return instr;
     54    }
    5155   
    5256    // Create calls to unistd.h functions.
     
    6569    Value * CreatePThreadJoinCall(Value * thread, Value * value_ptr);
    6670   
    67    
    68     void CallPrintRegister(const std::string & regName, Value * const value);
    6971    void CallPrintInt(const std::string & name, Value * const value);
    7072   
Note: See TracChangeset for help on using the changeset viewer.