Lines Matching full:instruction
80 default: llvm_unreachable("Unknown cast instruction!");
81 case Instruction::Trunc : return bitc::CAST_TRUNC;
82 case Instruction::ZExt : return bitc::CAST_ZEXT;
83 case Instruction::SExt : return bitc::CAST_SEXT;
84 case Instruction::FPToUI : return bitc::CAST_FPTOUI;
85 case Instruction::FPToSI : return bitc::CAST_FPTOSI;
86 case Instruction::UIToFP : return bitc::CAST_UITOFP;
87 case Instruction::SIToFP : return bitc::CAST_SITOFP;
88 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC;
89 case Instruction::FPExt : return bitc::CAST_FPEXT;
90 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
91 case Instruction::IntToPtr: return bitc::CAST_INTTOPTR;
92 case Instruction::BitCast : return bitc::CAST_BITCAST;
98 default: llvm_unreachable("Unknown binary instruction!");
99 case Instruction::Add:
100 case Instruction::FAdd: return bitc::BINOP_ADD;
101 case Instruction::Sub:
102 case Instruction::FSub: return bitc::BINOP_SUB;
103 case Instruction::Mul:
104 case Instruction::FMul: return bitc::BINOP_MUL;
105 case Instruction::UDiv: return bitc::BINOP_UDIV;
106 case Instruction::FDiv:
107 case Instruction::SDiv: return bitc::BINOP_SDIV;
108 case Instruction::URem: return bitc::BINOP_UREM;
109 case Instruction::FRem:
110 case Instruction::SRem: return bitc::BINOP_SREM;
111 case Instruction::Shl: return bitc::BINOP_SHL;
112 case Instruction::LShr: return bitc::BINOP_LSHR;
113 case Instruction::AShr: return bitc::BINOP_ASHR;
114 case Instruction::And: return bitc::BINOP_AND;
115 case Instruction::Or: return bitc::BINOP_OR;
116 case Instruction::Xor: return bitc::BINOP_XOR;
708 // If no metadata, ignore instruction.
920 if (Instruction::isCast(CE->getOpcode())) {
937 case Instruction::GetElementPtr:
946 case Instruction::Select:
952 case Instruction::ExtractElement:
958 case Instruction::InsertElement:
964 case Instruction::ShuffleVector:
966 // standard shufflevector instruction. If the types are different,
979 case Instruction::ICmp:
980 case Instruction::FCmp:
1026 /// instruction ID, then it is a forward reference, and it also includes the
1040 /// WriteInstruction - Emit an instruction to the specified stream.
1041 static void WriteInstruction(const Instruction &I, unsigned InstID,
1050 if (Instruction::isCast(I.getOpcode())) {
1057 assert(isa<BinaryOperator>(I) && "Unknown instruction!");
1072 case Instruction::GetElementPtr:
1079 case Instruction::ExtractValue: {
1087 case Instruction::InsertValue: {
1096 case Instruction::Select:
1102 case Instruction::ExtractElement:
1107 case Instruction::InsertElement:
1113 case Instruction::ShuffleVector:
1119 case Instruction::ICmp:
1120 case Instruction::FCmp:
1128 case Instruction::Ret:
1143 case Instruction::Br:
1154 case Instruction::Switch:
1181 case Instruction::IndirectBr:
1188 case Instruction::Invoke: {
1213 case Instruction::Unreachable:
1218 case Instruction::PHI: {
1229 case Instruction::Alloca:
1237 case Instruction::Load:
1245 case Instruction::Store:
1252 case Instruction::Call: {
1275 case Instruction::VAArg:
1367 // Keep a running idea of what the instruction ID is.
1383 // If the instruction has metadata, write a metadata attachment later.
1386 // If the instruction has a debug location, emit it.