mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-12 15:51:35 +00:00
![Chris Lattner](/assets/img/avatar_default.png)
* Renamed getOpcode to getOpcodeName * Changed getOpcodeName to return a const char * instead of string * Added a getOpcode method to replace getInstType * Changed code to use getOpcode instead of getInstType llvm-svn: 152
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
//===-- 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"
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Classes to represent Binary operators
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// All of these classes are subclasses of the BinaryOperator class...
|
|
//
|
|
|
|
class GenericBinaryInst : public BinaryOperator {
|
|
public:
|
|
GenericBinaryInst(unsigned Opcode, Value *S1, Value *S2,
|
|
const string &Name = "")
|
|
: BinaryOperator(Opcode, S1, S2, Name) {
|
|
}
|
|
|
|
virtual const char *getOpcodeName() const;
|
|
};
|
|
|
|
class SetCondInst : public BinaryOperator {
|
|
BinaryOps OpType;
|
|
public:
|
|
SetCondInst(BinaryOps opType, Value *S1, Value *S2,
|
|
const string &Name = "");
|
|
|
|
virtual const char *getOpcodeName() const;
|
|
};
|
|
|
|
#endif
|