source: icGREP/icgrep-devel/icgrep/re/re_diff.cpp @ 4532

Last change on this file since 4532 was 4321, checked in by cameron, 5 years ago

Added files for diff/intersect optimization

File size: 455 bytes
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#include "re_diff.h"
8#include "re_cc.h"
9#include <llvm/Support/Casting.h>
10
11namespace re {
12
13RE * makeDiff(RE * lh, RE * rh) {
14    if (isa<CC>(lh) && isa<CC>(rh)) {
15        return subtractCC(cast<CC>(lh), cast<CC>(rh));
16    }
17    return new Diff(lh, rh);
18}
19   
20}
Note: See TracBrowser for help on using the repository browser.