Create a static version of Instruction::getOpcodeName(opCode) that
[oota-llvm.git] / include / llvm / iOperators.h
1 //===-- llvm/iBinary.h - Binary Operator node definitions --------*- C++ -*--=//
2 //
3 // This file contains the declarations of all of the Binary Operator classes.
4 //
5 //===----------------------------------------------------------------------===//
6
7 #ifndef LLVM_IBINARY_H
8 #define LLVM_IBINARY_H
9
10 #include "llvm/InstrTypes.h"
11
12 //===----------------------------------------------------------------------===//
13 //                   Class to represent Unary operators
14 //===----------------------------------------------------------------------===//
15 //
16 class GenericUnaryInst : public UnaryOperator {
17 public:
18   GenericUnaryInst(UnaryOps Opcode, Value *S1, const std::string &Name = "")
19     : UnaryOperator(S1, Opcode, Name) {
20   }
21 };
22
23 //===----------------------------------------------------------------------===//
24 //                 Classes to represent Binary operators
25 //===----------------------------------------------------------------------===//
26 //
27 // All of these classes are subclasses of the BinaryOperator class...
28 //
29
30 class GenericBinaryInst : public BinaryOperator {
31 public:
32   GenericBinaryInst(BinaryOps Opcode, Value *S1, Value *S2, 
33                     const std::string &Name = "")
34     : BinaryOperator(Opcode, S1, S2, Name) {
35   }
36 };
37
38 class SetCondInst : public BinaryOperator {
39   BinaryOps OpType;
40 public:
41   SetCondInst(BinaryOps opType, Value *S1, Value *S2, 
42               const std::string &Name = "");
43 };
44
45 #endif