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 // Class to represent Unary operators
14 //===----------------------------------------------------------------------===//
16 class GenericUnaryInst : public UnaryOperator {
18 GenericUnaryInst(UnaryOps Opcode, Value *S1, const std::string &Name = "")
19 : UnaryOperator(S1, Opcode, Name) {
22 virtual const char *getOpcodeName() const;
25 //===----------------------------------------------------------------------===//
26 // Classes to represent Binary operators
27 //===----------------------------------------------------------------------===//
29 // All of these classes are subclasses of the BinaryOperator class...
32 class GenericBinaryInst : public BinaryOperator {
34 GenericBinaryInst(BinaryOps Opcode, Value *S1, Value *S2,
35 const std::string &Name = "")
36 : BinaryOperator(Opcode, S1, S2, Name) {
39 virtual const char *getOpcodeName() const;
42 class SetCondInst : public BinaryOperator {
45 SetCondInst(BinaryOps opType, Value *S1, Value *S2,
46 const std::string &Name = "");
48 virtual const char *getOpcodeName() const;