Ignore:
Timestamp:
Apr 26, 2017, 10:12:11 AM (2 years ago)
Author:
cameron
Message:

Add bit manipulation instructions to CBuilder

File:
1 edited

Legend:

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

    r5425 r5427  
    183183
    184184    llvm::Value * CreateCountReverseZeroes(llvm::Value * value);
    185 
     185   
     186    // Useful bit manipulation operations 
     187    llvm::Value * CreateResetLowestBit(llvm::Value * bits);   
     188   
     189    llvm::Value * CreateIsolateLowestBit(llvm::Value * bits);
     190   
     191    llvm::Value * CreateMaskToLowestBitInclusive(llvm::Value * bits);
     192   
     193    llvm::Value * CreateMaskToLowestBitExclusive(llvm::Value * bits);
     194   
     195    llvm::Value * CreateExtractBitField(llvm::Value * bits, llvm::Value * start, llvm::Value * length);
     196   
    186197    llvm::Value * CreateCeilLog2(llvm::Value * value);
    187198   
Note: See TracChangeset for help on using the changeset viewer.