2001-06-06 22:29:01 +02:00
|
|
|
//===-- llvm/iBinary.h - Binary Operator node definitions --------*- C++ -*--=//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of all of the Binary Operator classes.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_IBINARY_H
|
|
|
|
#define LLVM_IBINARY_H
|
|
|
|
|
|
|
|
#include "llvm/InstrTypes.h"
|
|
|
|
|
2001-07-08 06:57:15 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Class to represent Unary operators
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
class GenericUnaryInst : public UnaryOperator {
|
|
|
|
public:
|
2002-01-20 23:54:45 +01:00
|
|
|
GenericUnaryInst(UnaryOps Opcode, Value *S1, const std::string &Name = "")
|
2001-07-08 21:03:27 +02:00
|
|
|
: UnaryOperator(S1, Opcode, Name) {
|
2001-07-08 06:57:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual const char *getOpcodeName() const;
|
|
|
|
};
|
|
|
|
|
2001-06-06 22:29:01 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Classes to represent Binary operators
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// All of these classes are subclasses of the BinaryOperator class...
|
|
|
|
//
|
|
|
|
|
2001-06-28 01:28:50 +02:00
|
|
|
class GenericBinaryInst : public BinaryOperator {
|
2001-06-06 22:29:01 +02:00
|
|
|
public:
|
2001-07-07 22:17:23 +02:00
|
|
|
GenericBinaryInst(BinaryOps Opcode, Value *S1, Value *S2,
|
2002-01-20 23:54:45 +01:00
|
|
|
const std::string &Name = "")
|
2001-06-28 01:28:50 +02:00
|
|
|
: BinaryOperator(Opcode, S1, S2, Name) {
|
2001-06-06 22:29:01 +02:00
|
|
|
}
|
|
|
|
|
2001-07-07 21:24:15 +02:00
|
|
|
virtual const char *getOpcodeName() const;
|
2001-06-06 22:29:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class SetCondInst : public BinaryOperator {
|
|
|
|
BinaryOps OpType;
|
|
|
|
public:
|
|
|
|
SetCondInst(BinaryOps opType, Value *S1, Value *S2,
|
2002-01-20 23:54:45 +01:00
|
|
|
const std::string &Name = "");
|
2001-06-06 22:29:01 +02:00
|
|
|
|
2001-07-07 21:24:15 +02:00
|
|
|
virtual const char *getOpcodeName() const;
|
2001-06-06 22:29:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|