Ignore:
Timestamp:
Feb 18, 2017, 4:13:44 PM (3 years ago)
Author:
nmedfort
Message:

Continued work on parenthesis matching; addition of Pablo ScanTo? and AdvanceThenScanTo/Thru? statements. Bug fix for Pablo Compiler for escaping variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/builder.hpp

    r5320 r5329  
    6666    }
    6767
    68     inline Var * createVar(const llvm::StringRef name, llvm::Type * const type = nullptr) {
     68    inline Var * createVar(const llvm::StringRef & name, llvm::Type * const type = nullptr) {
    6969        return createVar(makeName(name), type);
    7070    }
    7171
    72     inline Var * createVar(const llvm::StringRef name, PabloAST * value) {
     72    inline Var * createVar(const llvm::StringRef & name, PabloAST * value) {
    7373        Var * var = createVar(name, value->getType());
    7474        createAssign(var, value);
     
    148148    PabloAST * createScanThru(PabloAST * from, PabloAST * thru, const llvm::StringRef & prefix);
    149149
    150     PabloAST * createScanTo(PabloAST * from, PabloAST * to) {
    151         return createScanThru(from, createNot(to));
    152     }
    153 
    154     PabloAST * createScanTo(PabloAST * from, PabloAST * to, const llvm::StringRef & prefix) {
    155         return createScanThru(from, createNot(to), prefix);
    156     }
     150    PabloAST * createScanTo(PabloAST * from, PabloAST * to);
     151
     152    PabloAST * createScanTo(PabloAST * from, PabloAST * to, const llvm::StringRef & prefix);
     153
     154    PabloAST * createAdvanceThenScanThru(PabloAST * from, PabloAST * thru);
     155
     156    PabloAST * createAdvanceThenScanThru(PabloAST * from, PabloAST * thru, const llvm::StringRef & prefix);
     157
     158    PabloAST * createAdvanceThenScanTo(PabloAST * from, PabloAST * to);
     159
     160    PabloAST * createAdvanceThenScanTo(PabloAST * from, PabloAST * to, const llvm::StringRef & prefix);
    157161
    158162    PabloAST * createSel(PabloAST * condition, PabloAST * trueExpr, PabloAST * falseExpr);
Note: See TracChangeset for help on using the changeset viewer.