@@ -1133,71 +1133,6 @@ GetElementPtrInst::GetElementPtrInst(Type *PointeeType, Value *Ptr,
1133
1133
1134
1134
DEFINE_TRANSPARENT_OPERAND_ACCESSORS (GetElementPtrInst, Value)
1135
1135
1136
- // ===----------------------------------------------------------------------===//
1137
- // UnaryOperator Class
1138
- // ===----------------------------------------------------------------------===//
1139
-
1140
- // / a unary instruction
1141
- class UnaryOperator : public UnaryInstruction {
1142
- void AssertOK ();
1143
-
1144
- protected:
1145
- UnaryOperator (UnaryOps iType, Value *S, Type *Ty,
1146
- const Twine &Name, Instruction *InsertBefore);
1147
- UnaryOperator (UnaryOps iType, Value *S, Type *Ty,
1148
- const Twine &Name, BasicBlock *InsertAtEnd);
1149
-
1150
- // Note: Instruction needs to be a friend here to call cloneImpl.
1151
- friend class Instruction ;
1152
-
1153
- UnaryOperator *cloneImpl () const ;
1154
-
1155
- public:
1156
-
1157
- // / Construct a unary instruction, given the opcode and an operand.
1158
- // / Optionally (if InstBefore is specified) insert the instruction
1159
- // / into a BasicBlock right before the specified instruction. The specified
1160
- // / Instruction is allowed to be a dereferenced end iterator.
1161
- // /
1162
- static UnaryOperator *Create (UnaryOps Op, Value *S,
1163
- const Twine &Name = Twine (),
1164
- Instruction *InsertBefore = nullptr );
1165
-
1166
- // / Construct a unary instruction, given the opcode and an operand.
1167
- // / Also automatically insert this instruction to the end of the
1168
- // / BasicBlock specified.
1169
- // /
1170
- static UnaryOperator *Create (UnaryOps Op, Value *S,
1171
- const Twine &Name,
1172
- BasicBlock *InsertAtEnd);
1173
-
1174
- // / These methods just forward to Create, and are useful when you
1175
- // / statically know what type of instruction you're going to create. These
1176
- // / helpers just save some typing.
1177
- #define HANDLE_UNARY_INST (N, OPC, CLASS ) \
1178
- static UnaryInstruction *Create##OPC (Value *V, \
1179
- const Twine &Name = " " ) {\
1180
- return Create (Instruction::OPC, V, Name);\
1181
- }
1182
- #include " llvm/IR/Instruction.def"
1183
- #define HANDLE_UNARY_INST (N, OPC, CLASS ) \
1184
- static UnaryInstruction *Create##OPC (Value *V, \
1185
- const Twine &Name, BasicBlock *BB) {\
1186
- return Create (Instruction::OPC, V, Name, BB);\
1187
- }
1188
- #include " llvm/IR/Instruction.def"
1189
- #define HANDLE_UNARY_INST (N, OPC, CLASS ) \
1190
- static UnaryInstruction *Create##OPC (Value *V, \
1191
- const Twine &Name, Instruction *I) {\
1192
- return Create (Instruction::OPC, V, Name, I);\
1193
- }
1194
- #include " llvm/IR/Instruction.def"
1195
-
1196
- UnaryOps getOpcode () const {
1197
- return static_cast <UnaryOps>(Instruction::getOpcode ());
1198
- }
1199
- };
1200
-
1201
1136
// ===----------------------------------------------------------------------===//
1202
1137
// ICmpInst Class
1203
1138
// ===----------------------------------------------------------------------===//
0 commit comments