void visitBranchInst(BranchInst &I);
void visitPHINode(PHINode &I) {}
- void visitNot(GenericUnaryInst &I);
void visitBinaryOperator(Instruction &I);
void visitCastInst (CastInst &I);
}
-void CWriter::visitNot(GenericUnaryInst &I) {
- Out << "~";
- writeOperand(I.getOperand(0));
-}
-
void CWriter::visitBinaryOperator(Instruction &I) {
// binary instructions, shift instructions, setCond instructions.
if (isa<PointerType>(I.getType())) {
void visitBranchInst(BranchInst &I);
void visitPHINode(PHINode &I) {}
- void visitNot(GenericUnaryInst &I);
void visitBinaryOperator(Instruction &I);
void visitCastInst (CastInst &I);
}
-void CWriter::visitNot(GenericUnaryInst &I) {
- Out << "~";
- writeOperand(I.getOperand(0));
-}
-
void CWriter::visitBinaryOperator(Instruction &I) {
// binary instructions, shift instructions, setCond instructions.
if (isa<PointerType>(I.getType())) {