Add new method

llvm-svn: 10809
This commit is contained in:
Chris Lattner 2004-01-12 23:18:06 +00:00
parent 1dd054c41b
commit bf007407c5
1 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,12 @@ public:
bool isCommutative() const { return isCommutative(getOpcode()); }
static bool isCommutative(unsigned op);
/// isRelational - Return true if the instruction is a Set* instruction:
///
bool isRelational() const { return isRelational(getOpcode()); }
static bool isRelational(unsigned op);
/// isTrappingInstruction - Return true if the instruction may trap.
///
bool isTrapping() const {