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

Last change on this file was 5267, checked in by nmedfort, 8 months ago

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File size: 478 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
11using namespace llvm;
12
13namespace re {
14
15RE * makeDiff(RE * lh, RE * rh) {
16    if (isa<CC>(lh) && isa<CC>(rh)) {
17        return subtractCC(cast<CC>(lh), cast<CC>(rh));
18    }
19    return new Diff(lh, rh);
20}
21   
22}
Note: See TracBrowser for help on using the repository browser.