source: icGREP/icgrep-devel/icgrep/pablo/ps_assign.cpp @ 4416

Last change on this file since 4416 was 4416, checked in by nmedfort, 5 years ago

Many use def info changes; removed dependency on boost system library. More work still needed on CSE.

File size: 367 bytes
Line 
1#include <pablo/ps_assign.h>
2#include <pablo/ps_if.h>
3#include <pablo/pe_next.h>
4
5namespace pablo {
6
7bool Assign::isConstant() const {
8    if (LLVM_UNLIKELY(isOutputAssignment())) {
9        return false;
10    }
11    for (const PabloAST * inst : users()) {
12        if (isa<Next>(inst) || isa<If>(inst)) {
13            return false;
14        }
15    }
16    return true;
17}
18
19}
20
Note: See TracBrowser for help on using the repository browser.