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 Type *ResultTy = 0,
19 const string &Name = "")
20 : UnaryOperator(S1, Opcode, ResultTy, Name) {
23 virtual const char *getOpcodeName() const;
26 //===----------------------------------------------------------------------===//
27 // Classes to represent Binary operators
28 //===----------------------------------------------------------------------===//
30 // All of these classes are subclasses of the BinaryOperator class...
33 class GenericBinaryInst : public BinaryOperator {
35 GenericBinaryInst(BinaryOps Opcode, Value *S1, Value *S2,
36 const string &Name = "")
37 : BinaryOperator(Opcode, S1, S2, Name) {
40 virtual const char *getOpcodeName() const;
43 class SetCondInst : public BinaryOperator {
46 SetCondInst(BinaryOps opType, Value *S1, Value *S2,
47 const string &Name = "");
49 virtual const char *getOpcodeName() const;