1 //===-- llvm/iBinary.h - Binary Operator node definitions --------*- C++ -*--=//
3 // This file contains the declarations of all of the Binary Operator classes.
5 //===----------------------------------------------------------------------===//
10 #include "llvm/InstrTypes.h"
12 //===----------------------------------------------------------------------===//
13 // Classes to represent Binary operators
14 //===----------------------------------------------------------------------===//
16 // All of these classes are subclasses of the BinaryOperator class...
19 class GenericBinaryInst : public BinaryOperator {
20 const char *OpcodeString;
22 GenericBinaryInst(unsigned Opcode, Value *S1, Value *S2,
23 const char *OpcodeStr, const string &Name = "")
24 : BinaryOperator(Opcode, S1, S2, Name) {
25 OpcodeString = OpcodeStr;
28 virtual string getOpcode() const { return OpcodeString; }
31 class SetCondInst : public BinaryOperator {
34 SetCondInst(BinaryOps opType, Value *S1, Value *S2,
35 const string &Name = "");
37 virtual string getOpcode() const;